Just go through Test Your C-Skills properly for first section:
Here are some questions that I faced:
Section 1 problems. Total time 30 minutes:
1. x = x^x;
printf("%d", x);
o/p?
2. some automation-graph question. I think it was based on Automata. Not
sure though.
3. z = scanf("%d %d", &x, &y);
printf("%d", z);
o/p?
4. a question on double loop. o/p related.
5.
double round(double num)
{ return (int)(num+0.5)
}
will it work all the time?
6.
int main(){
char *str;
strcpy(str, "junk");
scanf("%[^A Telephonic Girl]", str);
printf("%s", str);
return 0;
}
4 more questions based on C only.
----
For Section 2, be thorough with algos.
Section 2, Total Time 45 minutes.
1. Given an array arr[] of n integers, construct a Product Array prod[] (of
same size) such that prod[i] is equal to the product of all the elements of
arr[] except arr[i]. Solve it without division operator. Give an efficient
code.
(if you are interested, here is my solution: http://ideone.com/EaTUF ,
developed at the test time itself).
2. Test Cases of Find and Replace functionality in Notepad.
3. You have to make a package library which will do the calculation of
(a^b)mod(c), where a, b, c are very large size of 10000 digits. (^- power).
Design a data structure for the numbers' storage and suggest what functions
will you be providing to user with them. Also mention the advantages of
using that DS.
All the best.
On Sat, Aug 27, 2011 at 9:33 PM, sindhu <[email protected]> wrote:
> these r some of the questions tht i remember..
> first 4 questions are 1 mark simply questions asking 2 write the
> output...each 1 mark
> 4. one sql questions asking 2 write 3 queries.. learn group by and
> other clauses..
> they asked questions like find the person who owns most number of
> vehicles...sth like maximum salary..
> 5.design a website question i dont remember..
> 6.chess board question write a pgm 2 find minimum number of steps
> taken by knight to cover the entire 8*8 board.
> 7.write a function tht converts the numbers into word format for
> numbers 1-1000 example:235=two hundred thirty five..
> 8.write a pgm to find minimum angle between the hrs hand and minutes
> hand..
> 9.write test case to test multiple elevators in a multi storied
> building...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>
--
___________________________________________________________________________________________________________
Please do not print this e-mail until urgent requirement. Go Green!!
Save Papers <=> Save Trees
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.