Amazon Placement Papers and Questions
Amazon Placement Papers and Questions
Amazon Placement Papers and Questions
I attended amazon interview on October 17th in Bangalore. I would like to share my experience and the interview questions.
-There were 20 MCQ and 2 programming questions -Each correct answer carried 1 mark and -0.25 for a wrong answer
1. Write a program to find the difference between the sum of nodes at odd height and the sum of nodes at even height.
2. Given an array of integers representing coin values and the sum required. find the number of coins required to get the sum.
4 Technical rounds.
-Various programming questions related to data structures were asked -Each round was an elimination round
1. Write a program to traverse the tree in spiral form in O(n) time.(Hint:use two stacks) 2. Program to implement atoi function
3. Program to swap the k th node from end and kth node from front 4. Program to find loops in linked list 5. Find the maximum length palindrome in a string 6. Difference between process and thread 7. Advantages and disadvantages of thread and process 8. Test cases for checking binary tree 9. Test case for atoi function 10. Test cases for finding loops in the single linked list
-Each technical round was for 60-90 minute duration -There was no HR round ============================================== =================================== HYDERABAD INTERVIEW AND QUESTIONS I experienced for TAM process and Customer care associate. Go to Amazon.com First of all, research all info you can on Amazon processings.
You will be questioned about (a) yourself (b) why you want to join amazon? (b) what's you fav color & why? (c) speak about you memorable days in your life?(2 mins) (d) speak about your college days.(mem moments)
2. Passage writing
Using Amazon.com you can answer them. The thing is you should be able to categorize the product.
Somehow, sometimes, they also conduct test to check typing speed, Mocking chat. ============================================== ============================================== AMAZON PAPER ,HYDERABAD Hi Friends
Aptitude
1. Two tables emp (empid, name, deptid, sal) and dept(deptid, deptname) are there. Write a query which displays empname, corresponding deptname also display those employee names who do not belong to any dept.
3. What is the output of the program main() { int c=5; printf("%d %d %d",c,c<<2,c>> 2); }
5.What is the wrong in this program main() { char *p,*q; p=(char *)malloc(25); q=(char*) malloc(25); strcpy(p,"amazon" ); strcpy(q,"hyd"); strcat(p,q); printf("%s",p); }
7. What is the output of the program main() { int i=5; printf("%d",fun(fun(fun(fun( fun(i)))))); } void fun (int i) { if(i%2) return (i+(7*4)-(5/2)+(2*2)); else return (i+(17/5)-(34/15)+(5/2)); }
8. When it is always true boolean fun (node *p) { return ((p==null)||(p->next==null)|| (p->info<=p->next->info)&&( fun(p>next))); } a) when list is empty or has one node b) when the ele are sorted in non decreasing order c) when the ele are sorted in non increasing order
10. What is the difference between deep copy and shallow copy
12. What happens when the parent process of a child process exits before the child ?
13. There are three persons A, B, C. A shots the target 6 times out of 7 shots. B shots 4 out of 5 shots. Then what is the probability of hitting the target twice when 2 persons are selected at random.
14. What is valid in cpp char *cp; const char *cpp; 1) cpp=cp; 2) cp=cpp;
16. Write a shell command to find all Java files present in nested directories.
17. There are 6 pairs of black socks and 6 pairs of white socks. What is the probability to pick a pair of black or white socks when 2 socks are selected randomly in darkness.
18. A string of alphanumeric is there. Find a string that starts with b and ends with 3 characters.
Section B (we have to write programs) time:30 min 1. There is a sorted array which is of very large size. In that all except one no. are repeated once. How to find that non repeated no. 2. There are 2 linked lists. Those 2 lists are meeting at a point. How to find that meeting point. ============================================== ============================================== ===========================
Aptitude 1.Two tables emp(empid,name,deptid,sal) and dept(deptid,deptname) are there.write a query which displays empname,corresponding deptname also display those employee names who donot belong to any dept.
3.what is the output of the program main() { int c=5; printf("%d %d %d",c,c<<2,c>> 2); }
main() { char *p,*q; p=(char *)malloc(25); q=(char*) malloc(25); strcpy(p,"amazon" ); strcpy(q,"hyd"); strcat(p,q); printf("%s",p); }
7.what is the output of the program main() { int i=5; printf("%d",fun(fun(fun(fun( fun(i)))))); } void fun(int i) { if(i%2) return (i+(7*4)-(5/2)+(2*2)); else return (i+(17/5)-(34/15)+(5/2)); }
a)when list is empty or has one node b)when the ele are sorted in non decreasing order c)when the ele are sorted in non increasing order
9.what is x here (x&&!(x&(x-1))==1) a)x is always a prime b)x is a power of 2 c)x is even d)x is odd
12.What happens when the parent process of a child process exits before the child ?
13.There are three persons A,B,C .A shots the target 6 times out of 7 shots .B shots 4 out of 5 shots .Then what is the probability of hitting the target twice when 2 persons are selected at random.
14.what is valid in cpp char *cp; const char *cpp; 1) cpp=cp; 2) cp=cpp;
16.write a shell command to find all java files present in nested directories.
17.There are 6 pairs of black socks and 6 pairs of white socks.What is the probability to pick a pair of black or white socks when 2 socks are selected randomly in darkness.
18.A string of alphanumeric is there.Find a string that starts with b and ends with 3 characters. section B (we have to write programs) time:30 min
1.There is a sorted array which is of very large size.In that all except one no. are repeated once.How to find that non repeated no. 2.There are 2 linked lists.Those 2 lists are meeting at a point.How to find that meeting point.