Documente Academic
Documente Profesional
Documente Cultură
A.12
B.16
C.18
D.24
ANS:B
Explanation:
Suppose the boy got x sums right and 2x sums wrong. Then, x + 2x = 48 3x =
48 x = 16.
Q2. A man fixed an appointment to meet the manager, Manager asked him
to come two days after the day before the day after tomorrow. Today is
Friday. When will the manager expect him?
A.Friday
B.Monday
C.Tuesday
D.Sunday
ANS:B
Explanation:
A.12
B.11
C.13
D.14
ANS:C
Explanation:
XXXX
YYYY
ZZZZ
................
YXXXZ
ANS:D
Q5. The smallest number which when diminished by 7, is divisible 12, 16,
18, 21 and 28 is:
A.1008
B.1015
C.1022
D.1032
ANS:B
Explanation:
A.12
B.16
C.24
D.48
ANS:D
Explanation:
Let the numbers be 3x and 4x. Then, their H.C.F. = x. So, x = 4. So, the
numbers 12 and 16. L.C.M. of 12 and 16 = 48.
A.2 x 2 x 3 x 3 x 7
B.2 x 2 x 2 x 3 x 7
C.3 x 3 x 3 x 3 x 7
D.2 x 3 x 3 x 3 x 7
ANS:A
Explanation:
Clearly, 252 = 2 x 2 x 3 x 3 x 7.
A.14
B.15
C.21
D.23
ANS:B
Explanation:
Q9. Two trains, one from Howrah to Patna and the other from Patna to
Howrah, start simultaneously. After they meet, the trains reach their
destinations after 9 hours and 16 hours respectively. The ratio of their
speeds is
A.2 : 3
B.4 : 3
C.6 : 7
D.9 : 16
ANS:B
Explanation:
Let us name the trains as A and B. Then, (As speed) : (Bs speed) = b : a = 16 :
9 = 4 : 3.
A.b < a
B.b > a
C.b = a
D.b >= a
ANS:A
Q11. If 5 women or 8 girls can do a work in 84 days. In how many days can
10 women and 5 girls can do the same work ?
A.31 days
B.30 days
C.33 days
D.32 days
ANS:D
Explanation:
A.89
B.99
C.86
D.76
ANS:B
Explanation:
Q13. Walking at 3/4 of his usual speed ,a man is late by 2 1/2 hr. the usual
time is
A.7
B.7 1/2
C.8 1/2
D.8
ANS:B
Explanation:
Usual speed = S Usual time = T Distance = D New Speed is 3/4 S New time is
4/3 T 4/3 T, T = 5/2 T=15/2 = 7 1/2
Q14. In a boat 25 persons were sitting. Their average weight increased one
kilogram when One man goes and a new man comes in. The weight of the
new man is 70kgs. Find the Weight of the man who is going ?
A.45
B.25
C.36
D.73
ANS:A
Explanation:
Weight increased per person is 1 kg. Total increase in weight = 25 kgs Weight
of new man is 70 kgs, (Which means his weight is 25 kgs heavier) The weight of
the old man was 70 - 25 = 45 kgs
Q15. A man can row 4.5 km/hr in still water. It takes him twice as long to
row upstream as to row downstream. What is the rate of the current ?
A.3.5 km/hr
B.2.5 km/hr.
C.4.5 km/hr.
D.1.5 km/hr
ANS:D
Explanation:
Speed of boat in still water (b) = 4.5 km/hr. Speed of boat with stream (Down
Stream), D = b + u Speed of boat against stream (Up stream), U = b u It is
given upstream time is twice to that of down stream. Downstream speed is
twice to that of upstream. So b + u = 2(b u) u =b/3 = 1.5 km/hr.
Q16. A sum of money amounts to Rs. 9800 after 5 years and Rs. 12005 after
8 years at the same rate of simple interest. The rate of interest per annum
is
A.5%
B.8%
C.12%
D.18%
ANS:C
Explanation:
S.I. for 3 years = Rs. (12005 - 9800) = Rs. 2205. S.I. for 5 years = Rs. (2205/3)
x 5 = Rs. 3675 Principal = Rs. (9800 - 3675) = Rs. 6125. Hence, rate = (100 x
3675)/( 6125 x 5) % = 12%
A.12 km
B.23 km
C.45 km
D.65 km
ANS:A
Explanation:
lets us consider t1 = time taken on level road. t2 = uphill. t3 = down hill; the
distance traveled uphill and down hill same so t2*3 = 6*t3; => t2 = 2t3;--->
(1) total time = 2*t1 + t2 + t3 = 6 hours ---> (2) 2t1+3t3 = 6 -->(3) total
distance = 2*(4t1) + 3*t2+ 6*t3 ---> (4) substitute (1) in (4) 8t1 + 12t3 =>
4(2t1+3t3) then from (3) the total distance will become 4*6= 24 => one way
distance = 12km
Q18. In a group of cows and hens, the number of legs are 14 more than
twice the number of heads. The number of cows is
A.5
B.7
C.10
D.12
ANS:B
Explanation:
A.25
B.37
C.54
D.65
ANS:A
Explanation:
Q20. 2 trains starting at the same time from 2 stations 200 km apart and
going in opposite direction cross each other at a distance of 110 km from
one of the stations.what is the ratio of their speeds ?
A.11:9
B.11:8
C.10:9
D.10:90
ANS:A
Explanation:
In same time ,they cover 110 km & 90 km respectively so ratio of their speed
=110:90 = 11:9
A.-5
B.4
C.2
D.8
ANS:D
Explanation:
Q22. Two bus tickets from city A to B and three tickets from city A to C
cost Rs. 77 but three tickets from city A to B and two tickets from city A to
C cost Rs. 73. What are the fares for cities B and C from A ?
A.Rs. 4, Rs. 23
B.Rs. 13, Rs. 17
C.Rs. 15, Rs. 14
D.Rs. 17, Rs. 13
ANS:B
Explanation:
Let Rs. x be the fare of city B from city A and Rs. y be the fare of city C from city
A. Then, 2x + 3y = 77 ...(i) and 3x + 2y = 73 ...(ii) Multiplying (i) by 3 and (ii)
by 2 and subtracting, we get: 5y = 85 or y = 17. Putting y = 17 in (i), we get: x
= 13.
Q23. The total of the ages of Amar, Akbar and Anthony is 80 years. What
was the total of their ages three years ago ?
A.71 years
B.72 years
C.74 years
D.77 years
ANS:A
Explanation:
Q24. A man took loan from a bank at the rate of 12% p.a. simple interest.
After 3 years he had to pay Rs. 5400 interest only for the period. The
principal amount borrowed by him was.
A.Rs. 2000
B.Rs. 10,000
C.Rs. 15,000
D.Rs. 20,000
ANS:C
Explanation:
Q25. The total age of A & B is 12 years more than the total age of B & C. C
is how many year younger than A.
ANS:A
Explanation:
Q26. The present age of a father is 3 years more than three times the age of
his son.Three years hence,father as age will be 10 years more than twice the
age of the son.Find the present age of the father.
A.23 years
B.30 years
C.33 years
D.42 years
ANS:C
Explanation:
Let the present age be x years. Then fathers present age is 3x+3 years. Three
years hence (3x+3)+3=2(x+3)+10 x=10 Hence fathers present age = 3x+3
=[ (3 x 10) + 3] = 33 years.
Q27. In one hour a boat goes 11 km long the stream and 5 km against the
stream.The speed of the boat in still water is?
A.8 kmph
B.7 kmph
C.8.5 kmph
D.9 kmph
ANS:A
Explanation:
Q28. A train 110 m long travels at 60 kmph. How long does it take to pass a
telegraph post by the side of the track ?
A.5.6 seconds
B.6.5 seconds
C.6.6 seconds
D.6.7 seconds
ANS:C
Explanation:
Speed of train = 60 - 5/18 m/s = 50/3 m/s, Time taken to cross the telegraph
post = 110/(50/3) = 6.6 seconds
Q29. The average ages of three persons is 27 years. Their ages are in the
proportion of 1:3:5. What is the age in years of the youngest one among
them ?
A.8
B.6
C.7
D.9
ANS:D
Explanation:
Q30. The greatest number of four digits which is divisible by 15, 25, 40 and
75 is:
A.9000
B.9400
C.9600
D.9800
ANS:C
Explanation:
Q3. Which bit wise operator is suitable for checking whether a particular
bit is on or off?
Q4. Write a C program which when compiled and run, prints out a
message indicating whether the compiler that it is compiled withallows /*
*/ commentsto nest.
Q5. You are given a singly link-list such that each node of this list is also a
head of another link list of the same type:
struct node {
void *data; /* could be anything */
struct node *next;
struct node *down;
Describe an algorithm for flattening the list.
char s[]={a,b,c,c,};
char *p,*str,*str1;
p=&s[3];
str=p;
str1=s;
printf("%d",++*p + ++*str1-32);
Q8. Find the error in the following program?
struct xx
int x=3;
char name[]="hello";
struct xx *s;
ANS:compiler error
#include
struct xx
int x;
struct yy
char s;
struct xx *p;
struct yy *q;
Q10. A default catch block catches
ANS:C
Q11. The standard input stream, which refers to the keyboard, is called
A. cin
B. cout
C. stin
D. stout
E. None of the above
ANS:A
Q12. When a break statement is used in a loop, the control skips the rest of
the statements in the loop after it and jumps
ANS:B
Q13. When two types are used in a function template and one is labeled T,
the other
ANS:E
Q15. What will be the content of file.c after executing the following
program?
int main()
FILE *fp1, *fp2;
fp1=fopen("file.c", "w");
fp2=fopen("file.c", "w");
fputc(A, fp1);
fputc(B, fp2);
return 0;
A. B
B. A, B
C. B, B
D. Error in opening file file1.c
ANS:A
int main()
float a=3.15529;
printf("%2.1f ", a);
return 0;
A. 3.00
B. 3.15
C. 3.2
D. 3
Q17. Which of the following statement is correct about the program?
int main()
FILE *fp;
char str[11], ch;
int i=0;
fp = fopen("INPUT.TXT", "r");
if(ch == || ch == )
printf("%s", str);
}
else
str[i++]=ch;
}
fclose(fp);
return 0;
A. The code writes a text to a file
B. The code reads a text files and display its content in reverse order
C. The code writes a text to a file in reverse order
D. None of above
Q18. What function should be used to free the memory allocated by
calloc()?
A. dealloc();
B. malloc(variable_name, 0)
C. free();
D. memalloc(variable_name, 0)
Q19. What will be the output of the program?
int main()
char *s;
char *fun();
s = fun();
printf("%s ", s);
return 0;
char *fun()
char buffer[30];
strcpy(buffer, "RAM");
return (buffer);
A. 0xffff
B. Garbage value
C. 0xffee
D. Error
Q20. The generic type in a template function
A. must be T
B. can be T
C. cannot be T for functions you create, but may be for C++s built-in functions
D. cannot be T
int main()
void v = 0;
printf("%d", v);
return 0;
A. Error: Declaration syntax error v (or) Size of v is unknown or zero.
B. Program terminates abnormally.
C. No error.
D. None of these.
Q22. Which of the following statements mentioning the name of the array
begins DOES NOT yield the base address?
A. A
B. A, B
C. B
D. B, D
Q23. Which of the following statements are correct about 6 used in the
program?
int num[6];
num[6]=21;
Go through all the options and mark the one which does not belong to the
group.
Q1.
A) 71-55
B) 517-523
C) 248-231
D) 547-563
ANS:C
Explanation:
248-231 = 17
563-547=16
71-55=16
523-517=06
Except in the number pair 248-231, in all others number pair, the difference
between the two numbers is an even number.
A) 681
B) 13
C) 234
D) 10
ANS:A
Explanation:
So the sum of the digits in all the numbers is a perfect square except for 681,
hence that is odd.
A) Heed
B) Led
C) Heap
D) Head
AMAZON Verbal Ability
1) will helping us
2) will help us
3) would helped them
4) will helped us
5) No correction required
ANS:2
Explanation:
"Will help" indicates surety whereas "would help indicates chance/may be.
Hence, the correct phrase is "will help us" as it is grammatically correct.. Also
would is past form of will and here present form is required.
Q2.The easiest way for prevent stress caused by work or home pressures is
to indulge in high levels of physical activity
1) easily way to
2) easier ways for
3) easiest way to
4) easier way from
5) No correction required
ANS:3
Explanation:
Prevent will take "to" as preposition and not "for" Therefore to preventis
correct.
Read the sentence to find out whether there is any grammatical error or
idiomatic error in it. The error, if any, will be in one part of the sentence.
The number of that part is the answer. if there is No Error" the answer is
(E). (Ignore errors of punctuation if any.)
Q3. For all of sadness, poverty and diseases (1)/ in this world(2) / every one
of us(3) / possesses unlimited ways of making a positive difference(4) / No
Error(5)
1) 1
2) 2
3) 3
4) 4
5) 5
ANS:1
Explanation:
Q4. Excess weight is the result of (1)/ unhealthy eating habits (2)/ which are
inherent risk factors (3)/ responsible for many diseases.(4) / No Error(5)
1) 1
2) 2
3) 3
4) 4
5) 5
ANS:5
Explanation:
Q5. The therapeutic benefits (1)/ at helping others(2) / have long been(3) /
recognised by people.(4) / No Error(5)
1) 1
2) 2
3) 3
4) 4
5) 5
ANS:5
Explanation:
1) Essential
2) Inbred
3) Integral
4) All of the above
ANS:2
Explanation:
Inbred means inherent
1) Intrinsic
2) Extraneous
3) Adventitious
4) All of the above
ANS:1
Explanation:
1) I
2) II
3) I and II
4) None of the above< /li>
ANS:1
Explanation:
1) Code
2) Cipher
3) Encipher
4) All of the above
ANS:2
Explanation:
Cipher is a synonym for encode and like the word encode, cipher is used as a
verb
ANS:3
Explanation:
It has been mentioned in the paragraph that language changes what we attend
to which changes how we think. The answer therefore, is option no. 3
ANS:B
Explanation:
Except in the word Led, in all other words there are two vowels.
Hence the answer is option 2.
What should come in place of question mark (?) in the following number/
alphabetic series?
Q4. C 3, E 5, G 7, I 9, ?, ?
A) K 11, M 13
B) O 15, X 24
C) M 18, K 14
D) X 24, M 21
ANS:A
Explanation:
A) 483
B) 481
C) 1454
D) 1452
ANS:B
Explanation:
5 - 3 + 1 = 16
16 - 3 + 3 = 51
51 - 3 + 5 = 158
158 - 3 + 7 = [481]
Q6. 9 - 2: 9 - 9 : : 9 - 5 : ?
A) 9 - 6
B) 9 - 7
C) 9 - 8
D) 9 - 4
ANS:A
Explanation:
9-2=18
9-9=81
The digits of resultant have interchanged positions therefore,
9-5=45
9-6=54
A) HMP
B) PMO
C) RJL
D) GJN
ANS:A
Explanation:
A) fgh
B) hij
C) ijk
D) Ghi
ANS:D
Explanation:
The answer should be the last alphabhet of fg ( i.e g ) and the next two
alphabets i.e hi . Hence answer is ghi
bc cde de efg fg ghi
Q9.A man showed a boy next to him and said He is the son of my wifes
sister-in-law, but I am the only child of my parents. How is mans son
related to him?
A) Brother
B) Uncle
C) Nephew
D) Cousin
ANS:D
Explanation:
The boy is the son of mans brother-in-law. Therefore, mans son is the cousin of
that boy.
A) - + =
B) x / =
C) + - =
D) / - =
ANS:C
Explanation:
The best way to solve this question is by hit and trial . Use the answer options
and find the value.
24 * 16 * 8 * 32
24 + 16 - 8 = 32
40-8 = 32
In this case, option C is correct.
Written Test has 2 Sections A, B In Section A there were 20 Questions:
Aptitude:
Q1. 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.
Q2. Display the employees whose salary is less than average salary.
main()
{
int c=5;
printf("%d
%d
%d",c,c<<2,c>> 2);
}
main()
{
int a[8][10],c=0,i,j;
for(i=0;i<10;
i++) for(j=0;
j<8;j++) a[j][i]=c++;
printf("%d",a[3][6]);
}
main()
{
char *p,*q;
p=(char *)malloc(25);
q=(char*) malloc(25);
strcpy(p,"amazon" );
strcpy(q,"hyd");
strcat(p,q);
printf("%s",p);
}
(a+b)*c-(d+e)^(f-g)
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));
}
(node *p)
{
return ((p==null)||(p->next==null)|| (p->info<=p->next->info)&&( fun(p-
>next)));
}
a) x is always a prime
b) x is a power of 2
c) x is even d)x is odd
Q10. What is the difference between deep copy and shallow copy
Q12. What happens when the parent process of a child process exits before
the child?
Q13. 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.
1) cpp=cp;
2) cp=cpp;
Q16. Write a shell command to find all java files present in nested
directories.
Q17. 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.
Q18. 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
Q19. 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.
Q20. There are 2 linked lists. Those 2 lists are meeting at a point. How to
find that meeting point.
The two codings where as below.
Q1) Finding all possible UNIQUE sub strings of and array of char. And
displaying it in sorted order.
Q2)It was on tree was easy. I do not remember the exact question.
Q2. Display the employees whose salary is less than average salary.
main()
{
int a[8][10],c=0,i,j;
for(i=0;i<10;
i++) for(j=0;
j<8;j++) a[j][i]=c++;
printf("%d",a[3][6]);
}
main()
{
char *p,*q;
p=(char *)malloc(25);
q=(char*) malloc(25);
strcpy(p,"amazon" );
strcpy(q,"hyd");
strcat(p,q);
printf("%s",p);
}
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));
}
(node *p)
{
return ((p==null)||(p->next==null)|| (p->info<=p->next->info)&&( fun(p-
>next)));
}
Q12.What happens when the parent process of a child process exits before the
child?
Q13. 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.
Q16.Write a shell command to find all java files present in nested directories.
Q17.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.
Q18.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
Q19.There is a sorted array which is of very large size. In that all except one
number are repeated once. How to find that non repeated number?
Q20.There are 2 linked lists.Those 2 lists are meeting at a point. How to find
that meeting point.
Q5. Given an array all of whose elements are positive numbers, find the
maximum sum of a subsequence with the constraint that no 2 numbers in the
sequence should be adjacent in the array.
Eg.
i) 3 2 7 10 should return 13 (sum of 3 and 10)
ii) 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)
Q6. Given a Binary Search Tree, write a program to print the kth smallest
element without using any static/global variable. You cant pass the value k to
any function also.
Q11.Given a string,find the first un-repeated character in it? Give some test
cases
Q12. You are given a dictionary of all valid words. You have the following
3 operations permitted on a word:
a) Delete a character
b) Insert a character
c) Replace a character
Now given two words - word 1 and word 2 - find the minimum number of steps
required to convert word 1 to word 2. (one operation counts as 1 step.)
Q13.Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the
number of smaller cubes on the surface. Extend this to k-dimension.
Q15.What is the time and space complexities of merge sort and when is it
preferred over quick sort?
Q16.Write a function which takes as parameters one regular expression(only ?
and * are the special characters) and a string and returns whether the string
matched the regular expression.
Q17.Given n red balls and m blue balls and some containers, how would you
distribute those balls among the containers such that the probability of picking a
red ball is maximized, assuming that the user randomly chooses a container and
then randomly picks a ball from that.
Q20.There are two urns A and B and an equal number of red balls and blue
balls.How do u place the balls in the urns such that the probability of picking up
the red ball is greater?
Q21.Two trains enter at the opposite sides of a tunnel of length L with speeds
V. A particle enters the tunnel at the same time with a speed v and it vibrates in
the tunnel[i.e. if it reaches the end of the tunnel then it comes back]. What is the
position of the particle by the time the 2 trains meet?
Q22.Write an sql query to sort a table according to the amounts in a row and
find the second largest amount.
Q25.Given an array of size n+1 which contains all the numbers from 1 to
n.Find the number which is repeated in O(n) time .How do you proceed with the
same with floating numbersfrom 0 to 1 instead of 1 to n?
Q28.Place a red ball in a urn and all the further balls in the other urn.The
probability for picking out the red ball is now greater than 0.5.
Q29.If v<=2V then the position is (v*L)/(2*V) from the starting point else it is
2*L -(v*L)/(2*V) from the starting point.
Q30.If we know the process then we can kill it by killall -9 "process name" else
we can kill it using its process id obtained by the command ps -x by kill -9
"processid" .
Q31. Top command displays all the Linux tasks running at that particular
time.It provides their running time and the resources used.
Q32.The number appearing 2 times is (sum of all the numbers in the array) -
(sum of the numbers from 1 to n).
For floating numbers multiply it with 100 and proceed.
Q15.What is a class?
Q17. What is the difference between public, private, protected, and friend
access?
Q18.For class CFoo { }; what default methods will the compiler generate for
you>?
Q23.What is a:
* Constructor?
* Destructor?
* Default constructor?
* Copy constructor?
* Conversion constructor?
Q30.What is the difference between operator new and the new operator?
Q37.When would you choose to return an error code rather than throw an
exception?
Q38.What is a template?
Q41.What is an iterator?
Q42.What is an algorithm (in terms of the STL/C++ standard library)?
Q43.What is std::auto_ptr?
Q45.
std::auto_ptr ptr(new char[10]);
It is possible to build a C++ compiler on top of a C compiler. How would you
do this?
Q1.What is a vtbl?
class A;
class B;
class C {
A* a_;
B* b_;
public:
};
class C {
A* a_;
B* b_;
void swap(C& rhs) { rhs.a_ = a_; rhs.b_ = b_; }
public:
C(const C& rhs) {
auto_ptr<> a(new A(rhs.a_));
auto_ptr<> b(new B(rhs.b_)):
delete a_;
delete b_;
a_ = a.release();
b_ = b.release();
}
C& operator=(const C& rhs) {
C temp(rhs);
temp.swap(*this);
return *this;
}
};
Q7. What is wrong with this class, assuming that this is its complete
interface?
class C {
char *p;
public:
C() { p = new char[64]; strcpy(p, "Hello world"); }
~C() { delete p; }
void foo() { cout << "My ptr is: << p << << endl; }
};
Since this has an overtly programmed destructor, the member wise semantics
for destruction are not good enough; therefore, they are not good enough for
copy and assignment either. But, the copy destructor and op= are not
programmed, so we will have some serious trouble.
Gradual hinting:
[also, that delete p should be delete[ p since p was allocated with the array new]
Assuming that swap() and copy construction are part of your interface for
class C, whats the cookie-cutter pattern for operator= that uses them?
ANS:
Q1.The first one was given two lists write a function which returns a list which
is the intersection of the two lists.the original lists should remain same.
(Intersection if first list is say,1,20 3,45 and second list is 3,24 ,45,90,68 then
intersection should be 3,45 )
Q2.The second was given two nodes of a binary tree find the closest ancestor of
the two nodes.
Note:consider binary tree and binary search tree also.
Q1.There was an aptitudes question in which P(A) and P(B) were given and we
had to find P(B/A) and P(A/B) when A and B are independent events.
Q2.What is the probability that the the 4 digits no. which is formed by using
the digits 1,2,3,4,5,6 is divisible by 4.
ANS:Inorder,preorder or postorder ?
Q4.Preorder and inorder traversal was given and we had to find the tree.
Q3.Probably the most difficult question they asked me was, he put a binary tree
on the whiteboard and I had to write a function that would find if the tree was
symmetrical or not. Anyone whos familiar with data structures and recursion
should be fine with this, just dont freak out when they propose the question.
Q4.Find the element from the array that has odd number of occurences
Q7. How many hours does it take a quality specialist and a temporary
contractor together to perform a damage-free check of a batch of 160
laptops?
a) 135 hours
b) 40 hours
c) 60 hours
d) 24 hours
a) 1,080
b) 1,16064,
c) 80066,
d) 600
Q9. f x-4 is 6 more than y, then x+9 is how much more than y+5?
a) 10
b) 12
c) 14
d) 17
a) 24 hours
b) 26 hours
c) 30 hours
d) 36 hours
Q11. Exactly 1/5 of the clients who entered Mikes shop yesterday were
women. If exactly one third of the women were blonde, what is the
minimum possible number of clients that entered the shop yesterday?
Q12. Amazon.it had 140 thousand visits on Friday, including new and
returning visitors. Statistics show that for 5 new visitors there were 3
returning visitors (ratio of 5:3). What was the difference between new
visitors and returning visitors on Friday?
a) 15 thousand
b) 25 thousand
c) 35 thousand
d) 75 thousand
Q13. Amazon is negotiating with a carrier (SEUR) that will ship products
from Amazons wharehouse in Madrid to clients within the same city.
SEUR charges Amazon per shipment based on the DISTANCE between
Amazons wharehouse to the clients address - 2 fixed for the first 2
kilometers and 0.5 per additional kilometer (measured by the meter, not by
whole kilometers) for each delivery within a given city. 20% of clients live
within 2 kilometers of Amazons wharehouse in Madrid - on average they
live 1 km away. If all Amazons clients in Madrid live on average 4.5
kilometers away from Amazons wharehouse, what is the estimated average
shipping cost per delivery in Madrid, with SEUR?
a) 19.5%
b) 12%
c) 8%
Q15. There are ONLY 3 brands of video consoles (A, B and C). In 2010 A
and B together represented 50% of units sold. C sold 3 million more units
than A. Also, C sold 2.5 times the same units sold by B. If all video consoles
had the same price of 300, what was the total video console market value in
2010?
Q16. Three years ago, a son was 25 years younger than his father. At
present the father is 6 times as old as the son. How old will the son be three
years from now?
Ability
Amazon Verbal Ability
Amazon Placement Paper Pattern - Hyderabad
Amazon Interview Questions paper
Amazon interview questions
Amazon Previous Years Questions 2015
Amazon Aptitude Questions
Related Companies
Polaris
Yahoo
Honeywell
SAP labs India
Cognizant
Infosys
Syntel
TCS
Wipro
Polaris
Google
Dell
EMC Corporation
Verizon
Q1. What are the files which are automatically opened when a C file is
executed?
a: fseek(ptr,0,SEEK_SET);
b: fseek(ptr,0,SEEK_CUR);
Q6. In the following pgm add a stmt in the function fun such that the
address ofa gets stored in j.
ANS:*k = &a
Q7. What are the following notations of defining functions known as?
ANS:
i. ANSI C notation
ii. Kernighan & Ritche notation
int (*x)[10];
ANS:1
ANS:bye
ANS: 1 1 1 1
2424
3737
4242
5555
6868
7373
8686
9999
ANS:
(char*(*)( )) (*ptr[N])( );
Q14. There were 10 records stored in some file. data but the following
program printed 11 names. What went wrong?
ANS:No
assert(val++ != 0);
struct a
{
int x;
struct a b;
}
ANS:No
void main()
{
typedef struct a aType;
aType someVariable;
struct a
{
int x;
aType *b;
};
}
ANS:No
ANS:1
main()
{
char a[4]="HELL";
printf("%s",a);
}
ANS:
HELL%@!~@!@???@~~!
ANS:Who
ANS:a,c
ANS:Booting loader
a) mbr
b) mar
c) frame buffer
d) sdram
Q1. Given an array all of whose elements are positive numbers, find the
maximum sum of a subsequence with the constraint that no 2 numbers in the
sequence should be adjacent in the array.
Q1.How would you find the second largest element in an array using minimum
no of comparisons?
Q3.You are given: 3 types of vehicles: Motorbike, Car, and a special type of
car for the handicapped.
Write an SQL query which outputs all the employees, and their department nos
and names, including all those departments which have no employees working
for them.
Q7.Give a Linux shell command to find all files in a directory which contain ip
addresses.
Q8.Given a table Employee which has columns name and salary, write an SQL
query to find the employee with the second highest salary.
Q9. Given a string A, and a string B, and a dictionary, how would you
convert A to B in the minimum no of operations, given that:
i) All the intermediate words must be from the dictionary
ii) An operation is defined as:
Q10.Given a table of Player which contains S.no and player name, write a
query which finds all possible Table Tennis doubles pairings.
AMAZON Aptitude Questions
Q1.A function f(x) is defined as f(x) = f(x - 2) - x(x + 2) for all the integer
values of x and f(1) + f(4) = 0. What is the value of f(1) + f(2) + f(3) + f(4) +
f(5) + f(6)?
A) 0
B) 89
C) 89
D) None of these
ANS:C
Explanation:
Q2.In ABC, the internal bisectors of ABC and ACB met at 1 and BAC =
50.The measure of BIC is
A) 105
B) 115
C) 125
D) 130
ANS:B.
Explanation:
I is the In-centre
So, BIC = 90 + 1/2 BAC
= 90 + 1/2 50 = 115
Q3.The difference between [3/5] of [2/3] a number and [2/5] of[1/4] of the
same number is 288. What is the number?
A) 960
B) 850
C) 895
D) 955
E) 44%
ANS:A.
Explanation:
Q4.A, B, C and D are four consecutive odd numbers and their average is
42. What is the product of B and D?
A) 1860
B) 1890
C) 1845
D) 1677
E) None of these
ANS:C.
Explanation:
A) 2 5
B) 5 2
C) 10 2
D) 4 5
ANS:A.
Explanation:
Here, BC = 5cm
BL = 3 5/2 cm
By using the formula
4(BL2 + CM2) = 5BC2
Q6.A sum of Rs 731 is divided among A, B and C such that A receive 25%
more than B and B receive 25% less than C. What is Cs share in the
amount?
A) Rs. 172
B) Rs. 200
C) Rs. 262
D) Rs. 258
E) None of these
ANS:E.
Explanation:
Q7. In how many different ways can letters of the word "PRAISE" be
arranged?
A) 720
B) 610
C) 360
D) 210
E) None of these
ANS:A.
Explanation:
As total number of alphabets in PRAISE are 6, so total no. of ways is 6!=720 So
option A is the answer
A) 4/9
B) 4/5
C) 8/9
D)8/11
E) None of these
ANS:A.
Explanation:
Let the fraction be [n/d] & after that it becomes [2.5 n / 4 d]=5/18 . So we get
the result as [4/9]
Q9. A car covers the first 30 km of its journey in 45 minutes and the
remaining 25 km in 30 minutes. What is the average speed of the car?
A) 60
B) 64
C) 49
D) 48
E) None of these
ANS:E.
Explanation:
A) 8
B) 7.5
C) 10
D) 8.5
E) None of The above
ANS:C.
Explanation: