Saturday, January 5, 2013

IIT Madras 2012 Amazon paper


Amazon at IIT Madras 17 Nov 2012
Online: 20 MCQs + 2 Coding Qs

1. One car travels 72 mph when downwards, 63 mph on flat road, 56 mph uphills....and takes 4 hrs to reach to B.....and 4 hrs 40 mins while returning to B....Find distnace between A and B

2. 630 Students arranged so that each row contains 3 students lesser than previous row.
How many rows cannt be possible? Options 5 6 7 8
Ans: 6

3. Code o/p;;; Gives num / 3

4. f(n)
{
 if(n>0)
{ f(--n)
print n;
f(--n);
}

O/p: 0 1 2 0

5. Sequential numbers are written on a board....if one number is removed then average becomes 290 / 9.....Find the missing number.

6. Which DS gives worst case of O(n logn) in Merge sort
Options: LL, DLL, Array



Codes:
1. Remove extra spaces in a sentence...Keep only one space after each word.
2. Next possible integer e.g 2378  =>  2387

No comments:

Post a Comment

ShareThis

Related Posts Plugin for WordPress, Blogger...