Uploaded by dboss4201

5 6066365336771363193

advertisement
COGNIZANT PROFESSIONAL
PLACEMENT MATERIAL
“
by -
Ample Coder
AMPLE CODER
AMPLE CODER
AMPLE CODER
Quantitative Aptitude
1. Sixty-five percent of a number is 21 less than four fifth of that number. What is the
number?
A) 110
B) 120
C) 140
D) 150
Ans: A) 140
Explanation
let the number be x.
Then, 4*x/5 –(65% of x) = 21
4x/5 –65x/100 = 21
5 x = 2100
x = 140.
2. The average age of a husband and his wife was 23 years at the time of their marriage.
After five years they have a one-year old child. The average age of the family now is:
A) 25
B) 23
C) 19
D) 18
Ans: C) 19
Explanation:
Sum of the present ages of husband, wife and child = (23 * 2 + 5 * 2) + 1 = 57 years.
Required average = (57/3) = 19 years.
3. Find the greatest number which on dividing 1661 and 2045, leaves a reminder of 10 and
13 respectively
A. 125
B. 127
AMPLE CODER
AMPLE CODER
C. 129
D. 131
Ans: Option B
Explanation:
In this type of question, its obvious we need to calculate the HCF, trick is
HCF of (1661 - 10) and (2045 -13)
HCF (1651, 2032) = 127
4. Find the simple interest on Rs. 68,000 at 16 2/3% per annum for 9 months.
A. 9000
B. 9500
C. 8000
D. 8500
Ans: Option D
Explanation:
P = Rs.68000,R = 50/3% p.a and T = 9/12 years = 3/4years.
S.I. = (P*R*T)/100 = Rs.(68,000*(50/3)*(3/4)*(1/100))= Rs.8500
5. Three number are in the ratio of 3 : 4 : 5 and their L.C.M. is 2400. Their H.C.F. is:
A) 40
B) 80
C) 120
D) 200
Ans: A) 40
Explanation:
Let the numbers be 3x, 4x and 5x.
Then, their L.C.M. = 60x.
So, 60x = 2400 or x = 40.
The numbers are (3 x 40), (4 x 40) and (5 x 40).
Hence, required H.C.F. = 40.
AMPLE CODER
AMPLE CODER
6. Dhruv and Naksh drive at the speeds of 36 Kmph and 54 kmph respectively. If Naksh
takes 3 hours lesser than what Dhruv takes for the same distance. Then distance is:
a. 324 km
b. 524 km
c. 320 km
d. 420 km
Ans: 324 km
Explanation:
Let dhruv takes t hours then naksh takes t-3 hours
Because distance is same in both cases
So 36 * t = 54 (t-3)
t=9
36 * 9 = 324 km
7. A trapezium with an area of 5100 cm2 has the perpendicular distance between the two
parallel sides of 60m . if one of the parallel sides be 40m. find the length of the other side.
a. 130 m
b. 110 m
c. 120 m
d. 145 m
Ans: 130 m
Explanation:
Area of a trapezium = (1/2) (a+b) h
8. If HCF of two numbers is 8,which of the following can never be their LCM?
A) 32
B) 48
C) 60
D) 152
Ans: C) 60
Explanation:
60 is not a multiple of 8
AMPLE CODER
AMPLE CODER
9. The cost price of 10 articles is equal to the selling price of 9 articles. find the profit
percent.
a. 101/9 %
b. 100/9 %
c. 102/9 %
d. 103/9 %
Ans: 100/9 %
Explanation:
Let Cost Price be x and selling price be y
Then given that cost price of 10 articles is equal to the selling price of 9 articles
That means 10x=9y
Y= 10x/9
Profit percent = ((selling price – cost price )/cost price ) * 100 = 100/9 %
10. what is the 2015th no. of problemsolvingproblemsolving............................
a) g
b) p
c) n
d) o
Ans: n
Explanation:
"problemsolving"it is a 14 letters word
total no=2015th
"g" is repeat=2015/14=143 remainder=13
13th words is "n"
11. How many numbers are there in all from 4000 to 4999 (both 4000 and 4999 included)
having at least one of their digits repeated?
a. 356
b. 216
c. 496
d. 504
Ans: 496
Explanation:
Atleast one of their digits repeated = Total numbers – None of the digits repeated
AMPLE CODER
AMPLE CODER
Total numbers from 4000 to 4999 = 1000
None of the digits repeated = _ _ _ _
There are total 4 places
1st place is filled with 4 only. So only one choice
2nd place is filled with any 9 digits except 4 as we have used 4 in 1st place. So 9 choices
Similarly 3rd place is filled with any 8 digits. So we have 8 choices
4th place is filled with any 7 digits. So we have 7 choices.
So total arrangements = 1 * 9 * 8 * 7 = 504
Ans= 1000 – 504 = 496
12. Two numbers are respectively 20% and 50% more than a third number. The ratio of
the two numbers is:
A) 2:5
B) 3:5
C) 4:5
D) 5:4
Answer: C) 4:5
Explanation:
Let the third number be x.
Then, first number = 120% of x =120x/100 = 6x/5
Second number =150% of x = 150x/100 = 3x/2
Ratio of first two numbers = 6x/5 : 3x/2 = 12x : 15x = 4 : 5
13. 17 x 8 m rectangular ground is surrounded by 1.5 m width path. Depth of the path
is 12 cm. Gravel is filled and find the quantity of gravel required.
a) 5.5
b) 7.5
Ans: 10.08
Explanation:
AMPLE CODER
c) 6.05
d) 10.08
AMPLE CODER
area of the rectangular ground=(17*8)m^2=136 m^2
taking into account the path:
total area=[(17+(2*1.5))*(8+(2*1.5))]=220 m^2
area of the path=220-136=84m^2
gravel required=[84*(12/100)]=10.08m
14. 8+88+888+.....+8888........8888. There are 21 “8” digits in the last term of the series.
Find the last three digits of the sum.
a) 458
b) 648
c) 658
d) 968
Ans: 968
Explanation:
21*8=168 carry 16
20*8=160+16=176 carry 17
19*8=152+17=169
the value is 968
15. A student multiplied a number by 3/5 instead of 5/3, What is the percentage error in
the calculation ?
A) 54 %
B) 64 %
C) 74 %
D) 84 %
Ans: B) 64 %
Explanation:
Let the number be x.
Then, ideally he should have multiplied by x by 5/3. Hence Correct result was x * (5/3)= 5x/3.
By mistake he multiplied x by 3/5 . Hence the result with error = 3x/5
Then, error = (5x/3 - 3x/5) = 16x/15
AMPLE CODER
AMPLE CODER
Error % = (error/True vaue) * 100 = [(16/15) * x/(5/3) * x] * 100 = 64 %
16. Joe's age, Joe's sister's age and Joe’s fathers age sums up to a century. When son is as
old as his father, Joe's sister will be twice as old as now. When Joe is as old as his father
then his father is twice as old as when his sister was as old as her father.Age of her father ?
a) 45
b) 48
c) 50
d) 60
Ans: 50
Explanation:
Joe + sister + father = 100
After x years let us consider Joe's age is equal to his father
Joe + x = father
Therefore,
sister + x = 2 x sister
⇒ sister = x
Joe + sister = father
Therefore, 2 × father = 100
Hence, Father = 50
17. A bag contains 8 white balls, and 3 blue balls. Another bag contains 7 white, and 4
blue balls. What is the probability of getting blue ball?
a)3/7
b)7/22
c)7/25
Ans: 7/22
Explanation:
First we have to select a bag and then we will draw a ball.
Probability of selection of both bags is equal =1/2
Now probability of blue ball taken from first bag = ( 1/2) x (3/11)
AMPLE CODER
d)7/15
AMPLE CODER
and probability of blue ball taken from second bag = (1/2) x (4/11)
So probability of blue ball = ( 1/2) x (3/11) + (1/2) x (4/11) = 7/22
18. A team won 80% of the games it played. It played 5 more games of which it won 3
and lost 2. Its loss percentage changed to 25%. How many games did it play overall?
a) 20
b) 14
c) 16
d) 25
Ans: 20
Explanation:
if game played=x
then lost game=x/5
now they played 5 more games in which they lost 2
so, (x+5)*25/100=x/5 + 2
x=15
so total game he played=15+5 = 20
19. A rectangular grassy plot 110 m. by 65 m has a gravel path 2.5 m wide all round it on
the inside. Find the cost of gravelling the path at 80 paise per sq. metre.
a) 680
b) 560
c) 640
d) 580
Ans: 680
Explanation:
Area of the plot = (110 x 65) m2 = 7150 m2
Area of the plot excluding the path = [(110 - 5) * (65 - 5)] m2 = 6300 m2.
Area of the path = (7150 - 6300) m2 = 850 m2.
Cost of gravelling the path = Rs.850 * (80/100)= Rs. 680
AMPLE CODER
AMPLE CODER
20. Out of 7 consonants and 4 vowels, how many words of 3 consonants and 2 vowels can
be formed?
A) 25200
B) 52000
C) 120
D) 24400
Ans: A) 25200
Explanation:
Number of ways of selecting (3 consonants out of 7) and (2 vowels out of 4) = (7C3*4C2) = 210.
Number of groups, each having 3 consonants and 2 vowels = 210.
Each group contains 5 letters.
Number of ways of arranging 5 letters among themselves = 5! = 120
Required number of ways = (210 x 120) = 25200.
21. two packets are available for sale.
packet a: peanuts 100 gms for Rs 48 only
packet b: peanuts 150 gms for Rs 72 only
which is a better buy?
a. both have the same value
b. packet b
c. data insufficient
d. packet a
Ans: a. both have the same value
Explanation:
Packet-a : 1 gm cost = 48/100
Packet-b : 1 gm cost = 72/150
22. The maximum gap between two successive leap year is?
A) 4
B) 8
C) 2
D) 1
Ans: B) 8
AMPLE CODER
AMPLE CODER
Explanation:
This can be illustrated with an example.
Ex: 1896 is a leap year.The next leap year comes in 1904 (1900 is not a leap year).
23. A positive integer is selected at random and is divided by 7, what is the probability that
the remainder is 1?
A. 3/7
B. 4/7
C. 1/7
D. 2/7
Ans: 1/7
24. A and B invest in a business in the ratio 3 : 2. If 5% of the total profit goes to charity
and A's share is Rs. 855, the total profit is :
A) 500
B) 1000
C) 1500
D) 2000
Ans: C) 1500
Explanation:
Let the total profit be Rs. 100.
After paying to charity, A's share = (95*3/5) = Rs. 57.
If A's share is Rs. 57, total profit = Rs. 100.
If A's share is Rs. 855, total profit = (100/57*855) = 1500.
25. In a km race, A beats B by 28 metres or 7 seconds. Find A's time
over the course.
A) 250 sec
B) 243 sec
C) 255 sec
Ans: 243 sec
Explanation:
Clearly, B covers 28 m in 7 seconds.
:. B's time over the course = (278 x 1000) sec = 250 seconds.
AMPLE CODER
D) 280 sec
AMPLE CODER
:. A's time over the course = (250 - 7-) sec = 243 sec
26. Fresh fruit contains 68% water & dry fruit contains 20% water. How much dry fruit
can be obtained from 100kg of fresh fruits?
A) 20
B) 30
C) 40
D) 50
Ans: C) 40
Explanation:
The fruit content in both the fresh fruit and dry fruit is the same.
Given, fresh fruit has 68% water.so remaining 32% is fruit content. weight of fresh fruits is
100kg
Dry fruit has 20% water.so remaining 80% is fruit content.let weight if dry fruit be y kg.
Fruit % in freshfruit = Fruit% in dryfruit
Therefore, (32/100) x 100 = (80/100 ) x y
we get, y = 40 kg.
27. How many 4 digit numbers contain number 2.
a. 3170
b. 3172
c. 3174
d. 3168
Ans: D
Explanation:
Total number of 4 digit numbers are 9000 (between 1000 and 9999).
We find the numbers without any two in them. So total numbers are 8 x 9 x 9 x 9 = 5832
So numbers with number two in them = 9000 - 5832 = 3168
28. Sum of the digits in the equation (16^100)*(125^135) is
a) 2
b) 5
Ans: 2
AMPLE CODER
c) 3
d) 8
AMPLE CODER
Explanation:
16^100 * 125^135 => (2^4)^100 * (5^3)^135 => 2^400 * 5^405 = 2^400 * 5^400 * 5^5
= (2*5)^400 *3125
=10^400 * 3125
sum of 10^400= 1+0 + 0+ 0+ ...... = 1
sum of 3125 = 11
therefore= 1 * 11 = 11
therefore = 1 + 1= 2
ans is 2
29. If 0.75: x :: 5:8, then x is equal to:
A) 1.12
B) 1.16
C) 1.20
D) 1.30
Ans: C) 1.20
Explanation:
(x * 5) = (0.75 *8)
X=6/5 = 1.20
30. A man spends 35% of his income on food, 25% on children's education and 80% of the
remaining on house rent. What percent of his income he is left with ?
A) 6 %
B) 8 %
C) 10 %
D) 12 %
Ans: B) 8 %
Explanation:
Let the total income be x.
AMPLE CODER
AMPLE CODER
Then, income left = (100 - 80)% of [100 - (35 + 25)] % of x = 20% of 40% of x = [(20/100) *
(40/100) * 100] % of x = 8 % of x.
31. the value of a scooter depreciates in such a way that at the end of each year, is ¾ of
its value at the beginning of same year. If the initial value of the scooter is rs40,000. What is
the value at the end of 3yrs?
a)23125
b)19000
c)13435
d)16875
Ans: 16875
Explanation:
As, it is given that , the cost becomes 3/4 at the end of year.
so, after 3 years ,the price of Scooter=40000*3/4*3/4*3/4= Rs.16875
32. Today is Monday. After 61 days, it will be :
A) Tuesday
B) Monday
C) Sunday
D) Saturday
Ans: D) Saturday
Explanation:
Each day of the week is repeated after 7 days. So, after 63 days, it will be Monday.
After 61 days, it will be Saturday.
33. A boat takes 19 hours for travelling downstream from point A to point B and coming
back to a point C which is at midway between A and B. If the velocity of the stream is 4
kmph and the speed of the boat in still water is 14 kmph, what is the distance between A
and B ?
A) 180 km
B) 160 km
C) 140 km
D) 120 km
AMPLE CODER
AMPLE CODER
Ans: A) 180 km
Explanation:
Speed in downstream = (14 + 4) km/hr = 18 km/hr;
Speed in upstream = (14 – 4) km/hr = 10 km/hr.
Let the distance between A and B be x km. Then,
x/18 + (x/2)/10 = 19 ⇔ x/18 + x/20 = 19 ⇒ x = 180 km.
34. A train leaves Meerut at 5 a.m. and reaches Delhi at 9 a.m. Another train leaves Delhi
at 7 a.m. and reaches Meerut at 10.30 a.m. At what time do the two trains travel in order to
cross each other?
A) 7:56 am
B) 8:15 am
C) 7:45 am
D) 8:00 am
Ans: 7:56 am
Explanation:
Let the total distance be x
So the speed of 1st train is x/4 and 2nd train x/3.5
In 2 hours 1st train covers half of the total distance . So remaining is only half of the
total distance(ie x/2). Let t be the time taken
t × x 4+ t × x 3.5= x 2
t = 1415
i.e. 56 min
i.e. Total time taken= 2 hrs + 56 min
Time they cross each other is 7:56 am (5+2.56) Answer 7:56 am
AMPLE CODER
AMPLE CODER
35. ‘A’ and ‘B’ started a business in partnership investing Rs 20000/- and Rs 15000/respectively. After six months ‘C’ jointed them with Rs 20000/-. What will be B’s share in
the total profit of Rs 25000/- earned at the end of two years from the starting of the
business?
A) 7000
B) 7500
C) 8000
D) 8500
Ans: 7500
Explanation:
A:B:C = (20000×24):(15000×24):(20000×18) =4 : 3 : 3
B's Share = 3×250004+3+3 = 7500
36. 7528 : 5306 :: 4673 : ?
a) 2367
b) 2451
c) 2531
d) 2489
Ans: 2451.
Explanation:
As there is a difference of 2222.
7528 – 2222 = 5306.
So 4673 – 2222 = 2451
37. Joke is faster than Paul, Joke and Paul each walk 24 KM. The sum of their speed is
7 Km per hour. And the sum of times taken by them is 14 hours. Then, Jake speed is
a) 7 kmph
b) 3 kmph
c) 5 kmph
Ans: 4 kmph
Explanation:
peed=TimedistanceSpeed=Timedistance
let the speed of joke x then speed of paul will be 7-x
AMPLE CODER
d) 4 kmph
AMPLE CODER
24x+247−x=1424x+247−x=14
Try to plugin the values from the options. If Jake speed is 4 the paul is 3.
38. GOOD is coded as 164 then BAD as 21. If UGLY coded as 260 then JUMP?
a) 200
b) 250
c) 230
d) 240
Ans: 240
Explanation:
G O O D = 7 + 15 + 15 + 4 = 41
41 x 4 = 164
Similarly
BAD=2+1+4=7
7x3
U G L Y = 21 + 7 + 12 + 25 = 65
65 x 4
Similarly,
J U M P = 10 + 21 + 13 + 16 = 60
60 x 4 = 240
39. A series of books was published at 10years intervals when the 10th book was issued
the sum of publication years was 19,560when was the 1st book published
a)1910
b)1914
Ans: 1911
Explanation:
19560=10/2[a+a+(10-1)*10]
19560=5[2a+90]
19560-450=10a
AMPLE CODER
c)1911
d)1909
AMPLE CODER
a=19110/10
a=1911
40. The average weight of 8 persons increases by 2.5 kg when a new person comes in place
of one of them weighing 65 kg. What might be the weight of the new person ?
A) 70 kg
B) 75 kg
C) 80 kg
D) 85 kg
Ans: D) 85 kg
Explanation:
Total weight increased = (8 x 2.5) kg = 20 kg.
Weight of new person = (65 + 20) kg = 85 kg.
41. two dice are thrown. find the probability of getting a multiple of 3 of 4 as the sum.
a) 5/9
b) 4/9
c) 2/9
d) 1/9
Ans: 5/9
Explanation:
20/36=5/9
(1,2),(1,3),(1,5),(2,1)(2,2)(2,4)(2,6)(3,1)(3,3)(3,5)(3,6)(4,2)(4,4)(4,5)(5,1)(5,3)(5,4)(6,2)(6,3)(6,6
) as
its some is multiple of 3 or 4
42. how many number x (x being an integer) with 10<=x<=99 are 18 more than
sum of their digits?
a)12
b)9
c)18
AMPLE CODER
AMPLE CODER
d)10
Ans: 10
Explanation:
Let the no. be 10y+z.
then,
10y+z= y+z+18
=> Y=2
So the no. are 20, 21, 22, 23, 24, 25, 26, 27, 28, 29. Total nos. 10
43. A person incurs a loss of 5% be selling a watch for Rs. 1140. At what price should
the watch be sold to earn 5% profit.
A. Rs.1200
B. Rs.1230
C. Rs.1260
D. Rs.1290
Ans: 1260
Explanation:
Let the new S.P. be x, then.
(100 - loss%):(1st S.P.) = (100 + gain%):(2nd S.P.)
=>(95/1140=105/x)=>x=1260
44. If LCM of two number is 693, HCF of two numbers is 11 and one number is 99, then
find other
A. 34
B. 77
C. 12
D. 45
Ans: Option B
Explanation:
For any this type of question, remember
AMPLE CODER
AMPLE CODER
Product of two numbers = Product of their HCF and LCM
So Other number = 693×11/99
693×11/99 = 77
45. what is the remainder of (16937^30)/31
a) 1
b) 2
c) 3
d) 6
Ans: 1
Explanation:
16937=16926+11,now 16926 is completely divisible..
So What remains is (11^30)/31
Which is (11^6)^5./31
11^6 gives 4 as remainder..so 4^5/31 is remaining...which gives 1 as remainder.
46.Two unbiased coin are tossed .what is the probability of getting atmost one head?
a) 1/4
b) 2/4
c) 3/4
d) 1
Ans: 3/4
Explanation:
Here S={HH,HT,TH,TT}
Let Ee=event of getting one head
E={TT,HT,TH}
P(E)=n(E)/n(S)=3/4
47. How many ways can one arrange the word EDUCATION such that relative positions of
vowels and consonants remains same?
a)2680
b)2740
AMPLE CODER
c)2500
d)2880
AMPLE CODER
Ans: 2880
Explanation:
The word EDUCATION is a 9 letter word with none of letters repeating
The vowels occupy 3,5,7th & 8th position in the word & remaining five positions are occupied
by consonants
As the relative position of the vowels & consonants in any arrangement should remain the same
as in the word EDUCATION
The four vowels can be arranged in 3rd,5th,7th & 8th position in 4! ways.
similarly the five consonants can be arranged in 1st ,2nd ,4th, 6th & 9th position in 5! ways
Hence the total number of ways = 5!×4!=120×24=2880
48. How many 3 digit numbers can you form using 2,3,5,6,7 and 9, which are divisible by
5 and none of the digits repeat?
A. 10
B. 15
C. 5
D. 20
Ans: 20
Explanation:
For a number to be divisible by 5, it should have 0 or 5 as a unit digit.
We have 6 digits- 2, 3, 5, 6, 7 & 9.
Required numbers should be like---5 .
We've 5 choices to fill these 2 places.
Number of total multiples of 5 formed = 5P2 = 5*4*= 20.
49. A train 120 meters long is running with a speed of 60 km/hr. In what time will it pass a
boy who is running at 6 km/hr in the direction opposite to that in which the train is going?
A 6.54 sec
AMPLE CODER
AMPLE CODER
B 44.32 sec
C 55 sec
D 30.2 sec
Ans: A
Explanation:
Speed of train relative to boy= `(60 + 6)` km/hr = 66 km/hr
`= [66 xx 5/18]` m/sec = `[55/3]` m/sec.
Time taken to pass the boy=` [120 xx 3/55]` sec = 6.54 seconds
50. Find the H.C.F, if the numbers are in the ratio of 4 : 5 : 6 and their L.C.M. is 2400.
A 35
B 20
C 40
D 67
Ans: B
Explanation:
Let the numbers be 3x, 4x and 5x.
Then,their L.C.M. = 120x.
So, 120x = 2400 or x = 20.
=>The numbers are (4 x 20), (5 x 20) and (6 x 20).
Hence, required H.C.F = 20.
51. A man wants to sell his scooter .There are two offers one at Rs12000 cash and other at a
credit of Rs12880 to be paid after 8 months ,money being at 18% per annum which is
better offer?
A) Rs.12880
AMPLE CODER
B) Rs.12000
AMPLE CODER
C) Both are equally good
D) None of the above
Ans: B) Rs.12000
Explanation:
PW of Rs.12,880 due 8 months
hence = Rs. [12880 x 100] / [100+(18 x 8/12)] =Rs.11500
Clearly 12000 in cash is a better offer.
52. A man can row 6 kmph in still water. When the river is running at 1.2 kmph, it takes
him 1 hour to row to a place and back. What is the total distance traveled by the man ?
A) 4.58 kms
B) 6.35 kms
C) 5.76 kms
D) 5.24 kms
Ans : C) 5.76 kms
Explanation:
Speed in still water = 6 kmph
Stream speed = 1.2 kmph
Down stream = 7.2 kmph
Up Stream = 4.8 kmph
x/7.2 + x/4.8 = 1
x = 2.88
Total Distance = 2.88 x 2 = 5.76 kms
53. What is the value of c , If 8 is 4% of a, and 4 is 8% of b. c equals b/a.
A 12
B 1/4
C 0.155
D None of these
AMPLE CODER
AMPLE CODER
Answer B
Explanation:
Let be the 4% of a is 4a/100.
Since this equals 8, we have 4a/100=8.
Solving for a yields a=8×`(100/4)`=200.
Also, 8% of b equals 8b/100, and this equals 4.
Hence, we have `(8/100)`×b=4.
Solving for b yields b = 50.
Now, c=`b/a`=`50/200`=`1/4.`
54. Walking at 3/4 of his normal speed, Mike is 16 minutes late in reaching his office. The
usual time taken by him to cover the distance between his home and his office is
a). 42 minutes
b). 48 minutes
c). 60 minutes
d). 62 minutes
Ans: 48 minutes
Explanation:
Let s = his normal speed
t = his normal time
Then
D = (3/4)s * (t+16)
Since the distance is the same we can equate this to his regular day which is D =
s*t
s*t = (3/4)s * (t+16)
t=48
AMPLE CODER
AMPLE CODER
55. What is the next number of the following sequence 7, 14, 55, 110, ....?
a)120
b)121
c)150
d)135
Ans: 121
Explanation:
Next number = Previous number + Reverse of previous number So
7 ,7+7=14, 14+41 = 55, 55+55 = 110, 110+011 = 121
56 The rate at which a sum becomes four times of itself in 25 years at S.I.,will be:
A 30%
B 25%
C 12%
D 49%
Ans: C
Explanation:
Let sum = x. Then, S.I. = 3x
Rate = [100 ** (S.I.) / P**T] %
= [100 ** (3x) / x ** 25]% = 12%
57. A train goes from stations A to B. One day there is a technical problem at the very
beginning of the journey & hence the train travels at 3/5 of it's original speed and so it
arrives 2 hours late. Had the problem occurred after 50 miles had been covered, the train
would have arrived 40 min earlier(i.e., only 120-40 = 80 min late). What is the distance
between the 2 stations?
a) 120
b)132
Ans: 150
AMPLE CODER
c)180
d)150
AMPLE CODER
Explanation:
For 1 mile the train is late by 40 / 50 min or 4/5 minutes. Or it is late by 1 minute for
every 5/4 miles. For 120 minutes late it has to travel 120 x 5/4 = 150 miles.
58. How many numbers are divisible by 4 between 1 to 100
a) 20
b)22
c)18
d)24
Ans: 24
Explanation:
There are 25 numbers which are divisible by 4 till 100. (100/4 = 25). But we should
not consider 100 as we are asked to find the numbers between 1 to 100 which are
divisible by 4. So answer is 24.
59. (11111011) 2 = () 8 - (Binary to Octal)
a) 378
b)252
c)318
d)285
Ans: 373
Explanation:
11111011) 2 =(251) 10 =(373) 8 or
You can group 3 binary digits from right hand side and write their equivalent octal form.
60. Find the roots of the quadratic equation: x2 + 2x - 15 = 0?
A. -5, 3
B. 3, 5
Ans: Option A
Explanation:
x2 + 5x - 3x - 15 = 0
x(x + 5) - 3(x + 5) = 0
(x - 3)(x + 5) = 0
AMPLE CODER
C. -3, 5
D. -3, -5
AMPLE CODER
=> x = 3 or x = -5.
61. At 6'o clock, the clock ticks 6 times. The time between first and last ticks was 30sec.
How much time it takes at 12'o clock?
A. 65 sec
B. 60 sec
C. 62 sec
D. 66 sec
Ans: 66sec
Explanation:
At 6'o clock ticks 6 times means 5 interval
and also given that time b/w first and last tick is 30 sec.
so 30/5=6
i.e time of each interval is 6 sec.
Similarly at 12'o clock, clock ticks 12 times i.e 11 interval
So 1 interval time=6
so 11 interval=11*6
Answer=66 sec
62. Divide 50 into two parts such that the sum of their reciprocals is 1/12. the
numbers are
a) (24,26)
b) (28,22)
Ans: D
Explanation:
let one number be x
the other number will be 50-x
AMPLE CODER
c) (27,23)
d) (20,30)
AMPLE CODER
1/x + 1/(50-x)= 1/12
50-x+x = x(50-x)/12
600 = 50x-x^2
x^2-50x+600=0
x^2-30x-20x+600=0
x(x-30)-20(x-30)=0
(x-30)(x-20)=0
x= 20 or 30 the numbers are 20 and 30
63. In how many possible ways can write 3240 as a product of 3 positive integers a,b and c
a) 450
b) 420
c) 350
d) 320
Ans: 420
Explanation:
3240=2*2*2*5*3*3*3*3
so, no. of ways=8!/(3!*4!)=420......
64. A mixture contains alcohol and water in the ratio 4 : 3. If 5 liters of water is added to
the mixture, the ratio becomes 4: 5. Find the quantity of alcohol in the given mixture.
A) 10
B) 12
C) 15
D) 18
Ans: A) 10
Explanation:
Let the quantity of alcohol and water be 4x litres and 3x litres respectively
4x/(3x+5) = 4/5
20x = 4(3x+5)
8x = 20
AMPLE CODER
AMPLE CODER
x = 2.5
Quantity of alcohol = (4 x 2.5) litres = 10 litres.
65. 5 cars are to be parked in 5 parking slots. there are 3 red cars, 1 blue car and 1
green car. How many ways the car can be parked?
A) 20
B) 12
C) 15
D) 18
Ans: 20
Explanation:
Total ways to park the cars having same color = 5!
But according to question ,there are 3 red cars,so no. of ways for parking 3 red cars= 3!
and both blue & green in 1 ways
so, 5!1!×3!×1!
= 20 ways
Hence correct answer is 20 ways.
66. A man sold two cows for Rs.210 at a total profit of 5 %. He sold one cow at a loss of
10% and another at a profit of 10%. What is the price of each cow?
A. 50,100
B. 100,50
C. 150,100
D 50,150
Ans: 50,150
Explanation:
50 and 150
after profit, price is 210
AMPLE CODER
AMPLE CODER
so cost price of 2 cows = 200
x+y=200
selling price of 2 cows =210
0.9x + 1.1y =210 //1 cow sold at 10 % loss and another is at 10% profit
solving both equations x=50 and y=150
so one cow is of x = Rs. 50
and Other is of 200-x = (200-50) = Rs. 150
67. There are 8 digits and 5 alphabets.In how many ways can you form an alphanumeric
word using 3 digits and 2 alphabets?
A) 45200
B) 48700
C) 43200
D) 48000
Ans: 43200
Explanation:
Select 3 digits from 8 digits i. e. 8 C 3
ways
And also select 2 alphabets from 5 alphabets i.e., 5 C 2
ways
Now to form a alphanumeric word of 5 characters we have to arrange the 5 selected
digits. So the answer is . 8 C 3
×5C2×
5! = 43200
68. In an Octagon the number of possible diagonals are?
A) 20
B) 12
C) 16
D) 18
AMPLE CODER
AMPLE CODER
Ans: 20
Explanation:
Formula : Number of diagonals for n sided regular polygon = n C 2 – n For Octagon n = 8
Number of diagonals = 8 C 2
– 8 = 20
69. How many numbers are divisible by 4 between 1 to 100
A) 20
B) 12
C) 26
D) 24
Ans: 24
Explanation:
Sequence of numbers that are divisible by 4 between 1 to 100 are as follows 4,8,12,16,
- - - - - - - - , 96
The series forms an Arithmetic Progression with
First number = a = 4
Common difference,d = 4
Last number = l = 96
Number of terms = n
Formula for last number in A.P. l = [a+(n – 1) × d]
96 = 4 + (n –1) × 4
n = 24
70. 10 women can complete a work in 7 days and 10 children take 14 days to complete
the work. How many days will 5 women and 10 children take to complete the work?
A. 6 days
B. 7 days
AMPLE CODER
AMPLE CODER
C. 8 days
D. 9 days
Ans: Option B
Explanation:
1 woman's 1 day's work = 1/70
1 Child's 1 day's work = 1/140
5 Women and 10 children 1 day work =
(5/70 +10/140)=1/7
So 5 women and 10 children will finish the work in 7 days.
71. A fires 5 shots to B's 3 but A kills only once in 3 shots while B kills once in 2 shots.
When B has missed 27 times, A has killed :
A) 30 birds
B) 60 birds
C) 72 birds
D) 90 birds
Ans: A) 30 birds
Explanation:
Let the no of shots be x. Then,
Shots fired by A =(5/8)x
Shots fired by B = (3/8)x
Killing shots by A = 1/3 of (5/8)x = (5/24)x
Shots missed by B = 1/2 of (3/8)x = (3/16)x
(3/16)x = 27 ⇒ x =144
Birds killed by A = (5/24)x = (5/24)*144 = 30
72. The letters in the word ROADIE are permuted in all possible ways and arranged in
alphabetic order. Find the word in the 44th rank.
AMPLE CODER
AMPLE CODER
a) AERIOD
b) AERDOI
c) AERODI
d) AEODRI
Explanation:
A----- => 5!=120
AD---- => 4!=24
AED--- => 3!=6
AEI--- => 3!=6
AEO--- => 3!=6
24+6+6+6=42
AERDIO => 43th
AERDOI => 44th
73. The sum of two numbers is 45. The sum of their quotient and is reciprocal
is 2.05, the product of the numbers is?
a) 450
b) 205
c) 400
d) 500
Ans: 500
Explanation:
- a + b = 45
a/b+b/a = 2.05
=>(a^2+b^2)/ab = 2.05
=>((a+b)^2−2ab)/ab=2.05
=>(a+b)^2 = 2.05ab + 2ab = 4.05ab
=> ab = 45^2 / 4.05 = 500
74. A grocer has a sale of Rs 6435, Rs. 6927, Rs. 6855, Rs. 7230 and Rs. 6562 for 5
consecutive months. How much sale must he have in the sixth month so that he gets an
average sale of Rs, 6500 ?
A) 4991
B) 5467
AMPLE CODER
AMPLE CODER
C) 5987
D) 6453
Ans: A) 4991
Explanation:
Total sale for 5 months = Rs. (6435 + 6927 + 6855 + 7230 + 6562) = Rs. 34009.
Required sale = Rs.[(6500 x 6) - 34009] = Rs. (39000 - 34009) = Rs. 4991.
75. P can do a piece of work in 5 days of 8 hours each and Q can do in 4 days of 6 hours
each. How long will they take do it working 5 hours a day?
a. 2 days
b. 3 days
c. 4 days
d. 5 days
Ans: 3 days
Explanation:
P can do in 5* 8 hours= 40 hours
Q can do in = 24 hours
Working together in one hour = (1/40) + (1/24) = 1/15
Total work can be finished in 15 hours
They 5 hours a day so total number of days = 15/5 = 3 days
76. Evaluate: log3 27
A) 3
B) 9
C) 27
D) 81
Ans: 3
Explanation:
let log3 27=33 or n=3.
ie, log3 27 = 3.
77. How many words can be formed from the letters of the word ‘DIRECTOR’
AMPLE CODER
AMPLE CODER
So that the vowels are always together?
A) 1020
B) 2160
C) 1600
D) 1800
Ans: 2160
Explanation:
In the given word, we treat the vowels IEO as one letter.
Thus, we have DRCTR (IEO).
This group has 6 letters of which R occurs 2 times and others are different.
Number of ways of arranging these letters = 6!/2! = 360.
Now 3 vowels can be arranged among themselves in 3! = 6 ways.
Required number of ways = (360x6) = 2160.
78. A person incurs a loss of 5% be selling a watch for Rs. 1140. At what price should
the watch be sold to earn 5% profit.
A. Rs.1200
B. Rs.1230
C. Rs.1260
D. Rs.1290
Ans: Option C
Explanation:
Let the new S.P. be x, then.
(100 - loss%):(1st S.P.) = (100 + gain%):(2nd S.P.)
=>(95/1140=105/x)=>x=1260
79. John told mark that if mark gives 1/3 rd of his money to him, he will have rs. 75.
Mark told john that if john gives half of hi money to him, he will have rs. 75. How much
AMPLE CODER
AMPLE CODER
money did they totally have?
a) 105
b) 125
c) 150
d) 75
Ans: 105
Explanation:
let mark be y nd john be x
x+y/3=75
y+x/2=75
by solving
x=60
y=45
total=105
80. Raj divided 50 into two parts such that the sum of their reciprocal is 1/12, we get the
parts as
a) 28, 22
b) 24, 36
c) 36, 14
d) 20, 30
Ans: 20,30
Explanation:
(1/20)+(1/30)=5/60=1/12 so ans is (d) 20,30
81. 1. 4, 6, 10, 14, 22, 26, 34, 38, 46, _ ? what is next term in the series.
A) 50
B) 52
C) 56
D) 58
Ans: 58
AMPLE CODER
AMPLE CODER
Explanation:
Divide each number by 2. Then we get 2, 3, 5, 7, 11, 13, ......, 23. This is a prime number series.
So next number will be 2 x 29 = 58
82. What is the next number in the series 3,7,13,19....
A) 25
B) 14
C) 26
D) 29
Ans: 29
Explanation:
Prime numbers from 3 on wards are 3, 5, 7, 11, 13, 17, 19, 23, 29 . . .
Write alternate primes numbers starting from 3.
3, 7, 13, 19, 29
Answer is 29
83. Which is the following is fraction for 0.36?
A - 9/25
B - 51/25
C - 3/400
D - 2081/250
Ans: A
Explanation:
0.36 = 36/100 = 9/25
84. Which is the following is fraction for 2.04?
A - 9/25
B - 51/25
AMPLE CODER
AMPLE CODER
C - 3/400
D - 2081/250
Ans: B
Explanation:
2.04 = 204/100 = 51/25
85. Which of the following is the correct ascending order for 3/8, 7/12, 2/3, 16/25, 14/15?
A - 3/8 < 7/12 < 2/3 < 16/25 < 14/15
B - 3/8 < 7/12 < 16/25 < 2/3 < 14/15
C - 7/12 < 3/8 < 2/3 < 16/25 < 14/15
D - 2/3 < 7/12 < 3/8 < 16/25 < 14/15
Answer - B
Explanation:
3/8 = 0.375, 7/12 = 0.583, 2/3 = 0.666, 16/25 = 0.64 and 14/15 = 0.933
As .375 < .583 < .64 <.666 < .933
∴ 3/8 < 7/12 < 2/3 < 16/25 < 14/15
86. 1 - 2- [3- {6-(5-4-3)}] = ?
A-0
B-1
C-2
D-3
Ans: B
Explanation:
Given exp. =2- [3-{6-(5-4+3)}]
= 2 - [3-{6-(5-4+3)}]
AMPLE CODER
[ Removing viranaculam]
[ Removing ( )]
AMPLE CODER
= 2-[ 3- {6-4}]
[ Removing {}]
= 2-[3-2]
[ Removing [ ]]
=2-1 = 1
87. (4.8 *1.8 / 3.6 +5.4 of 1/9 -1/5 ) = ?
A - 2.8
B - 3.8
C - 4.8
D - 5.8
Ans: A
Explanation:
Given exp . = 4.8 *1.8 / 3.6+ 0.6-1/5 (Removing of () )
= 4.8 * 1.8 * 1/ 3.6+ 0.6 -1/5 ( Removing /)
= 2.4 +0.6- 0.2
(Removing *)
= 3- 0.2 = 2.8
88. What is the number if 3/7 of 2/5 of a number is 198.
A - 1255
B - 1155
C - 1055
D - 955
Ans: B
Explanation:
If the number be x then,
3/7 of 2/5 of x = 198
⇒ 6x/35 = 198
AMPLE CODER
AMPLE CODER
⇒ x = (198* 35/6 ) = (33*35) = 1155.
89. Discover the co-ordinates of the centroid of ∆ABC whose vertices are A (6, - 2) and
B (4, - 3) what's more, C (- 1, - 4).
A - (-3,-3)
B - (3,3)
C - (3,-3)
D - (-3,3)
Ans: C
Explanation:
The directions of the centroid are
{(6+4-1)/3, (- 2-3-4)/3} i.e. (3, - 3)
90. Which of the following is the output of 6894 x 99 ?
A - 685506
B - 682506
C - 683506
D - 684506
Ans: B
Explanation:
6894 x 99
= 6894 x (100 - 1)
= 6894 x 100 - 6894 x 1
= 689400 - 6894
= 682506
AMPLE CODER
AMPLE CODER
91. On dividing a number by 342, 47 is the remainder. What will be remainder if same
number is
divided by 18?
A - 11
B-6
C-8
D-2
Ans: A
Explanation:
Let's quotient is a and given number be b.
b = 342a + 47
= (18 x 19)a + 36 + 11
= (18 x 19)a + (18 x 2) + 11
= 18 x (19a + 2) + 11
Thus, if same number is divided by 18, remainder will be 11.
We've used following formulae here:
Dividend = (Divisor x Quotient) + Reminder
92. What will be unit digit in 658 x 539 x 436 x 312?
A-8
B-9
C-4
D-6
Ans: C
Explanation:
Multiply unit digits of each number.
AMPLE CODER
AMPLE CODER
Unit digit in 658 x 539 x 436 x 312
= Unit digit in 8 x 9 x 6 x 2.
= Unit digit in 864.
= 4.
93. The length of a rectangular plot is 40 meters more than its breadth. If the cost of
fencing the plot at 53 per meter is Rs. 10,600, what is the length of the plot in meters?
A - 100 m
B - 80 m
C - 60 m
D - 55 m
Ans: A
Explanation:
Let breadth = X meters. Then, length = (X+ 40) meters.
Perimeter = 10600/53 =200 m
∴ 2[(X + 40) + X] = 200 2X + 40 = 100 2X = 120
⇒X = 60.
Hence, length = x + 40 = 100 m.
94. Find the average of all the numbers between 6 and 34 which are divisible by 5?
A - 30
B - 24
C - 20
D - 18
Ans: C
Explanation:
AMPLE CODER
AMPLE CODER
Average = (10 + 15 + 20 + 25 + 30)⁄5 = 100⁄5 = 20.
95. Which one of the following is not a prime number?
A. 31
B. 61
C. 71
D. 91
Ans: D
Explanation:
91 is divisible by 7. So, it is not a prime number.
96. What least number must be added to 1056, so that the sum is completely divisible by 23
A. 2
B. 3
C. 18
D. 21
Ans: A
Explanation:
If the number 1056 is completely divisible by 23 means, remainder should come zero.
But if we divide 1056 by 23, the remainder is 2.
So if 2 is added to the 1056, we get remainder 0.
Therefore solution is 2
97. How many of the following numbers are divisible by 132 ?
264, 396, 462, 792, 968, 2178, 5184, 6336
AMPLE CODER
AMPLE CODER
A. 4
B. 5
C. 6
D. 7
Ans: A
Explanation:
By using your calculator you can calculate that the following numbers are divisible by 132 : 264,
396, 792 and 6336.
Required number of number = 4.
98. A and B together have Sterling 1210. If 4/15 of A's amount is equal to 2/5 of B's
amount, how much amount does B have?
A. Sterling 460
B. Sterling 484
C. Sterling 550
D. Sterling 664
Answer: B
Explanation:
4/15A = 2/5B
A = (2/5 x 15/4)B
A = 3/2 B i.e. A/B = 3/2
A : B = 3 : 2.
AMPLE CODER
AMPLE CODER
B's share = Sterling (1210 x 2/5) = Sterling 484.
99. If 0.75 : x :: 5 : 8, then x is equal to:
A. 1.12
B. 1.2
C. 1.25
D. 1.30
Answer: B
Explanation:
(x x 5) = (0.75 x 8) x = 6/5 = 1.20
100. Tickets numbered 1 to 20 are mixed up and then a ticket is drawn at random. What is
the probability that the ticket drawn has a number which is a multiple of 3 or 5?
A. 1/2
B. 2/5
C. 8/15
D. 9/20
Ans: D
Explanation:
Here, S = {1, 2, 3, 4, ...., 19, 20}.
Let E = event of getting a multiple of 3 or 5 = {3, 6 , 9, 12, 15, 18, 5, 10, 20}.
P(E) = n(E)/n(S) = 9/20.
AMPLE CODER
AMPLE CODER
Logical Reasoning
1) Choose the odd one
A. Marigold
B. Grapes
C. Rose
D. Lotus
Answer – B. Grapes
Explanation: Except grapes all are flowers
Directions (Q. 2 - 4): Below asked questions, two rows of numbers are
given. The resultant number in each row is to be worked out separately
based on the following rules and the questions below the rows of numbers
are to be answered. The operations of numbers progress from the left to
the right.
Rules:
(i) If an odd number is followed by another composite odd number, they
are to be added.
(ii) If an even number is followed by an odd number they are to be added.
(iii) If an even number is followed by a number which is the perfect
square, the even number is to be subtracted from the perfect square.
(iv) If an odd number is followed by a prime odd number, the first
number is to be divided by the second number.
AMPLE CODER
AMPLE CODER
(v) If an odd number is followed by an even number the second one is to
be subtracted from the first number.
2. I. 15 6 21
II. P 3 27
If ‘P’ is the resultant of the first row, what will be the resultant of the
second row?
A. 27
B. 60
C. 58
D. 82
Answer - B. 60
Explanation:
15 – 6 = 9 [Rule v]
9 + 21= 30 [Rule i]
P = 30
30 + 3 = 33 [Rule ii]
33 + 27 = 60 [Rule i]
3.
I. 51 17 35
AMPLE CODER
AMPLE CODER
II. 14 15 R
If ‘R’ is the resultant of the first row, what will be the sum of the resultants
of first and second row?
A. 31
B. - 3
C. 29
D. 3
Answer - C. 29
Explanation: 51 / 17 = 3 [Rule iv]
3 + 35 = 38 [Rule i]
R = 38 14 + 15 = 29 [Rule ii]
29 – 38 = -9[Rule v] ;
Sum of the resultants of first and second row = 38 – 9 = 29
4.
I. 12 36 15
II. 18 Q 10
If ‘Q’ is the resultant of the first row, what will be the resultant of the
second row ?
A. 85
B. 101
AMPLE CODER
AMPLE CODER
C. 69
D. None of the above
Answer - D. None of the above
Explanation: 36 – 12 = 24 [Rule iii]
24 + 15 = 39 [Rule ii]
Q = 39
18 + 39 = 57 [Rule ii]
57 – 10 = 47 [Rule v]
Therefore, Answer is none of the above.
5. Thermometer: Temperature:: Barometer:?
A. Strain
B. Force
C. Stress
D. Pressure
Answer – D. Pressure
Explanation:
The thermometer is used to measure to Temperature similarly Barometer
is used to measure Pressure
AMPLE CODER
AMPLE CODER
Directions (Q 6 - 8) Study the following arrangement to answer the given
questions
R6J#L@3EDTAC*G©UM2FIV$4Z5Y
6. Which of the following is the sixth to the left of the fifth to the left of
“V”?
A. 3
B. D
C. T
D. A
Answer - C. T
Explanation: If we observe the above-given sequence sixth to the left of the
fifth to the left of “V” – 11th to the left of V
7. If all the numbers are dropped from the above arrangement, which of
the following will be the seventeenth from the right end?
A. E
B. I
C. @
D. C
Answer - C. @
Explanation:
AMPLE CODER
AMPLE CODER
Given Sequence R 6 J # L @ 3 E D T A C * G © U M 2 F I V $ 4 Z 5 Y
After removing the number from the sequence:
RJ#L@EDTAC*G©UMFIV$ZY
Therefore, the seventeenth symbol from the right side is @
8. Which of the following is the eighth to the right of the fourteenth from
the left end of the above arrangement?
A. $
B. E
C. V
D. 4
Answer - A. $
Explanation: If you carefully observe the above-given sequence then 8th to
the right of 14th from the left – 6th from the left end – $
9. Statements:
All pens are pins.
No tag is a pin.
All papers are pens
Conclusions:
I. No pin is a tag
AMPLE CODER
AMPLE CODER
II. All papers are pins
III. All pins are definitely not tag
A. Only I follows
B. Only II follows
C. Only II and III follow
D. All I, II and III follow
Answer – D. All I, II and III follow
Explanation:
I: from II => No tag is a pin => No pin is a tag
II: All+ All = All from I and III => true
III: From II => All pins are definitely not tag => true
10.
Statements: No plant is a tree. All trees are roots. Some branches are roots
Conclusions:
I. All roots being plants is a possibility
II. Some roots are definitely trees
III. At least some branches are definitely not trees
A. Only I follow
B. Only II follows
C. Only II and III follow
AMPLE CODER
AMPLE CODER
D. Only I and II follow
Answer – B. Only II follows
Explanation:
I: No+all => some not =>Possibility not exist because of negative statement
II: All trees are roots => Some roots are trees => true
III: From II and III => All+some => No conclusion => false
11. Three of the following four are alike in a certain way and so form a
group. Which is the one that does not belong to that group?
A. Kerala
B. Maharashtra
C. West Bengal
D. Uttar Pradesh
Answer – D. Uttar Pradesh
Explanation: Remaining all are have a sea coast
12. Statements:
I. The bank decided to give advances to the priority sector at the rate of
interest at par with the corporate sector.
II. The percentage of bad loans given by the banks to the priority sector is
very low compared to corporate sector.
A. Both the statement I and II are effects of independent causes.
AMPLE CODER
AMPLE CODER
B. Statement I is the cause and statement II is its effect.
C. Statement II is the cause and statement I is its effect.
D. Both the statement I and II are independent causes.
Answer – A. Both the statement I and II are the effects of independent
causes.
Explanation: The bank can change its policy with the priority sector due to
a change in government policy. Thus, it is an effect. But the same cause
cannot be the reason for the percentage of bad loans being less for the
priority sector.
13. Waves: Air:: Ripples:?
A. Light
B. Wind
C. Sound
D. Water
Answer – D. Water
Explanation: Waves travel in the air while ripples travel in water
14. Replace each letter by a digit. Each letter must be represented
by the same digit and no beginning letter of a word can be 0.
ONE
ONE
AMPLE CODER
AMPLE CODER
ONE
+O N E
------TEN
1)7,2,9
2)4,2,8
3)7,2,8
4) 5,3,8
Answer: 3)7, 2,8
Explanation:
E=2, N=8, O=1, T=7182
182
182
+ 182
—–
728
15. Given:
If
POINT
+ ZERO
--------------
AMPLE CODER
AMPLE CODER
ENERGY
Find the value of E + N + E + R + G + Y.
A) 11
B) 14
C) 13
D) 17
Answer: 17
Explanation:
firstly assume E=1,then it will look like this-Z1RO+POINT=1N1RGY
so obviously P=9 because 9+1=10 and
here we get N=0, Z1RO+9OI0T=101RGY
Z+O=1,Z=3,O=8,3+8=11,31R8+98I0T=101RGY,
8+T=Y,8+4=12 carry=1,31R8+98I04=101RG2
so its obvious R=6, 3168+98I04=1018G2
its obvious I=5,3168+98504=101672
so E+N+R+G+Y=1+0+1+6+7+2=17
16. If RIDE + DRIVE = NEVER. What is the value of R + I + D + E?
(Given that value of E is 3)
A)23
B)24
AMPLE CODER
AMPLE CODER
C)22
D)25
Answer: B)24
17. If HOW + MUCH = POWER, then what is value of P + O + W + E + R?
1)10
2)11
3)12
4)13
Answer: 3) 12
Explanation:
HOW+MUCH=Power
o=0,p=1,r=2,c=3,e=4,w=5,h=7,u=8,m=9
so 1+0+5+4+2=12
18. SEND + MORE = Then what is the value of M + O + N + E+ Y ?
A)13
B)14
C)15
D)16
Answers: B)14
AMPLE CODER
AMPLE CODER
Explanation:
SEND 9567
MORE 1085
—– —–----MONEY 10652
SO M+O+N+E+Y =1+0+6+5+2=14
19. COCA + COTA = OASIS each letter consist uniqe digit(0-9)
then find S+O+T+I+C+A
A)27
B)28
C)26
D)29
Answer C) 26
20. Fill in the blank spaces in the series with appropriate choices:
48, 45, 40, 33, 24 ……, ……
A 11, 12
B 12 13
C 13 0
D 9 11
AMPLE CODER
AMPLE CODER
Answer: Option C
Explaination:
The pattern in the series is as follows.
The difference between two consecutive numbers is getting increased by 2
starting from 3 as we move from left to right.
48
48 – 45 = 3
45 – 40 = 5
40 – 33 = 7
33 – 24 = 9
Hence, the next difference would be 9 + 2 = 11
So, next term to 24 = 24 – 11 = 13
Now, the difference would be 11 + 2 = 13
So, next term to 13 = 13 – 13 = 0
Hence, next numbers are 13, 0.
21. Given signs signify something and on that basis, assume the given
statements to be true and find which of the two conclusions I and II is/are
definitely true.
P + Q means P is greater than Q
P * Q means P is greater than or equal than Q
P = Q means P is equal to Q
AMPLE CODER
AMPLE CODER
P / Q means P is less than Q
P - Q means P is less than or equal to Q
Statements X/Y, W * Z, Z + Y
Conclusions
I. W + Y
II. X/Z
Option 1 : Only conclusion I is true
Option 2 : Only conclusion II is true
Option 3 : Neither conclusion I nor II is true
Option 4 : Both conclusion I and II are true
The question contains some statements followed by some
conclusions.Decide which of the given conclusions logically follow from
the given statements, disregarding commonly known facts.
22. Statements
Some ship are boats.
All boats are submarines.
Some submarines are yatches.
Conclusions
I. Some yatches are boats.
II. Some submarines are boats.
AMPLE CODER
AMPLE CODER
III. Some submarines are ships.
IV. Some yatches are ships.
Option 1 : All follow
Option 2 : Only II and III follows
Option 3 : Only III follows
Option 4 : Only either III or IV follows.
23. Statements:
Some marbles are pens.
Some pens are dogs.
Some dogs are doors.
Conclusions:
I. Some doors are pens.
II. Some dogs are marbles.
III. Some marbles are doors.
Option 1 : All follow.
Option 2 : Only II follows.
Option 3 : Only I follows.
Option 4 : Only III follows.
AMPLE CODER
AMPLE CODER
24. Statements
(a) All cities are towns.
(b) Some cities are villages.
Conclusions
I. All villages are towns.
II. No village is a town.
III. Some villages are towns.
Option 1 : Only III follows
Option 2 : Only I follows
Option 3 : Only II follows
Option 4 : None of these
25. Statements
P: All good athletes want to win.
Q: All good athletes eat well.
Conclusions
I. All those who eat well are good athletes.
II. All those who want to win, eat well.
Option 1 : Only conclusion I follows.
Option 2 : Only conclusion II follows.
Option 3 : Neither I nor II follows
AMPLE CODER
AMPLE CODER
Option 4 : Both I and II follow
26. Statements
P: Some mobiles are cameras.
Q: Some cameras are calculators.
Conclusions
I. All calculators are mobiles.
II. All cameras are mobiles.
Option 1 : Only conclusion I follows.
Option 2 : Only conclusion II follows.
Option 3 : Neither I nor II follows.
Option 4 : Both I and II follow.
27. In the question symbols *, @, %, $ and # are used with the following
meaning :
‘P $ Q’ means ‘P is not greater than Q’
‘P * Q’ means ‘P is neither smaller than nor greater than Q’
‘P # Q’ means “P is neither greater than nor equal to Q’
‘P % Q’ means ‘P is not smaller than Q’.
‘P @ Q’ means ‘P is neither smaller than nor equal to Q’.
AMPLE CODER
AMPLE CODER
Now assuming the statements to be true, find which of the two conclusions I
and II is/are definitely true.
Statements: W @ M, J # M, M * Y
Conclusions:
I. Y * W
II. Y @ J
Option 1 : Only conclusion I is true
Option 2 : Only conclusion II is true
Option 3 : Either conclusion I or II is true
Option 4 : Neither conclusion I nor II is true
28. In the question symbols *, @, %, $ and # are used with the following
meaning :
‘P $ Q’ means ‘P is not greater than Q’
‘P * Q’ means ‘P is neither smaller than nor greater than Q’
‘P # Q’ means “P is neither greater than nor equal to Q’
‘P % Q’ means ‘P is not smaller than Q’.
‘P @ Q’ means ‘P is neither smaller than nor equal to Q’.
Now assuming the statements to be true, find which of the two
conclusions I and II is/are definitely true.
Statements
D %H, K * H, H $ R
AMPLE CODER
AMPLE CODER
Conclusions
I. K $ R
II. D % K
Option 1 : Only conclusion I is true
Option 2 : Only conclusion II is true
Option 3 : Either conclusion I or II is true
Option 4 : Both conclusions I and II are true
29. Statements: S
ome rabbits are deers.
No deer is a lion.
All elephants are lions.
Conclusions:
I. No rabbit is lion.
II. No elephant is deer.
III. Some elephants are rabbits.
Option 1 : All follow
Option 2 : Only II follows
Option 3 : Either I or II follow
Option 4 : Only II and III follows
AMPLE CODER
AMPLE CODER
30. Statements:
All files are folders.
All folders are boxes.
All boxes are drawers.
Conclusions:
I. All folders are drawers.
II. All boxes are files.
III. All files are drawers.
IV. All drawers are folders.
Option 1 : Only I and II follow.
Option 2 : Only I and III follow.
Option 3 : Only II and III follow.
Option 4 : All follows
31. Statements:
All ducks are pigeons.
All pigeons are crows.
Conclusions:
I. Some crows are ducks.
II. Some crows are pigeons.
Option 1 : Only conclusion I follows.
AMPLE CODER
AMPLE CODER
Option 2 : Only conclusion II follows.
Option 3 : Neither I nor II follows.
Option 4 : Both I and II follow.
32. Statements:
Some metals are minerals.
All minerals are solids.
Conclusions:
I. All solids are made up of metals and minerals.
II. Some minerals are metals.
Option 1 : Only conclusion I follows.
Option 2 : Only conclusion II follows.
Option 3 : Either I or II follows.
Option 4 : Both I and II follow.
33. Statements:
Some boys are trees.
Some trees are jungles.
Some jungles are fruits.
Conclusions:
I. Some fruits are trees.
AMPLE CODER
AMPLE CODER
II. Some trees are boys.
III. Some jungles are boys.
Option 1 : None follows
Option 2 : Only I follows
Option 3 : Only III follow
Option 4 : Only II follows
34. Statements:
Some pens are books.
All schools are books.
Some colleges are schools.
Conclusions:
I. Some colleges are pens.
II. Some pens are schools.
III. Some colleges are books.
Option 1 : All follows
Option 2 : Only I and II follows
Option 3 : Only II and III follow
Option 4 : None of these
35. Statements:
AMPLE CODER
AMPLE CODER
Some buses are houses.
All houses are taxis.
All rickshaws are taxis.
Conclusions:
I. Some rickshaws are houses.
II. Some taxis are houses.
III. Some taxis are buses.
Option 1 : None follows
Option 2 : Only I follows
Option 3 : Only II follows
Option 4 : Only II and III follow
Option 5 : All follow
36. Statements:
All oceans are rivers.
Some springs are rivers.
All wells are springs.
Conclusions:
I. Some springs are oceans.
II. Some wells are rivers.
III. Some rivers are oceans.
AMPLE CODER
AMPLE CODER
IV. No well is river.
Option 1 : Only either II or IV and III follow.
Option 2 : Only either II or IV and I follow.
Option 3 : Only either I or III and IV follow.
Option 4 : None follows
37. Statements:
Some disciplines are preachers.
All preachers are saints.
Some saints are not disciples.
Conclusions:
I. Some saints are disciples.
II. All disciples are saints.
III. All preachers are disciples.
IV. No Saint is disciples.
Option 1 : No follows
Option 2 : Only I follows
Option 3 : Only I and III follow
Option 4 : Only II and III follow
38. Statements:
AMPLE CODER
AMPLE CODER
Some buses are rivers.
All rivers are mountains.
Some roads are mountains.
Conclusions:
I. Some mountains are buses.
II. Some roads are buses.
III. Some roads are rivers.
IV. Some mountains are roads.
Option 1 : All follow
Option 2 : Only II, III and IV follow
Option 3 : Only III and IV follows
Option 4 : Only I and IV follows
39. In the question, the symbols @, &, *, $ and # are used with the
following meaning:
A # B means A is not greater than B.
A $ B means A is neither smaller nor equal to B.
A ? B means A is neither smaller nor greater than B
A * B means A is neither greater nor equal to B.
A @ B means A is not smaller than B.
AMPLE CODER
AMPLE CODER
Now assume the given statements to be true and find which out of the two
conclusions I and II is/are definitely true.
Statements: K # T, D $ F, T * F
Conclusions:
I. K * D
II.D $ T
Option 1 : Only conclusion I is true
Option 2 : Only conclusion II is true
Option 3 : Neither conclusion I nor II is true
Option 4 : Both conclusions I and II are true
40. In the question certain symbols are used with the following meaning:
‘P ^ Q’ means ‘P is greater than Q’.
“P * Q means ‘P is equal to Q’
”P # Q’ means ‘P is either smaller than or equal to Q’
‘P $ Q’ means ‘P is not smaller than Q’
‘P @ Q’ means ‘P is either greater than or equal to Q’
Now assume the given statements to be true and find which of the two
conclusions I and II is/are definitely true.
Statements: A * B, C # B, A ^ F, B @ C
Conclusions:
AMPLE CODER
AMPLE CODER
I. C ^ F
II. F ^ B
Option 1 : Only conclusion I is true
Option 2 : Only conclusion II is true
Option 3 : Either conclusion I or II is true
Option 4 : Neither conclusion I nor II is true
41. Statements:
No paper is pen.
No pen is pencil.
All erasers are papers.
Conclusions:
I. Some papers are erasers.
II. No pencil are eraser.
III. No pen is eraser.
IV. ALL papers are erasers.
Option 1 : All follows
Option 2 : Only I and II follows
Option 3 : Only II and III follows
Option 4 : None of these
AMPLE CODER
AMPLE CODER
42. Statements:
Some rings are phones.
Some phones are computers.
Some computers are stations.
Conclusions:
I. Some stations are rings.
II. Some phones are stations.
III. Some computers are rings.
IV. All rings are stations.
Option 1 : None follows
Option 2 : Only I and II follow
Option 3 : Only II and III follow
Option 4 : All follow
43. Statements:
All rings are birds.
Some birds are cages.
All cages are kites.
Conclusions:
I. All kites are cages.
II. Some kites are rings.
AMPLE CODER
AMPLE CODER
III. Some birds are kites.
Option 1 : Only I follows
Option 2 : Only II follows
Option 3 : Only III follows
Option 4 : Only I and II follow
44. Statements:
Some dogs are bags.
No bag is lion.
All rooms are lions.
Conclusions:
I. Some rooms are bags.
II. Some dogs are lions.
III. Some rooms are dogs.
Option 1 : All follows
Option 2 : Only I follows
Option 3 : Only II follows
Option 4 : None of these follows
45. Statements:
Some farmers are landlords.
AMPLE CODER
AMPLE CODER
All landlords are labours.
Some labours are merchants.
Conclusions:
I. Some labours are farmers.
II. Some merchants are farmers.
III. Some merchants are landlords.
IV. Some landlords are farmers.
Option 1 : None follow
Option 2 : Only IV follow
Option 3 : Only I follow
Option 4 : Both I and IV follows
46. The question shows a pair of words in which the first is related to the
second in some way. It is followed by a single word which bears a similar
relation to one of the given alternatives.
Find the correct alternative to complete the analogy.
Pascal:Programming::Oracle: ?
Option 1 : Internet
Option 2 : Greek
Option 3 : Java
Option 4 : Teletext
AMPLE CODER
AMPLE CODER
47. Find the correct alternative to complete the analogy.
Dividend: Shares :: ? : Debenture
Option 1 : Bonus
Option 2 : Gift Voucher
Option 3 : Profit
Option 4 : Interest
48. Find the correct alternative to complete the analogy.
Abjure : Adopt :: Forfeit : ?
Option 1 : Squander
Option 2 : Lavish
Option 3 : Redeem
Option 4 : Deposit
49. Find the correct alternative to complete the analogy.
Electrical Engineers : Grid :: Cosmologists : ?
Option 1 : Group
Option 2 : Faculty
Option 3 : Galaxy
Option 4 : Syndicate
AMPLE CODER
AMPLE CODER
50. Select that pair that expresses the relationship that is most similar to
the given pair.
Monolith : Rock :: ?
Option 1 : Continent : Ocean
Option 2 : Tor : Lea
Option 3 : Grain : Sand
Option 4 : Cataract : Waterfall
51. Select that pair that expresses the relationship that is most similar to
the given pair.
Abduct : Kidnap :: ?
Option 1 : Pilfer : Steal
Option 2 : Derail : Further
Option 3 : Jump: Enjoy
Option 4 : Clarify : Cuneal
52. Find a similar relationship from the given options.
Conductor : Orchestra : Symphony
Option 1 : Judge : Convict : Justice
Option 2 : Player : Opponent : Game
AMPLE CODER
AMPLE CODER
Option 3 : Author : Book : Magazine
Option 4 : Teacher : Class : Lesson
53. Find the correct alternative to complete the analogy.
NDA: BJP :: ? : Congress
Option 1 : UPS
Option 2 : PUA
Option 3 : UPA
Option 4 : NPA
54. Find the correct alternative to complete the analogy.
Confute : Rebut :: Repellent : ?
Option 1 : Pusher
Option 2 : Attractive
Option 3 : Repugnant
Option 4 : Spray
55. Select that pair that expresses the relationship that is most similar to
the given pair.
Polygon : Perimeter :: ?
Option 1 : Triangle : Angles
AMPLE CODER
AMPLE CODER
Option 2 : Circle : Circumference
Option 3 : Semi-circle : Arc
Option 4 : Square : Area
56. Select that pair that expresses the relationship that is most similar to
the given pair.
Newton : Gravitation :: ?
Option 1 : Marie Curie : Uranium
Option 2 : Kalpana : Rocket
Option 3 : Archimedes : Buoyancy
Option 4 : Davies : Safety Lamp
57. Select that pair that expresses the relationship that is most similar to
the given pair.
Income Tax : Direct :: ?
Option 1 : Import : Custom Duty
Option 2 : Sale Tax : Indirect
Option 3 : Export : Subsidy
Option 4 : Wealth Tax : Wealth
58. Read the question statement and select the correct option from the
given alternatives.
AMPLE CODER
AMPLE CODER
Sheaf is related to Corn as …… is related to Books.
Option 1 : Library
Option 2 : Pile
Option 3 : Anthology
Option 4 : Shop
59. Read the question statement and select the correct option from the
given alternatives.
Surplus is related to Sufficient as …… is related to Need.
Option 1 : Gathering
Option 2 : Demand
Option 3 : Excess
Option 4 : Storage
60. Read the question statement and select the correct option from the
given alternatives.
Humanitarian is to Altruism what Host is to ……
Option 1 : Hostage
Option 2 : Hospitality
Option 3 : Service
Option 4 : Welcome
AMPLE CODER
AMPLE CODER
61. Read the question statement and select the correct option from the
given alternatives.
Umbrella is to Rain what Goggles are to ……
Option 1 : Light
Option 2 : Glare
Option 3 : Beam
Option 4 : Sun
62. Detect the analogy underlying them by choosing the right option.
Website : CD : Book
Option 1 : They are modern storehouses
Option 2 : They guide us in moral values
Option 3 : They can be subscribed
Option 4 : They are sources of specific information
63. Detect the analogy underlying them by choosing the right option.
Acceleration : Speed : Velocity
Option 1 : These denote laws of movement
Option 2 : They are a function of Force x Motion
Option 3 : They are scientific expression of motion
AMPLE CODER
AMPLE CODER
Option 4 : All these are forms of gravitation
64. Select that pair that expresses the relationship that is most similar to
the given pair.
Appeal: Refusal :: ?
Option 1 : Obesity: Over-eating
Option 2 : Deny : Affirmation
Option 3 : Try : Failure
Option 4 : Struggle : Victory
65. From the given choices select the odd man out:
Option 1 : Shapeliness
Option 2 : Adorn
Option 3 : Beautify
Option 4 : Conserve
Option 5 : Deformity
66. From the given choices select the odd man out:
Option 1 : Assert
Option 2 : Acknowledge
Option 3 : Claim
AMPLE CODER
AMPLE CODER
Option 4 : Uphold
Option 5 : Forswear
67. From the given choices select the odd man out:
Option 1 : Beefy
Option 2 : Stocky
Option 3 : Husky
Option 4 : Thin
Option 5 : Brawny
68. From the given choices select the odd man out:
Option 1 : Manifest
Option 2 : Conceal
Option 3 : Suppress
Option 4 : Implicit
Option 5 : Hidden
69. From the given choices select the odd man out:
Option 1 : Dutiful
Option 2 : Good
Option 3 : Mischievous
AMPLE CODER
AMPLE CODER
Option 4 : Well-behaved
Option 5 : Obedient
70. From the given choices select the odd man out:
Option 1 : Timid
Option 2 : Appropriate
Option 3 : Commendable
Option 4 : Outrageous
Option 5 : Decorous
71. From the given choices select the odd man out:
Option 1 : Profound
Option 2 : Deep
Option 3 : Shallow
Option 4 : Fathomless
Option 5 : Excess
72. From the given choices select the odd man out:
Option 1 : Solitary
Option 2 : Lone
Option 3 : Companionable
AMPLE CODER
AMPLE CODER
Option 4 : Single
Option 5 : Secluded
73. From the given choices select the odd man out:
Option 1 : Base
Option 2 : Bottom
Option 3 : Foot
Option 4 : Zenith
Option 5 : Low
74. In the question a statement is followed by some courses of action .
A course of action is a step or administrative decisions to be taken for
improvement, follow-up, or further action in regard to the problem,
policy, etc.
You have to assume everything in the statement to be true and then
decide which of the given suggested course(s) of action logically follows
for pursuing.
Statement:
‘About half the Indian population is so poor that they have never used a
telephone’ – a VN survey.
Courses of Action :
I. People should be provided with telephone sets or mobiles at low rate.
AMPLE CODER
AMPLE CODER
II. They should be given a demonstration as to how to use a telephone.
Option 1 : Only I follows
Option 2 : Only II follows
Option 3 : Neither I nor II follows
Option 4 : Both I and II follow.
75. In the question a statement is followed by some courses of action .
A course of action is a step or administrative decisions to be taken for
improvement, follow-up, or further action in regard to the problem,
policy, etc.
You have to assume everything in the statement to be true and then
decide which of the given suggested course(s) of action logically follows
for pursuing.
Statement:
America attacked Iraq despite Security Council’s advice not to do so. Big
powers like America are defying the world body off and on.
Courses of Action :
I. A group of countries should warn USA and take military action if
response is not positive.
II. The UNO should be either revamped or disbanded.
Option 1 : Only I follows
Option 2 : Only II follows
Option 3 : Neither I nor II follows
AMPLE CODER
AMPLE CODER
Option 4 : Both I and II follow.
76. In the question a statement is followed by some courses of action .
A course of action is a step or administrative decisions to be taken for
improvement, follow-up, or further action in regard to the problem,
policy, etc.
You have to assume everything in the statement to be true and then
decide which of the given suggested course(s) of action logically follows
for pursuing.
Statement: India ranks fifth in the world in potential water resources.
Notwithstanding, there is shortage of water for consumption and irrigation
in almost every part of the country.
Courses of Action :
I. We must tend to our water resources like rivers, lakes, ponds, wells, tanks
etc.
II. We must harvest rainwater over 70% of which runs off wastefully.
Option 1 : Only I follows
Option 2 : Only II follows
Option 3 : Neither I nor II follows
Option 4 : Both I and II follow.
77. In the question a statement is followed by some courses of action . A
course of action is a step or administrative decisions to be taken for
AMPLE CODER
AMPLE CODER
improvement, follow-up, or further action in regard to the problem,
policy,
Etc.
You have to assume everything in the statement to be true and then
decide which of the given suggested course(s) of action logically follows
for pursuing.
Statement: The gulf between the rich and the poor is increasing in our
country.
Courses of Action :
I. This is one of the features of free market economy which is a part of our
mixed economy. None can help it.
II. The government must work earnestly to improve the economic
condition of the poor.
Option 1 : Only I follows
Option 2 : Only II follows
Option 3 : Either I or II follows
Option 4 : Neither I nor II follows
78. In the question a statement is followed by some courses of action .
A course of action is a step or administrative decisions to be taken for
improvement, follow-up, or further action in regard to the problem,
policy, etc.
AMPLE CODER
AMPLE CODER
You have to assume everything in the statement to be true and then
decide which of the given suggested course(s) of action logically follows
for pursuing.
Statement: Since its launching in 1981, Vayudoot has so fare accumulated
losses amounting to Rs. 153 crore during the last ten years.
Courses of Action :
I. Vayudoot should be directed to reduce wasteful expenditure and to
increase passenger fare.
II. An amount of about Rs. 300 crore should be provided to Vayudoot to
make the airline economically viable.
Option 1 : Only I follows
Option 2 : Only II follows
Option 3 : Either I or II follows
Option 4 : Neither I nor II follows
79. In the question a statement is followed by some courses of action .
A course of action is a step or administrative decisions to be taken for
improvement, follow-up, or further action in regard to the problem,
policy, etc.
You have to assume everything in the statement to be true and then
decide which of the given suggested course(s) of action logically follows
for pursuing.
AMPLE CODER
AMPLE CODER
Statement : ‘Despite family planning programmes, the rate of growth of
population in our country is the highest in the world. We are likely to
achieve the dubious distinction of being the most populated country in the
world, by 2045’ – a survey.
Courses of Action :
I. The family planning programmes should be abandoned.
II. Those who have more than two children should be forced disincentives
like more tax etc.
Option 1 : Only I follows
Option 2 : Only II follows
Option 3 : Both I and II follows
Option 4 : Neither I nor II follows
80. The question is followed by two arguments numbered I and II.
You have to decide which of the arguments is a strong argument and
which is a weak argument.
Statement : Should strikes be banned in essential services?
Arguments :
I. Yes, because strikes disrupt the normal life.
II. No, because it is the democratic right of the people.
Option 1 : Only argument I is strong.
Option 2 : Only argument II is strong.
AMPLE CODER
AMPLE CODER
Option 3 : Either I or II is strong.
Option 4 : Neither I nor II is strong.
81. The question is followed by two arguments numbered I and II.
You have to decide which of the arguments is a strong argument and
which is a weak argument.
Statement : Should firecrackers be completely banned in India?
Arguments :
I. Yes,firecrackers cause a lot of air pollution and noise pollution.
II.No,this will render thousands of people working in this industry jobless.
Option 1 : Only argument I is strong.
Option 2 : Only argument II is strong.
Option 3 : Either I or II is strong.
Option 4 : Neither I nor II is strong.
82. The question is followed by two arguments numbered I and II.
You have to decide which of the arguments is a strong argument and
which is a weak argument.
Statement: Should the reservations given to SC/ST be done away with ?
Arguments :
I. Yes, the reservations for SC/ST, etc. were to remain for a period of ten
years as per on constitution.
AMPLE CODER
AMPLE CODER
II. No, it will frustrate these classes and lead to social unrest.
Option 1 : Only argument I is strong.
Option 2 : Only argument II is strong.
Option 3 : Either I or II is strong.
Option 4 : Neither I nor II is strong.
83. The question is followed by two arguments numbered I and II.
You have to decide which of the arguments is a strong argument and
which is a weak argument.
Statement: Some people feel that the rural areas are the only potential
markets of the future.
Arguments:
I. Yes, the demand of goods and services has stagnated in the cities.
II. No, rural areas will take a long time to develop before they can become a
potential market.
Option 1 : Only argument I is strong.
Option 2 : Only argument II is strong.
Option 3 : Either I or II is strong.
Option 4 : Neither I nor II is strong.
84. The question is followed by two arguments numbered I and II.
AMPLE CODER
AMPLE CODER
You have to decide which of the arguments is a strong argument and
which is a weak argument.
Statement: Should space exploration programmes be given up by India?
Arguments :
I. Yes, they involve huge expenditure, which can be used towards
development projects.
II. No, they are necessary for development, communication, weather
forecast and prediction of cyclones etc.
Option 1 : Only argument I is strong.
Option 2 : Only argument II is strong.
Option 3 : Either I or II is strong.
Option 4 : Neither I nor II is strong.
85. The question is followed by two arguments numbered I and II.
You have to decide which of the arguments is a strong argument and
which is a weak argument.
Statement: Should the oil companies be allowed to fix the price of
petroleum products depending on market conditions?
Arguments :
I. Yes, this is the only way to make the oil companies commercially viable.
II. No, this will put additional burden on the retail prices of essential
commodities and will cause lot of hardships to the masses.
Option 1 : Only argument I is strong.
AMPLE CODER
AMPLE CODER
Option 2 : Only argument II is strong
Option 3 : Either I or II is strong.
Option 4 : Neither I nor II is strong.
86. The question contains a statement followed by two Assumptions I and
II.
Find out which assumption(s) is implicit.
Statement:
Use ‘X’ brand shoes.
These are durable and available in all sizes.
Assumptions:
I. Some people do not know about ‘X’ brand shoes.
II. Normally, people like durable shoes.
Option 1 : Only Assumption I is implicit.
Option 2 : Only Assumption II is implicit.
Option 3 : Neither Assumption I nor II is implicit.
Option 4 : Both Assumptions I and II are implicit.
87. The question contains a statement followed by two Assumptions I and
II.
Find out which assumption(s) is implicit.
AMPLE CODER
AMPLE CODER
Statement: ‘Please do not wait for me, I may be late, start taking lunch as
soon as the guests arrive.’ – a message from a Director of a Company to his
Office managers.
Assumptions:
I. Keeping guests waiting is not desirable.
II.Lunch may not be ready in time.
Option 1 : Only Assumption I is implicit.
Option 2 : Only Assumption II is implicit.
Option 3 : Either Assumption I or II is implicit.
Option 4 : Neither Assumption I nor II is implicit.
88. The question contains a statement followed by two Assumptions I and
II. Find out which assumption(s) is implicit.
Statement: The government has decided to pay compensation of Rs. 1 lakh
to the family members of those who are killed in railway accidents.
Assumptions:
I. The government has enough funds to meet the expenses due for
compensation.
II. There may be reduction in incidents of railway accidents in near future.
Option 1 : Only Assumption I is implicit.
Option 2 : Only Assumption II is implicit.
Option 3 : Either Assumption I or II is implicit.
AMPLE CODER
AMPLE CODER
Option 4 : Neither Assumption I nor II is implicit.
89. Select the right option from the given alternatives
256 : 4086 :: ?
Option 1 : 225 : 3365
Option 2 : 144 : 3032
Option 3 : 132 : 3012
Option 4 : 160 : 3600
90. In the following question three numbers are given which are inter-
connected in some way.
Select the option that bears an analogy similar to the main words.
21:51:15
Option 1 : 21:31:51
Option 2 : 21:36:41
Option 3 : 21:51:61
Option 4 : 21:91:35
91. In the following question three numbers are given which are inter-
connected in some way.
Select the option that bears an analogy similar to the main words.
AMPLE CODER
AMPLE CODER
264 : 275 : 385
Option 1 : 145 : 253 : 325
Option 2 : 143 : 235 : 246
Option 3 : 372 : 563 : 736
Option 4 : 233 : 343 : 345
92. From the given choices select the odd man out
Option 1 : ADG
Option 2 : BEH
Option 3 : SUT
Option 4 : KNQ
Option 5 : CFI
93. From the given choices select the odd man out
Option 1 : STU
Option 2 : LML
Option 3 : LVW
Option 4 : RPL
94. From the given choices select the odd man out
Option 1 : XGEZ
AMPLE CODER
AMPLE CODER
Option 2 : PCAQ
Option 3 : LKIN
Option 4 : DWUF
95. From the given choices select the odd man out
Option 1 : REAB
Option 2 : SOED
Option 3 : WYZE
Option 4 : AETF
96. Decode the word(s) / pattern given in the question
If CONTRIBUTE is written as ETBUIRNTOC, which letter will be in the
sixth place when counted from the left if POPULARISE is written in that
code ?
Option 1 : L
Option 2 : A
Option 3 : I
Option 4 : D
97. Decode the word(s) / pattern given in the question
If SHARP is coded as 58034 and PUSH as 4658, then RUSH is coded as
AMPLE CODER
AMPLE CODER
Option 1 : 3568
Option 2 : 3658
Option 3 : 3685
Option 4 : 3583
98. Decode the word(s) / pattern given in the question
If MACHINE is coded as 19 – 7 – 9 – 14 – 15 – 20 – 11, how will you code
DANGER ?
Option 1 : 10 – 7 – 20 – 13 – 11 – 24
Option 2 : 11 – 7 – 20 – 16 – 11 – 24
Option 3 : 13 – 7 – 20 – 9 – 11 – 25
Option 4 : 13 – 7 – 20 – 10 – 11 – 25
99. Decode the word(s) / pattern given in the question
In a certain code ‘HIT BIT NIT’ means ‘GIT CIT MIT’;
‘SIT PIT MIT’ means ‘RIT QIT LIT’ and
FIT ZIT PIT means EIT AIT OIT.
What does DIT JIT KIT stand for in that code language ?
Option 1 : CIT KIT JIT
Option 2 : BIT CIT JIT
AMPLE CODER
AMPLE CODER
Option 3 : RIT LIT PIT
Option 4 : LIT RIT MIT
100. Decode the word(s) / pattern given in the question
If STUDENT is coded as RUTE DOS, which word would be coded as
RDGPKBQ ?
Option 1 : SHACKLE
Option 2 : SHINGLE
Option 3 : SNOBBER
Option 4 : SCHOLAR
AMPLE CODER
AMPLE CODER
Verbal Reasoning
Directions for Questions 1-7:
In the following sentences, there may be some errors in the parts which
are marked as A, B, C, D. Identify the part which has errors.
1. She was a young girl with a pretty face, (A)/ very well trained in dancing
(B)/ and who gave much promise of (C)/ a brilliant career as a film artist.
(D)
a. A
b. B
c. C
d. D
Answer: C
Explanation:
Correction: She was a young girl with a pretty face, very well trained in
dancing and she gave much promise of a brilliant career as a film artist.
'Who' must be replaced with 'she'.
2. The University has announced that (A)/ everyone will take the
examination now (B)/ will receive their results within (C)/ eight weeks at
the latest. (D)
a. A
b. B
Answer: C
Explanation:
AMPLE CODER
c. C
d. D
AMPLE CODER
Correction: The University has announced that everyone who takes the
examination now will receive their results within eight weeks at the latest.
There needs to be a connection between the subject and the verb which is
provided by replacing 'will' by 'who'.
3. Everyone who saw the movie ‘Star Wars’ (A)/ is unanimous in their view
(B)/ that it is the best science fiction movie (C)/ ever produced. (D)
a. A b. B c. C d. D
Answer: B
Explanation:
The word 'unanimous' itself means sharing the same views or opinions.
Thus it is needless to repeat the same point by stating that 'Everyone who
saw the movie ‘Star Wars’ is unanimous in their view'. Thus the error is in B.
Correction: Everyone who saw the movie ‘Star Wars’ is unanimous that it is
the best science fiction movie ever produced.
4. Though the elephant, because of its size, (A)/ appears to be a rather slow
animal, (B)/ it can in fact run faster than (C)/ any other man. (D)
a. A b. B c. C d. D
Answer: D
Explanation:
Correction: Though the elephant, because of its size, appears to be a rather
slow animal, it can in fact run faster than any other man can.
AMPLE CODER
AMPLE CODER
It should be evident from the sentence that the ability of an elephant is
being compared to the ability of a man.
5. I do not wish to make a formal (A)/ complaint, but I would have been
better pleased (B)/if you gave the (C)/award to the person who best
deserved it.(D)/
a. A b. B c. C d. D
Answer: C
Explanation:
Change gave to had given because the verb in the previous clause is in the
past conditional tense.
6. Raji found it difficult (A)/ to manage single-handedly the three children
(B)/ who were always quarrelling (C)/ between themselves. (D)
a. A b. B c. C d. D
Answer: D
Explanation:
Correction: Raji found it difficult to manage single-handedly the three
children who were always quarrelling among themselves.
As there are three children, 'among' is the suitable word to use instead of
between.
AMPLE CODER
AMPLE CODER
7. Fluosol is a transparency liquid (A)/ that closely resembles water (B)/ but
in fact is twice (C)/ as dense as it is. (D)
a. A b. B c. C d. D
Answer: A
Explanation:
Correction: Fluosol is a transparent liquid that closely resembles water but
in fact is twice as dense as it is. 'Transparency' is a noun and transparent is
its adjective form. The adjective must be used in order to describe anything.
Directions for Questions 8-12:
Read the passage and answer the questions that follow on the basis of the
information provided in the passage.
Work expands so as to fill the time available for its completion. The
general recognition of this fact is shown in the proverbial phrase,' It is the
busiest man who has time to spare'. Thus, an elderly lady at leisure can
spend the entire day writing a postcard to her niece. An hour will be spent
in writing a postcard, another hunting for spectacles, half an hour to
search for the address , an hour and a quarter in composition and twenty
minutes in deciding whether or not to take an umbrella when going to the
pillar box in the street. The total effort that could occupy a busy man for
three minutes, all told may in this fashion leave another person
completely exhausted after a day of doubt, anxiety and toil.
8.What happens when the time to be spent on some work increases?
AMPLE CODER
AMPLE CODER
A) the work is done smoothly.
B) the work is done leisurely.
C) work consumes all the time.
D) The work needs additional time.
Ans: C
9. Explain the sentence : work expands so as to fill the time available for
its completion’.
A) The more work there is to be done , the more time needed.
B) whatever time is available for a given amount of work, all of it will be
used.
C) If you have more time you can do some work.
D) If you have some important work to do , you should always have some
additional time.
Ans: B
10.Who is the person likely to take more time to do work.:
A) a busy man.
B) a man of leisure.
C) an elderly person.
D)an exhausted person
Ans: B
AMPLE CODER
AMPLE CODER
11.What is the total time spent by the elderly lady in writing a postcard?
A) Three minutes.
B) four hours and five minutes.
C) half day
D)the entire day.
Ans:D
12. What does the expression ‘pillar box’ stand for?
A) a box attached to the pillar.
B) a box in the pillar
C) box office.
D) a pillar type postbox.
Ans: D
Directions for Questions 13-17:
Choose the most logical order of sentences among the given choices to
construct a coherent paragraph.
AMPLE CODER
AMPLE CODER
13. A. The provisions of the 73rd amendment were not made applicable to
the areas inhabited by the Adivasi populations in many States of India.
B. Therefore, the new act protects the rights of these communities to
manage their resources in ways acceptable to them.
C. In 1996, a separate act was passed extending the provisions of the
Panchayat system to these areas.
D. Many Adivasi communities have their traditional customs of managing
common resources such as forests and small water reservoirs, etc.
a. CDBA
b. BDAC
c. ACDB
d. ADCB
Answer: C
Explanation:
There is an AC link in the paragraph. Sentence A speaks about the act and
its limitation. In Sentence B, that limitation is rectified. Among the four
sentence, only Sentence A can be the topic sentence. So with this, option
"ACDB" is the correct sequence of the paragraph.
14. A. Right to Equality provides for equal access to public places like
shops, hotels, places of entertainment, wells, bathing Ghats and places of
worship.
B. This right is very important because our society did not practice equal
access in the past.
C. There cannot be any discrimination in this access on the basis of caste,
creed, colour, sex, religion, or place of birth.
D. It also prohibits any discrimination in public employment on any of
the above mentioned basis.
AMPLE CODER
AMPLE CODER
a. ACDB
b. BCDA
c. DBCA
d. ACBD
Answer: A
Explanation:
The sentence A is the opening sentence. Sentence C follows sentence A by
elaborating on the freedom to access certain places. D follows C by
referring to the differences mentioned in C. B concludes the paragraph.
Thus the answer is ACDB.
15. A. Besides this, no organ of the government can act in a manner that
violates them.
B. While ordinary legal rights are protected and enforced by ordinary law,
Fundamental Rights are protected and guaranteed by the constitution of
the country.
C. Ordinary rights may be changed by the legislature by ordinary process
of law making, but a fundamental right may only be changed by
amending the Constitution itself.
D. Fundamental Rights are different from other rights available to us.
a. DCBA b. DBCA c. DCAB d. ACDB
Answer: B
Explanation:
The correct answer is DBCA. The opening sentence can only be D. Sentence
B introduces us to the differences between ordinary and fundamental
rights. The sentence C demarcates the two kinds of rights further and
sentence A concludes it. Thus the sequence is DBCA
AMPLE CODER
AMPLE CODER
16. A. There are more than 20 major languages and several hundred
minor ones and it is the home of several major religions.
B. There are several million indigenous peoples living in different parts of
the country.
C. In spite of all these diversities we share a common land mass.
D. India is a land of continental proportions and immense diversities.
a. DABC b. DCBA c. CABD d. BACD
Answer: A
Explanation:
It is very clear that only D can be the beginning sentence and C the ending
sentence. The correct sequence is "DABC".
17. A. Often we are prone to assume that all families are like the ones we
live in.
B. No other social institution appears more universal and unchanging.
C. Sociology and social anthropology have over many decades conducted
field research across cultures to show how the institutions of family,
marriage and kinship are important in all societies and yet their character
is different in different societies.
D. Perhaps no other social entity appears more ‘natural’ than the family.
a. DABC b. ABCD c. BACD d. DACB
Answer: A
AMPLE CODER
AMPLE CODER
Explanation:
The sequence DABC is the most meaningful sequence from among the
options.
Directions for Questions 18-21:
For each sentence, choose the most appropriate option that best
completes the given sentence.
18. The refugee's poor grasp of English is hardly an ____ problem; she
can attend classes and improve within a matter of months.
a. implausible
b. insuperable
c. inconsequential
d. evocative
Answer: B
Explanation:
The word has to mean 'impossible to be overcome.' The word for it is
'insuperable'
Implausible: not plausible, unlikely.
Inconsequential: having no consequence. Not consequential.
Evocative: that evokes a memory, mood, feeling or image.
19. The cricket match seemed ____ to our guests; they were used to
watching sports in which the action is over in a couple of hours at the
most.
a. unintelligible
b. inconsequential
c. interminable
d. implausible
AMPLE CODER
AMPLE CODER
Answer: C
Explanation:
The word has to mean too long or ceaseless.
Interminable means existing without interruption or end. Thus the answer
is interminable.
Unintelligible: unable to be understood.
Inconsequential: having no consequence. not consequential.
Implausible: not plausible, unlikely.
20. His musical tastes are certainly ____; he has recordings ranging from
classical piano performances to rock concerts, jazz and even Chinese
opera.
a. antediluvian b. eclectic
c. harmonious d. Sonorous
Answer: B
Explanation:
The correct option is eclectic.
Eclectic means a mixture of what appears to be best of various doctrines,
methods or styles. Thus the word fits into its premises perfectly.
Antediluvian: ancient or antiquated; old; prehistoric.
Harmonious: showing accord in feeling or action.
Sonorous: capable of giving out a deep resonant sound.
AMPLE CODER
AMPLE CODER
21. Hawkins is ____ in his field; no other contemporary scientist
commands the same respect.
a. preeminent b. ignominious
c. obsolete d. Anachronistic
Answer: A
Explanation:
The part after the semicolon tells us that Hawkins is highly respected.
Hence, the only suitable word is preeminent. (All the others have negative
connotations.)
(Disparaged = criticized; ignominious = shameful; obsolete = outdated;
anachronistic = in the wrong time period; preeminent = foremost, famous)
Directions for Questions 22-25:
Read the passage and answer the questions that follow on the basis of the
information provided in the passage.
Give people power and discretion, and whether they are grand viziers or
border guards, some will use their position to enrich themselves. The
problem can be big enough to hold back a country's development. For
most people in the world though, the worry is not that corruption may
slow down their country's GDP growth. It is that their daily lives are
pervaded by endless hassles, big and small. And for all the evidence that
some cultures suffer endemic corruption while others are relatively clean,
attitudes towards corruption, and even the language describing bribery, is
remarkably similar around the world.
AMPLE CODER
AMPLE CODER
In a testament to most people's basic decency, bribe-takers and bribepayers have developed an elaborate theatre of dissimulation. This is not
just to avoid detection.
Even in countries where corruption is so common as to be unremarkable
and unprosecutable—and even when the transaction happens far from
snooping eyes—a bribe is almost always dressed up as some other kind of
exchange. Though most of the world is plagued by corruption, even serial
offenders try to conceal it.
One manifestation of this is linguistic. Surprisingly few people say: “You
are going to have to pay me if you want to get that done.” Instead, they use
a wide variety of euphemisms. One type is quasi-official terminology.
Another term widely used at border crossings is “expediting fee”. For a
euphemism it is surprisingly accurate: paying it will keep your bags, and
perhaps your contraband, from being dumped onto a floor and sifted
through at a leisurely pace. (A related term, used in India, is “speed
money”: paying it can get essential business permits issued considerably
faster.)
A second type of euphemism dresses up a dodgy payment as a friendly
favour done by the bribe-payer. There is plenty of creative scope.
Nigerian policemen are known to ask for “a little something for the
weekend”. A North African term is “un petit cadeau”, a little gift. Mexican
traffic police will suggest that you buy them a refresco, a soft drink, as will
Angolan and Mozambican petty officials, who call it a gazoso in
Portuguese.
Double meaning can help soothe the awkwardness of bribe-paying.
Baksheesh, originally a Persian word now found in many countries of the
Middle East, can mean “tip”, “alms” and “bribe”. Swahili-speakers can take
advantage of another ambiguous term. In Kenya a machine-gun-wielding
guard suggested to a terrified Canadian aid worker: “Perhaps you would
AMPLE CODER
AMPLE CODER
like to discuss this over tea?” The young Canadian was relieved: the
difficulty could be resolved with some chai, which means both “tea” and
“bribe”.
Along with the obscurantist language, bribe-taking culture around the
world often involves the avoidance of physically handing the money
from one person to another. One obvious reason is to avoid detection,
which is why bribes are known as “envelopes” in countries from China to
Greece. But avoidance of a direct hand-over is common even where there
is no chance of detection. There will always be some officials who will
take money right from a bribe-payer's hands, but most seem to prefer to
find some way to hide the money from view.
Rich Westerners may not think of their societies as plagued by
corruption. But the definition of bribery clearly differs from person to
person.
A New Yorker might pity the third-world businessman who must pay
bribes just to keep his shop open. But the same New Yorker would not
think twice about slipping the maître d' $50 to sneak into a nice restaurant
without a reservation. Poor people the world over are most infuriated by
the casual corruption of the elites rather than by the underpaid, “tip”seeking soldier or functionary. Thus there is no single cultural factor that
inclines a society towards corruption, but economic factors play a big part.
Most clearly, poverty and bribery go together.
22.
What is the author likely to agree to, in the following?
(a) Some cultures suffer corruptions while others do not.
(b) Social factors incline a society towards corruption.
(c) Bribery is not a cultural phenomena.
AMPLE CODER
AMPLE CODER
(d) None of these
Answer: C
23.
What is bribe generally called in China?
(a) Hand-over
(b) Retresco
(c) Envelopes
(d) Baksheesh
Answer: C
24. Which of the following the author does not identify as linguistic
manifestation of corruption?
(a) Asking for a favour
(b) Use of double meanings
(c) Use of quasi-official terminology
(d) Relate to food item
Answer: D
25. In summary what does the passage primarily suggest and provide
evidence for?
(a) Corruption is always concealed in some way, both linguistically and in
the process
(b) Corruption exists only is developing economies
(c) Corruption is an unethical practice
(d) Corruption slows down GDP growth
Answer: A
AMPLE CODER
AMPLE CODER
Directions for Questions 26-29:
Read the passage and answer the questions that follow on the basis of the
information provided in the passage.
Sixty years ago, on the evening of August 14, 1947, a few hours before
Britain’s Indian Empire was formally divided into the nation-states of
India and Pakistan, Lord Louis Mountbatten and his wife, Edwina, sat
down in the viceregal mansion in New Delhi to watch the latest Bob Hope
movie, “My Favorite Brunette.” Large parts of the subcontinent were
descending into chaos, as the implications of partitioning the Indian
Empire along religious lines became clear to the millions of Hindus,
Muslims, and Sikhs caught on the wrong side of the border. In the next
few months, some twelve million people would be uprooted and as many
as a million murdered. But on that night in mid-August the bloodbath—
and the fuller consequences of hasty imperial retreat—still lay in the
future, and the Mountbattens probably felt they had earned their
evening’s entertainment.
While the Mountbattens were sitting down to their Bob Hope movie,
India’s constituent assembly was convening in New Delhi. The moment
demanded grandiloquence, and Jawaharlal Nehru, Gandhi’s closest
disciple and soon to be India’s first Prime Minister, provided it. “Long
years ago, we made a tryst with destiny,” he said. “At the stroke of the
midnight hour, while the world sleeps, India will awaken to life and
freedom. A moment comes, which comes but rarely in history, when we
step out from the old to the new, when an age ends, and when the soul of a
nation, long suppressed, finds utterance.”
AMPLE CODER
AMPLE CODER
Posterity has enshrined this speech, as Nehru clearly intended. But today
his quaint phrase “tryst with destiny” resonates ominously, so enduring
have been the political and psychological scars of partition. The souls of
the two new nation-states immediately found utterance in brutal enmity.
In Punjab, armed vigilante groups, organized along religious lines and
incited by local politicians, murdered countless people, abducting and
raping thousands of women. Soon, India and Pakistan were fighting a
war—the first of three—over the disputed territory of Kashmir. Gandhi,
reduced to despair by the seemingly endless cycle of retaliatory mass
murders and displacement, was shot dead in January, 1948, by a Hindu
extremist who believed that the father of the Indian nation was too soft on
Muslims. Jinnah, racked with tuberculosis and overwork, died a few
months later, his dream of a secular Pakistan apparently buried with him.
26. In the view of the author what does the phrase "tryst with destiny"
symbolise today?
(a) A celebration of Indian independence
(b) An inspirational quote
(c) A reminder of Gandhi's assassination
(d) A symbol of ills of partition
Answer: D
27. What does the author imply about the future of Pakistan?
(a) It becomes a secular country
(b) It becomes unsecular
(c) It is unprosperous
AMPLE CODER
AMPLE CODER
(d) It becomes a rogue state
Answer: B
28. The author persists on taking about the "Bob Hope movie" in article.
Why?
(a) Because the movie was Classic on 1947
(b) He thinks it caused the partition of sub-continent
(c) He uses it to show the apathy of the Britishers to sub-continent
(d) It was Mountbatten's favourite movie
Answer: C
29. Why was Gandhi assassinated?
(a) Because he was favouring Muslims
(b) His assassin thought he was partial to Muslims
(c) He got killed in the violence after partition
(d) None of these
Answer: B
Directions for Questions 30-34:
Read the passage and answer the questions that follow on the basis of the
information provided in the passage.
AMPLE CODER
AMPLE CODER
According to Albert Einstein the non-mathematician, is seized by a
mysterious shuddering when he hears of 'four-dimensional' things, he is
seized by a feeling, which is very similar to the thoughts awakened by the
occult. And at the same time the statement that the world in which we live
is a four-dimensional space - time continuum is quite a common place
statement.
This might lead to an argument regarding the use of the term
''commonplace'' by Einstein. Yet the difficulty lies more in the wording
than the ideas. Einstein's concept of the universe as a four-dimensional
space-time continuum becomes plain and clear, when what he means by
''continuum'' becomes clear. A continuum is something that is continuous,
A ruler, for example, is a one-dimensional space continuum. Most rulers
are divided into inches and frWASLions, scaled down to one-sixteenth of
an inch.
Will it be possible to conceive a ruler, which is calibrated to a millionth or
billionth of an inch. In theory there is no reason why the steps from point
to point should not be even smaller. What distinguishes a continuum is
the fWASL that the space between any two points can be sub-divided into
an infinite number of smaller divisions.
A railroad track is a one-dimensional space continuum and on it the
engineer of a train can describe his position at any time by citing a single
co-ordinate point - i.e., a station or a milestone. A sea captain, however,
has to worry about two dimensions. The surface of the sea is a twodimensional continuum and the co-ordinate points by which sailor fixes
his positions in his two dimensional continuum are latitude and
longitude. An airplane pilot guides his plane through a three dimensional continuum, hence he has to consider not only latitude and
longitude, but also his height above the ground. The continuum of an
AMPLE CODER
AMPLE CODER
airplane pilot constitutes space as we perceive it. In other words, the space
of our world is a three-dimensional continuum.
Just indicating its position in space is not enough while describing any
physical event, which involves motion. How position changes in time also
needs to be mentioned. Thus to give an accurate picture of the operation
of a New York - Chicago express, one must mention not only that it goes
from New - York to Albany to Syracuse to Cleveland to Toledo to Chicago,
but also the times at which it touches each of those points. This can be
done either by means of a timetable or a visual chart. If the miles between
New York and Chicago are plotted horizontally on a piece of ruled paper
and the hours and minutes are plotted vertically, then a diagonal line
properly drawn across the page illustrates the progress of the train in two dimensional space - time continuum. This type of graphic representation
is familiar to most newspaper readers; a stock market chart, for example,
pictures financial events in a two - dimensional dollar - time continuum.
Similarly for the best picturisation of the flight of an airplane from New
York to Los Angeles a four - dimensional space - time continuum is
essential. The latitude, longitude and altitude will only make sense to the
traffic manager of the airline if the time co - ordinate is also mentioned.
Therefore time is the fourth dimension. If a flight has to be looked at,
perceived as a whole, it wouldn't work if it is broken down into a series of
disconnected take - offs, climbs, glides, and landing, it needs to be looked
at and perceived as a continuous four - dimensional space - time
continuum curve.
30. The significant feature of a continuum, according to the passage,
revolves around
A. The divisibility of the interval between any two points.
AMPLE CODER
AMPLE CODER
B. An ordinary ruler's caliber for marking
C. Its unending curve
D. Its lucid from providing comprehensibility to the non - scientists as well
Answer: A
31. The purpose of this passage is to highlight the point that
A. Plots and sea captains have something in common
B. Stock market charts may be helpful to physicists
C. The fourth dimension is time.
D. Non - mathematician's are often afraid of the commonplace
Answer: C
32. According to the passage, an airlines traffic manager depends upon all
of the following EXCEPT
A. latitude
B. altitude
C. longitude
D. the continuous curve in co four
Answer: D
33. The underlying tone of this selection is
AMPLE CODER
AMPLE CODER
A. persuasive
B. instructive
C. deferential
D. candid
Answer: B
34. According to the author if on wishes portray a physical event in which
motion plays a role - one has to
A. Make use of a time-table
B. Indicate how position changes in time
C. Be conversant with the scientist's theories
D. Be aware of altitude, latitude and longitude
Answer: B
In each of the questions given below from the given options select the
word which is farthest in meaning to the word given in the question.
35. Yoke
a. mar
b. Fell
Answer: D
Explanation:
AMPLE CODER
c. Pervert
d. split
AMPLE CODER
The word yoke means to unite or join together. Two oxen are yoked if they
are tied together to pull a wagon. The opposite of yoke is separate. Because
split means to divide or separate, 'split' is the answer.
'mar' means to damage. This is not the opposite of yoke.
'fell' means to chop down. This is not the opposite of yoke.
'pervert ' means to misuse. This is not the opposite of yoke.
Select the lettered pair that best expresses a relationship similar to that
expressed by the original pair.
36. TRIPTYCH: PANEL::
a. triangle : hypotenuse
b. circle : arc
c. cathedral : nave
d. blossom : sepal
Answer: A
Explanation:
A triptych is a hinged set of pictures or carvings with three panels. The
Hypotenuse is one of three sides of a triangle.
In each of the questions given below from the given options select the
word which is closest in meaning to the word given in the question.
36. Egregious
a. Outrageous b. Minor
c. Secondary d. Wonderful
AMPLE CODER
AMPLE CODER
Answer: A
Explanation:
Egregious means outrageously bad or shocking. Thus outrageous is the
synonymous word.
In each of the questions given below from the given options select the
word which is farthest in meaning to the word given in the question.
37. Infirm
a. hospitable b. Equestrian
c. tremulous d. Robust
Answer: D
Explanation:
The word infirm means feeble or weak in body or health. A very old dog
would likely be infirm. The opposite of infirm is
strong in health. Because robust means strong and healthy, 'robust' is the
answer.
'hospitable' means receptive or open. This is not the opposite of infirm.
'equestrian' means mounted on horseback. This is not the opposite of
infirm.
'tremulous' means quivering or fearful. This is not the opposite of infirm.
Select the lettered pair that best expresses a relationship similar to that
expressed by the original pair.
AMPLE CODER
AMPLE CODER
38. ETHEREAL: EMPYREAL::
a. celestial : deferential b. earnest : saccharine
c. fastidious : foolhardy d. obsequious : sycophantic
Answer: D
Explanation:
To be ethereal is to be empyreal; both terms refer to the heavenly or
unearthly. Similarly, to be obsequious is to be sycophantic; both terms refer
to behaviour that is excessively fawning, servile, or submissive.
In each of the questions given below from the given options select the
word which is closest in meaning to the word given in the question.
39. Prosaic
a. Pedestrian b. Creative
c. Exceptional d. Different
Answer: A
Explanation:
Prosaic means pertaining to or having the characteristics of prose. It also
means simple and commonplace to the point of being boring.
Pedestrian has a meaning of ordinary, dull, everyday; unexceptional. Thus
the words 'prosaic' and 'pedestrian' are synonymous.
AMPLE CODER
AMPLE CODER
Directions for questions: Choose the most logical fit for each blank.
40. People often revel under the impression that only the wretched and
less educated people use slang, but this idea is totally _________.
a. accurate b. popular
c. erroneous d. Ineffective
Answer: C
Explanation:
Anticipated answer:- The answer one could come up through proactive
solving will be ‘incorrect’. The answer closest to ‘incorrect’ among the
answer options is option "erroneous" (Erroneous – full of errors)
Contrast sign:- But. Due to the presence of the conjunction ‘but’, the answer
has to be negative in this context. Thus ‘accurate’ and ‘popular’ cannot be
answers.
‘Ineffective’ does not exactly capture the opposing-idea-relationship
expected in this question. Thus ‘erroneous’ is the right answer.
In each of the questions given below from the given options select the
word which is closest in meaning to the word given in the question.
41. Bairn
a. Adult b. Child c. Senior d. Sophomore
Answer: B
AMPLE CODER
AMPLE CODER
Explanation:
Bairn - A child: son or daughter
In each of the questions given below from the given options select the
word which is farthest in meaning to the word given in the question.
42. Culpable
a. ineffable b. Incriminated c. innocent d. Indignant
Answer: C
Explanation:
The word culpable means deserving of blame. A thief is culpable for the
crime of robbery or theft. The opposite of culpable is blameless or not
deserving of blame. Because innocent means guiltless or not deserving of
blame, 'innocent' is the answer.
'Ineffable' means unutterable or inexpressible. This is not the opposite of
culpable.
'Incriminated' means accused. This is not the opposite of culpable.
'Indignant' means angry at a perceived injustice.
Select the lettered pair that best expresses a relationship similar to that
expressed by the original pair.
43. DOMINO: MASQUERADE::
a. tango : dance b. violin : concert
c. tuxedo : prom d. taxi : limousine
AMPLE CODER
AMPLE CODER
Answer: C
Explanation:
One meaning of domino is a mask or a masked costume worn to a
masquerade. The tuxedo is the proper prom costume.
Directions for questions: Choose the most logical fit for each blank.
44. Kalyan found it hard to ______ himself from the problem he had
created by producing fake documents.
a. Extricate b. Abstain c. Alienate d. Estrange
Answer: A
Explanation:
Option "Extricate":
Rebuke – Criticise
One would never ‘rebuke oneself from something’; one would always
‘rebuke oneself for something’
Option "Abstain": One would never ‘engulf oneself from something’; ‘one
would always engulf oneself in something’.
Options "Alienate" vs. "Estrange":
Oust – Expel
Extricate – Remove
When using ‘oust’, one would never use the expression ‘ousting himself’.
E.g. sentence: Saddam Hussein was ousted from the post of Iraqi President.
AMPLE CODER
AMPLE CODER
Thus Option "Extricate" is the perfect fit.
Select the correct option that fills the blank(s) to make the sentence
meaningfully complete.
45. An honest man never ________ to lies in order to fulfill his goals.
(a) helps
(b) tells
(c) resorts
(d) forms
Answer: C
46. All members will have a fixed five years ________.
(a) tenet
(b) tenor
(c) tenure
(d) tenement
Answer: C
47. My computer needs upgradation since it ______ a very old version.
(a) is
(c) were
(b) was
(d) must
Answer: A
48. Nothing ________ convinced her to cancel her trip to Goa.
(a) was going to
(c) could
Answer: B
AMPLE CODER
(b) could have
(d) will have
AMPLE CODER
49. She ________ at a shop.
(a) works
(b) work
(c) working
(d) be working
Answer: A
In the question a part of the sentence is italicized. Alternatives to the
italicized part are given which may improve the construction of the
sentence. Select the correct alternative.
50. It is also proof that no government now can justify its existence
without giving topmost priority to the common people and there
problem.
(a) the common people and their problems
(b) the common people and other problems
(c) the common people and his problems
(d) the common people and the other problems
Answer: A
51. But which director from Bollywood would remake this film, will be
made secret for the time being.
(a) is being kept a secret
(b) is being secret
AMPLE CODER
AMPLE CODER
(c) can be secret
(d) will be kept the secret
Answer: A
52. Contrary to my belief, he turned out to be peevish.
(a) proud
(b) irritable
(c) selfish
(d) greedy
Answer: B
53. As soon as I turn the ignition key, the engine caught fire.
(a) I turn on ignition key
(b) I turned the ignition key
(c) I was turning the ignition key
(d) No change
Answer: B
Select the word which best expresses the MEANING of the word in
CAPITALS.
54.
ADORN
(a) Decorate
(b) Enjoy
(c) Admire (d) Hate
AMPLE CODER
AMPLE CODER
Answer: A
55.
CEASE
(a) Hold
(b) Capture
(c) Stop
(d) Stiege
Answer: C
56.
HATE
(a) Abuse
(b) Abhor
(c) Nasty
(d) Tardy
Answer: B
57.
CORRESPONDENCE
(a) Agreements
(b) Contracts
(c) Documents
(d) Letters
Answer: D
58.
FAMISHED
(a) Finished
(b) Full
(c) Hungry
(d) Thirsty
Answer: C
AMPLE CODER
AMPLE CODER
59.
FAUX PAS
(a) Blunder
(b) Problem
(c) Worry
(d) Examine
Answer: A
60.
EMANATE
(a) End
(b) Culminate
(c) Originate
(d) Retreat
Answer: C
61.
PRODUCT
(a) Result
(c) Resource
(b) Cause
(d) Split
Answer: A
62.
PROFUSE
(a) Defuse (b) Ample (c) Flimsy
(d) Accept
Answer: B
AMPLE CODER
AMPLE CODER
Select the option that is most nearly ANTONYM in meaning to the word
in CAPITALS.
63.
SORROW
(a) Sympathy
(b) Joy
(c) Woe
(d) Empathy
Answer: B
64.
ENDORSE
(a) Approve (b) Revoke (c) Oppose
(d) Reveal
Answer: C
65.
PRANKISH
(a) Whimsical
(b) Machiavellian
(c) Impish (d) Serious
Answer: D
66.
SETTLED
(a) Stationary
(c) Inactive
Answer: D
AMPLE CODER
(b) Fixed
(d) Mobile
AMPLE CODER
67.
FIGURATIVE
(a) Symbolic
(c) Literal
(b) Illustrative
(d) Pictorial
Answer: C
68.
STATIONARY
(a) Active
(b) Mobile
(c) Rapid
(d) Busy
Answer: B
69.
STERN
(a) Lenient
(b) Crabby
(c) Unreasonable (d) Tenant
Answer: A
70.
IMMINENT
(a) Impending
(c) Pending
Answer: D
AMPLE CODER
(b) Eminent
(d) Distant
AMPLE CODER
71.
WORSEN
(a) Complicate
(b) Relieve
(c) aggravate
(d) Intensify
Answer: B
72.
REQUISITE
(a) Vital
(b) Avoidable
(c) Necessary
(d) Basic
Answer: B
73.
AFFABLE
(a) Rude
(b) Ruddy (c) Needy
(d) Useless (e) Conscious
Answer: A
74.
FUTILE
(a) Useful
(b) Handy (c) Functional
(d) Positive
Answer: A
75.
ELUSION
(a) Confront
AMPLE CODER
(b) Skirting (c) Evasion (d) Illusion
AMPLE CODER
Answer: A
76.
BENEDICTION
(a) Antidote (b) Intonation
(c) Endowment
(d) Anathema
Answer: D
77. In the question, there is a sentence of which some parts have been
jumbled up. Re-arrange these parts which are labelled P, Q, R and S to
produce the correct sentence. Choose the proper sequence.
People
P: at his dispensary
Q: went to him
R: of all professions
S: for medicine and treatment
(a) QPRS
(b) RPQS
(c) RQSP
Answer: C
78.
Point out the odd word.
(a) Excited
(b) Ecstatic
(c) Elated
(d) Excluded
Answer: D
AMPLE CODER
(d) QRPS
AMPLE CODER
79. Which of the following explains the meaning of the proverb “Every
cloud has a silver lining”?
(a) When the cloud has a silver lining after the rain
(b) Every sad or difficult situation has a positive side
(c) Good times follow difficult ones
(d) A need to face the difficult times with courage
Answer: B
Directions for Questions 11-12:
Read each sentence to find if there is any grammatical error in it. If there
is any error, it will be only one part of the sentence. The number or
alphabet of that part is your answer. (Disregard punctuation errors if any)
80. I never have / visited / or intend to visit / foreign countries /
ABCD
Ans:C
81. The clothes / were neatly / hanged /on the cloth line.
ABCD
Ans:C
Directions for Questions 13-15:
AMPLE CODER
AMPLE CODER
One of the four sentences given in each question is grammatically wrong .
Find the incorrect sentence.
82
A) Our followers are but a handful.
B) Neither he nor I was there.
C) Many a glorious deeds were done.
D) Everyone of the boys loves to ride.
Ans: C
83
A) She had finished her work when I met her.
B) Do you believe in God?
C) He cut his hand with a knife.
D) He challenged me for a duel.
Ans: D
84
A) Sumit is my elder brother.
B) He is two years younger to me.
C) He is the eldest man of this village.
D) Ravi is five years older than me.
AMPLE CODER
AMPLE CODER
Ans: C
Directions for Questions 16-20:
In each of the following questions, some sentence are given which are on
the same theme. decide which sentence is the most preferable with
respect to grammar; meaning and usage, suitable for formal writing in
English. Find the correct sentence.
85
A) From which train did you come?
B) A series of incidents have taken place.
C) It is a five--men committee.
D) This pronunciation is peculiar to Bengalis.
Ans:D
86
A) They have placed order for books.
B) He has applied for lectureship.
C) The river has overflown its bank.
D) Give me rupees two and a half.
Ans:D
87
AMPLE CODER
AMPLE CODER
A) The proceeds of the charity show are for riot victims
B) He asked Ajay and I to go.
C) The weather of this place does not suit me.
D) Either Rajesh or his friends has done it.
Ans: A
88
A) It is far too hard an essay for me to attempt.
B) It is too far hard an essay to attempt for me.
C) Too far it is an essay hard for me to attempt.
D) It is too hard an essay for me to far attempt
Ans:D
89.
A) Hoping to be hearing from you, I remain yours sincerely.
B) Hoping to hear from you, I remain yours sincerely.
C) Hoping to have heard from you, I sincerely remain yours.
D) Sincerely I remain yours hoping to be hearing from you.
Ans: B
Solved 'ordering of words' verbal ability questions:
AMPLE CODER
AMPLE CODER
90. A month after colleges opened......
A. 35% seats reserved under OBC
B. in private colleges
C. for the next academic year
D. remain vacant
A.
CBDA
B.
CADB
C.
ADBC
D.
BADC
Answer: B
Explanation: A month after colleges opened for the next academic year 35%
seats reserved under OBC remain vacant in private colleges.
91. Panic gripped the people
A. of the village
B. beside the city
C. on Friday
D. after the terrorist attack
A.
CABD
B.
BACD
C.
ABCD
D.
ACDB
Answer: C
AMPLE CODER
AMPLE CODER
Explanation: Panic gripped the people of the village beside the city on
Friday after the terrorist attack.
92. The water tanks may remain empty
A. on Tuesday evening
B. in the city
C. will repair the damaged water pipes
D. as the water supply department
A.
BADC
B.
BACD
C.
DBAC
D.
ADCB
Answer: A
Explanation: The water tanks may remain empty in the city on Tuesday
morning as the water supply department will repair the damaged water
pipes.
93. An advertisement in the newspaper said that
A. fully furnished apartments
B. air-conditioned
C. are available for
D. the gentlemen of taste
A.
ABCD
B.
DCBA
AMPLE CODER
AMPLE CODER
C.
BCDA
D.
BACD
Answer: D
Explanation: An advertisement in the newspaper said that air-conditioned,
fully furnished apartments are available for the gentlemen of taste.
Change of Speech
In "Change of Speech" type of verbal ability questions. The question is
given in Direct or Indirect speech and is followed by four options. You are
required to choose one option which best expresses the given question in
Indirect or Direct speech.
94. They said, "We have lived in this city for many years."
A.
They said they have lived in this city for many years.
B.
They said that they had lived in this city for many years.
C.
They said they lived in this city for many years.
D.
They said they have been living in this city for many years.
Answer: B
95. The teacher told Maria that she was not working hard.
A.
The teacher says to Maria, "You are not working hard."
B.
The teacher said to Maria, "You are not working hard."
AMPLE CODER
AMPLE CODER
C.
The teacher said Maria, "You are not working hard."
D.
The teacher said to Maria," She is not working hard."
Answer: B
95. Her mother ordered her to go to the kitchen and cook food.
A.
Her mother said,"Go to the kitchen and cook food."
B.
Her mother said her, "Go to the kitchen and cook food."
C.
Her mother tells,"Go to the kitchen and cook food."
D.
Her mother asked," Go to the kitchen and cook food."
Answer: A
96. He said that his sister was getting married.
A.
He said, "His sister is getting married."
B.
He said, "My sister was getting married."
C.
He told, "His sister was getting married."
D.
He said, "My sister is getting married."
Answer: D
Articles
AMPLE CODER
AMPLE CODER
In Articles based verbal ability questions, there is a sentence with a
missing article. You are required to select the correct article out of the
given options.
97. ....... Indus River is the longest river in India.
A.
The
B.
An
C.
A
D.
None of the above
Answer: A
Explanation: Article 'the' is used before the names of rivers, mountains, etc.
98. Delhi is ..... large city.
A.
an
B.
a
C.
the
D.
no article
Answer: B
Explanation: Indefinite article 'a' is used with noun complement and with
singular, countable nouns starting with a consonant.
99. Spain is .... European country.
AMPLE CODER
AMPLE CODER
A.
the
B.
an
C.
a
D.
no article
Answer: C
Explanation: Indefinite article 'a' is used with noun complement and with
singular, countable nouns starting with a consonant.
100. .............Himalayas provides protection to India against enemies.
A.
no articles
B.
A
C.
An
D.
The
Answer: D
Explanation: The article 'the' is used with the names of mountain groups.
AMPLE CODER
AMPLE CODER
Automata
AMPLE CODER
AMPLE CODER
1.
2.
AMPLE CODER
AMPLE CODER
3.
4.
AMPLE CODER
AMPLE CODER
5.
6.
AMPLE CODER
AMPLE CODER
// You can print the values to stdout for debugging
int getSum(int num)
{
int sum=0;
while(num!=0)
{
sum=sum+(num%10);
num=num/10;
}
return sum;
}
int getDigitSum(int *arr, int len)
{
int i,result;
for(int i=0, min = arr[0];i<len;i++)
{
if(arr[i]<min)
min=arr(i);
}
result=getSum(min);
if(result==0)
return 0;
if(result%2==0)
return1;
else
return 0;
}
AMPLE CODER
AMPLE CODER
7.
AMPLE CODER
AMPLE CODER
8. printcharecterpattern
Input:
5
Expected output:
a
ab
abc
abcd
abcde
testcase 2:
input:
1
Output:
A
Given Code:
#include<stdio.h>
void printcharecterpattern( int num)
{
int i,j,value=1;
char ch = 'a';
char print = ch;
for(int i=1;i<=num;i++,printf("\n"))
{
ch=print;
for(j=1;j<=i;j++)
printf("%c",ch++);
}
}
int main()
{
int num;
scanf("%d",&num);
printcharecterpattern(num);
}
Corrected Code:
#include<stdio.h>
void printcharecterpattern( int num)
{
int i,j,value=1;
char ch = 'a';
char print = ch;
for(i=1;i<=num;i++,printf("\n"))
{
ch=print;
for(j=1;j<=i;j++)
printf("%c",ch++);
}
}
AMPLE CODER
AMPLE CODER
9. You are required to fix all logical errors in the given code. You can click on Compile , Run
anytime to check the compilation/execution status of the program. You can use
System.out.println to debug your code. The submitted code should be logically/syntactically
correct and pass all testcases. Do not write the main() function as it is not required. Code
Approach: For this question, you will need to correct the given implementation. We do not
expect you to modify the approach or incorporate any additional library methods. The method
printColor(intnum) of the class Color is supposed to print names of color according to given
input numbers num When the values of num equal 1,2,3,4 the function prints
“Red”,”Black”,”White”,”Green” respectively for any other values of num it should print “No
color”. The method complies fine but fails to return the desired results for some cases. Your
task is to fix code so that it passes all the testcases
Given Code:
int printcolor(int num)
{
switch (num)
{
case 1:
printf("red");
case 2:
printf("black");
case 3:
printf("white");
case 4:
printf("green");
default:
printf("no color");
break;
}
}
Corrected Code:
int printcolor(int num)
{
switch (num)
{
case 1:
printf("red");
break;
case 2:
printf("black");
break;
case 3:
printf("white");
break;
case 4:
printf("green");
break;
default:
printf("no color");
break;
}
}
AMPLE CODER
AMPLE CODER
10.
The method printpattern(int) of class drawpattern is expected to expected to print the first n (n
> 0) Lines of the pattern
TESTCASES
TestCase 1
Input:
4
Expected Return value:
11
1111
111111
11111111
TestCase 2:
Input:
1
Expected Return Value:
11
Given Code:
int printpattern(int n)
{
int i,j,print =1;
for(i=1;i<=n;i++)
for(j=1;j<=2 * i;j++)
{
printf(“%d”,print );
}
printf(“\n”);
}
Corrected Code:
int printpattern(int n)
{
int i,j,print =1;
for(i=1;i<=n;i++)
{
for(j=1;j<=2 * i;j++)
{
printf(“%d”,print );
}
printf(“\n”);
}
}
11. Multiply the middle number with maximum of three numbers
TESTCASE 1
Input
5,7,4
Expected return value:
35
AMPLE CODER
AMPLE CODER
TESTCASE 2
Input
11,12,13
Expected return value:
156
Given Code:
#include<stdio.h>
int multiplynumber(int a,int b,int c)
{
int result,min,max,mid;
max=(a>b)?((a>c)?a:c((b>c)?b:c);
min=(a<b)?((a<c)?a:c((b<c)?b:c);
mid=(a+b+c)-(min+max);
result=(max*mid);
return result;
}
Corrected Code:
#include<stdio.h>
int multiplynumber(int a,int b,int c)
{
int result,min,max,mid;
max= (a>b)?((a>c)?a:c):((b>c)?b:c);
min=(a<b)?((a<c)?a:c):((b<c)?b:c);
//max= (a>b) ? ((a>c)?a:c) : ((b>c)?b:c);
//min= (a<b) ? ((a<c)?a:c) : ((b<c)?b:c);
mid=(a+b+c)-(min+max);
result=(max* mid);
return result;
}
Question :12
You are required to fix all logical errors in the given code. You can click on Compile &
Run anytime to check the compilation/execution status of the program. You can use
System.out.println to debug your code. The submitted code should be logically/syntactically
correct and pass all test cases. Do not write the main() function as it is not required. Code
Approach: For this question, you will need to correct the given implementation We do not
expect you to modify the approach or incorporate any additional library methods. The function
sortArray(int * arr,intlen) accepts an integer array arr of length (len>0) as an input and
perform an in place sort operation on it. The function is expected to return the input array
sorted in descending order The function compiles successfully but fails to return the desired
results due to logical errors Your task is to debug the program to pass all the test cases
TESTCASE 1:
Input:
[23, 12, 14, 24, 21], 5
Expected Return Value:
[24, 23, 21, 14, 12]
AMPLE CODER
AMPLE CODER
TESTCASE 2:
Input:
[1, 1, 1, 1, 1], 5
Expected Return Value:
[1, 1, 1, 1, 1]
Given Code:
int *sortArray(int *arr,int *len)
{
int i=0,j=0,temp=0,index=0;
for(i=0;i<len;i++)
{
for(j=i+1;j<len;j++)
{
if(arr[i]>arr[j])
{
temp=arr[i];
arr[i]=arr[j];
}
return arr;
}
arr[j]=temp;
}
}
Corrected Code:
int *sortArray(int *arr, int len)
{
int i=0,j=0,temp=0,index=0;
for(i=0;i<len;i++)
{
for(j=i+1;j<len;j++)
{
if(arr[i]<arr[j])
{
temp=arr[i];
arr[i]=arr[j];
arr[j]=temp;
}
}
}
return arr;
}
AMPLE CODER
AMPLE CODER
Question:13
You are required to complete the given code by reusing existing functions. click on the helper
code tab to find out the details of functions/classes provided for reuse you can click on compile
& run anytime to check the compilation /execution status of the program you can use
system.out.println to debug your code The submitted code should be logically/syntactically
correct and pass all testcase . . Do not write the main() function as it is not required.
Code Approach: For this question, you will need to correct the given implementation. We do not
expect you to modify the approach or incorporate any additional library methods. The function
countElement(int *arr, int len, int n) is supposed to return the numbers of elements in the
inputs array arr of length len, which are greater than twice of the input number n The function
looks fine but given a compilation error Your task is to fix the program so that it passes all the
testcases
TESTCASE 1:
Input:
[-2, -4, -3, -5, -6, -7, -8], 7, 3
Expected Return Value:
0
TESTCASE 2:
Input:
[22, 55, 66, 33, 44, 77], 6,13
Expected Return Value:
5
PROGRAM:
Given Code:
int countElement(int arr, int len, int n)
{
inti,count=0;
for(int i=0;i<len;i++)
{
if(arr[i]>2n)
{
count=-1;
}
}
return count;
}
Corrected Code:
int countElement(int arr, int len, int n)
{
int i,count=0;
for(i=0;i<len;i++)
{
AMPLE CODER
AMPLE CODER
if(arr[i]>2*n)
{
//count=-1;
count+=1;
}
}
return count;
}
AMPLE CODER
AMPLE CODER
Question:14
The method countdigit(int sum) of class digits is supposed to return the value remainder when
the input arguments num(num>0) is divided by the number of digits in num.
Given Code:
countdigit(int sum)
{
int count=0;
while(num)
{
num=num/10;
count++;
}
return (num%count);
}
Corrected Code:
countdigit(int sum)
{
int count=0,safe;
safe=num;
while(num)
{
num=num/10;
count++;
}
num=safe;
return (num%count);
}
Question:15
The Function reverseArray(intarr[])of class sort Array arr of an arguments For example, if the
input array arr is {20,30,10,40,50} the function is expected to return{50,40,10,30,20}
The function compiles successfully but fails to return the desired result due to logical errors
Given Code:
int arrayReverse(int *arr,int len)
{
int i,temp,originallen=len;
for(i=0;i<=originallen/2;i++)
{
temp=arr[len-1];
arr[len-1]=arr[i];
arr[i]=temp;
len+=1;
}
return arr;
}
AMPLE CODER
AMPLE CODER
Corrected Code:
int arrayReverse(int *arr,int len)
{
int i,temp,originallen=len;
for(i=0;i<=originallen/2;i++)
{
temp=arr[len-1];
arr[len-1]=arr[i];
arr[i]=temp;
len+=1;
len-=1;
}
return arr;
}
Question:16
Given Code:
char checkGrade(int score)
{
if(score<=60)
return ‘D’;
else if((61<=score)&&(score<=75))
return ‘C’;
else if((76<=score)&&(score<=90))
return ‘B’;
else
return ‘A’;
}
int main()
{
int score;
scanf(“%d”,&score);
printf(“%c”, checkGrade(score));
return 0;
}
Corrected Code:
char checkGrade(int score)
{
if(score<=60)
return ‘D’;
else if((61>=score)&&(score<=75))
return ‘C’;
else if((76>=score)&&(score<=90))
return ‘B’;
else
return ‘A’;
}
AMPLE CODER
AMPLE CODER
int main()
{
int score;
scanf(“%d”,&score);
printf(“%c”, checkGrade(score));
return 0;
}
Question:17
The function findMaxElement(int *arr1,int len1,int *arr2,int len2) accepts two integer arrays
arr1,arr2 of length len1,len2 respectively. It is supposed to return the largest element in both the
input arrays. Another function sortArray(int *arr,intlen) sorts the input array arr of length len
in ascending order and returns the sorted array.
Your task is to use sortArray(int *arr,intlen) function and complete the code in
findMaxElement(int *arr1,int len1,int *arr2,int len2) so that it passes all test cases.
TESTCASE 1:
Input:
[2, 5, 1, 3, 9, 8, 4, 6, 5, 2, 3, 11], 12,
[11, 13, 2, 4, 15, 17, 67, 44, 2, 100, 0, 23]11
Expected Return Value:
100
TESTCASE 2:
Input:
[100, 22, 43, 912, 56, 89, 85], 7, [234, 123, 456, 234, 890, 101], 6
Expected Return Value:
912
Given Code:
int *sortArray(int *arr,int *len)
{
int i=0,j=0,temp=0,index=0;
for(i=0;i<len;i++)
{
for(j=i+1;j<len;j++)
{
if(arr[i]>arr[j])
{
temp=arr[i];
arr[i]=arr[j];
arr[j]=temp;
}
}
}
return arr;
}
AMPLE CODER
AMPLE CODER
findMaxElement(int *arr1,int len1,int *arr2,int len2)
{
//WRITE DOWN CODE HERE
arr1= sortArray(arr1,len1);
arr2= sortArray(arr2,len2);
if(arr1[len1-1]>arr2[len2-1])
return arr1[len1-1];
else
return arr2[len2-1];
}
Question 18
The function getarraysum(int * arr, int len)is supported to calculate and return the sum
of elements of the input array arr of length len(len>0) The function compiles successfully but
fails to return the desired result due to logical errors.
Given Code:
int getarraysum(int *arr, int len)
{
int sum = 0;
for(i=0;i<len;i-i-1)
{
sum = arr[i];
}
return sum;
}
Corrected Code:
int getarraysum(int *arr, int len)
{
int sum = 0;
for(i=0;i<len;i++)
{
sum+ = arr[i];
}
return sum;
}
Question:19
The methods GetDigitSum(intarr[]) of class DigitSum accepts an integers array arr it is
supposed to calculate the sum of digits of the even of the smallest elements in the input array it
returns 1 if the calculated sum is even and returns 0 otherwise However there is a compliation
error in the code your task is to fix it so that the program works for all the input values Note
The methods getdigitSum uses another method getSum(int sum) which returns the sum of the
digits of the input number num
AMPLE CODER
AMPLE CODER
Given Code:
int getDigitSum(int arr[i])
{
int result,len=arr.length;
for(int i=0;min=arr[0];i<len;i++)
{
if(arr[i]<min)
min=arr[i];
}
results=getSum(min)
if(results%2==0)
return 1;
else
min==arr[j];
}
int getSum(int num)
{
//WRITE YOUR CODE HERE
}
Corrected Code:
int getDigitSum(int arr[i])
{
int result,len=arr.length;
int min;
for(int i=0;min=arr[0];i<len;i++)
{
if(arr[i]<min)
min=arr[i];
}
results=getSum(min)
if(results%2==0)
return 1;
else
return 0;
}
int getSum(int num)
{
//WRITE YOUR CODE HERE
int rem,sum=0;
while(num)
{
rem=num%10;
sum+=rem;
num/=10;
}
return sum;
}
AMPLE CODER
AMPLE CODER
Question:20
Code Approach: For this question, you will need to correct the given implementation. We do not
expect you to modify the approach or incorporate any additional library methods.
Lisa always forgets her birthday which is on 5Th july
In order to help her we have function CheckBirthDay(char *month,int day) which takes day
and month as inputs and returns 1 if its her birthday and returns a 0 otherwise The function
compiles fine but to return desired results for some cases Your task to fix the code so but that it
passes at test cases
15(1)
TestCase 1;
Input
July 13
Expected Return Value:
0
TestCase 2:
Input
April 3
Expected Return Value:
0
Given Code:
int checkBirthday(char* month,int day)
{
if(strcmp(month,"july") || (day =5))
return 1;
else
return 0;
}
int main()
{
char inp[]="july";
int day=5;
if(checkBirthday(inp,day)==1)
printf("Yes");
else
printf("No");
return 0 ;
}
Corrected Code:
int checkBirthday(char* month,int day)
{
if(strcmp(month,"july")==0 && (day ==5))
return 1;
else
return 0;
}
AMPLE CODER
AMPLE CODER
int main()
{
char inp[]="july";
int day=5;
if(checkBirthday(inp,day)==1)
printf("Yes");
else
printf("No");
return 0 ;
}
Question:21
Matrix Adding odd diagonal elements
int calculateMatrixSum(int m, int n, int mat[m][n])
{
//WRITE YOUR CODE HERE
int i,j,sum=0,row=m,col=n;
if(row>0 && col>0)
{
for(i=0;i<row;i++)
{
for(j=0;j<col;j++)
{
if(i==j)
{
if(mat[i][j]%2==0)
sum+=mat[i][j];
}
}
}
}
return sum;
}
AMPLE CODER
AMPLE CODER
Question:22
Manchester Encoding
int Manchester(int *arr, int len)
{
//WRITE YOUR CODE HERE
int i;
int *res=(int *)malloc(sizeof(int)*len);
res[0]=arr[0]; //res[0]=(arr[0]!=0);
for(i=1;i<len;i++)
res[i]=arr[i]^arr[i-1];
return res;
}
Question:23
Matrix Sum
Given Code:
int MatrixSum(int m, int n, int mat[m][n])
{
int i,j,sum=0;
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
{
sum+ =mat[i] (j);
}
}
return sum;
}
Corrected Code:
int MatrixSum(int m, int n, int mat[m][n])
{
int i,j,sum=0;
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
{
sum+=mat[i][j];
}
}
return sum;
}
AMPLE CODER
AMPLE CODER
Question 24:
Replace all the elements of the array with the maximum element of array.
//WRITE DOWN YOUR CODE HERE
#include<stdio.h>
int * maxReplace(int *arr, int len)
{
int i
if(len>0)
{
int max=arr[0];
for(i=1;i<len;i++)
{
if(max<arr[i])
max=arr[i];
}
for(i=0;i<len;i++)
arr[i]=max;
}
return arr;
}
Question 25:
Find the number of occurrences of a given value in the array.
Given Code:
#include<stdio.h>
int occurrence(int *arr, int len,int value)
{
int i=0,count=0;
while(i<len)
{
if(arr[i]==value)
count++;
}
return count;
}
Corrected Code:
#include<stdio.h>
int occurrence(int *arr, int len,int value)
{
int i=0,count=0;
while(i<len)
{
if(arr[i]==value)
count++;
i++;
}
return count;
}
AMPLE CODER
AMPLE CODER
Question 26:
The function patternPrint(int n) supposed to print n number of lines in the following pattern
For n=4 the pattern should be:
1
11
111
1111
The function complies successfully but fails to return the desired results due to logical errors
Your task is to debug the program to pass all the test cases
Given Code:
void patternPrint(int n)
{
int print=1,i,j;
for(int i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
printf("%d",print);
}
}
print("\n");
}
}
Corrected Code:
void patternPrint(int n)
{
int print=1,i,j;
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
printf("%d",print);
}
print("\n");
}
}
AMPLE CODER
AMPLE CODER
Question:27 The function removeElement(int *arr,intlen,int index)takes an array arr of length
len as an input. It is supposed to return an array len-1 after removing the integer at the given
index in the input arrayarr. If the given index is out of bounds, then this function should return
the input array arr. The function compiles successfully but fails to return the desired result due
to logical errors */
WRITE YOUR CODE
int* removeelement( int *arr, int len, int index)
{
int i,j;
if(index<len)
{
for(i=index;i<len-1;i++)
{
arr[i]=arr[i+1];
}
int *rarr =(int*)malloc(sizeof(int)*(len-1));
for(i=0;i<len-1;i++)
rarr[i]=arr[i];
return rarr;
}
else
return arr;
}
Question:28 Replace a given array with zeros and ones depending on the even or odd criteria of
the array length.
//WRITE DOWN YOUR CODE HERE
int *replaceValues(int *arr, int len)
{
int i;
for(i=0;i<len;i++)
arr[i]=len%2;
return arr;
}
Question: 29 Selection Sort
Given Code:
int * sortArray(int *arr, int len)
{
int x=0,y=0,n=len;
int index_of_min, temp;
for(x=0;x<n;x++)
{
index_of_min=x;
for(y=x;y<n;y++)
{
AMPLE CODER
AMPLE CODER
if(arr[index_of_min]>arr[y])
{
index_of_min=y;
}
}
temp = arr[x];
arr[x] = arr[index_of_min];
arr[index_of_min] = temp;
}
return arr;
}
Corrected Code:
int * sortArray(int *arr, int len)
{
int x=0,y=0,n=len;
int index_of_min, temp;
for(x=0;x<n;x++)
{
index_of_min=x;
for(y=x;y<n;y++)
{
if(arr[index_of_min]>arr[x])
{
index_of_min=y;
}
}
temp = arr[x];
arr[x] = arr[index_of_min];
arr[index_of_min] = temp;
}
return arr;
}
AMPLE CODER
AMPLE CODER
QUESTION:30
Return the difference between two given times in seconds
TESTCASE
TestCase1:
Input:
Time:1:58:42, Time:2:1:45
Expected Return values:
183
Testcase 2
Input:
Time:3:49:57, Time:2:45:57
Expected Return Values
3600
#include<stdio.h>
struct Time
{
int h;
int m;
int s;
};
typedef struct Time TIME;
toSeconds(TIME * gt)
{
int in_seconds;
in_seconds = gt->h * 3600 + gt->m * 60 + gt->s;
return in_seconds;
}
int abs(int val)
{
if (val< 0)
return -val;
else
return val;
}
diff_in_times(TIME *t1, TIME *t2)
{
//WRITE DOWN YOUR CODE HERE
int t5,t6,res,result;
t5= toSeconds(t1);
t6= toSeconds(t2);
res= t5-t6;
result=abs(res);
return result;
}
int main()
{
TIME t1 = {1,58,42}, t2 = {2,59,45};
printf("%d", diff_in_times(&t1, &t2));
return 0;
}
AMPLE CODER
AMPLE CODER
Question:31
Print the following Pattern
1
121
12321
1234321
//WRITE DOWN YOUR CODE HERE
void printPattern(int n)
{
int i,j;
for(i=1;i<=n;i++,printf(“\n”))
{
for(j=1;j<=i;j++)
{
printf("%d”,j);
}
for(j--;j>=1;j--)
{
printf("%d”,j);
}
}
}
Or
void printPattern(int n)
{
int i,j,num=1;
for(i=1;i<=n;i++)
{
num=num*10+1;
printf(“%d\n”, num*num);
}
}
AMPLE CODER
AMPLE CODER
Question:32
You are required to fix all logical errors in the given code. You can click on Compile &
Run anytime to check the compilation/execution status of the program. You can use
System.out.println to debug your code. The submitted code should be logically/syntactically
correct and pass all testcases. Do not write the main() function as it is not required. Code
Approach: For this question, you will need to correct the given implementation. We do not
expect you to modify the approach or incorporate any additional library methods.
The method deleteDuplicate(intarr[]) of classDistinctArray takes an array as an input it is
supposed to remove duplicates integers from the input array arr such that for each distinct
integer the first occurrence is retained and all the duplicates elements following it are removed
for Example given input array
(2,3,2,2,5,6,6,7)
the expected output is (2,3,5,6,7)
The function complies successfully but fails to return the desired results due to logical errors
Your task is debug the program to pass all the test cases
Given Code:
int* deleteDuplicate (int *arr, int len)
{
int count=0,p,i,j,k=0,originalLength=len;
for(i=0;i<len;i++)
{
for(j=i+1;j<len;j++)
{
if(arr[j]==arr[i])
{
arr[k]=arr[k+1];
}
len=len-1;
count=count+1;
j=i;
}
}
return arr;
}
Corrected Code:
int* deleteDuplicate (int *arr, int len)
{
int count=0,p,i,j,k=0,originalLength=len;
for(i=0;i<len;i++)
{
for(j=i+1;j<len;j++)
{
if(arr[j]==arr[i])
{
for(k=j;k<len-1;k++)
arr[k]=arr[k+1];
}
len=len-1;
AMPLE CODER
AMPLE CODER
count=count+1;
j=i;
}
}
return arr;
}
QUESTION:33
The function sameelementcount(int *arr,intlen)accepts an integer array arr of length len as a
input and returns the number of elements in an arr which are even numbers and equal to the
element to its right
//WRITE DOWN YOUR CODE HERE
int sameelementcount(int *arr, int len)
{
int i,count=0;
for(i=0;i<len-1;i++)
{
if((arr[i]%2==0)&&(arr[i]==arr[i++]))
count++;
}
return count;
}
QUESTION:34
Given a string str, write a program to eliminate all the vowels from the given string. The list of
vowels in the English alphabet is : {a,e,i,o,u,A,E,l,0.U}. The Input to the function
eliminateVowelString shall consist of a string str (containing only English letters) and returns a
pointer to a string which does not contain vowels.
EXAMPLE:
Input =”abcdefghijklmnopqrstuvwxyz”
0utput="bcdfghjklmnpqrstvwxyz”
USEFUL COMMANDS:
strlen() is used to calculate the length of the string. The statement int len = strlen(str); Returns the length of the string str
TESTCASE 1:
Input: "bacdefghijklmnopgrstu"
Expected Return Value: "bcdfghjklmnpqrst"
TESTCASE 2:
Input: "bacdcfgh"
Expected Return Value: "bcdlgh"
AMPLE CODER
AMPLE CODER
char * removeVowel(char *str)
{
int trav,,hold=0;
for(trav=0;str[trav]!='\0';trav++)
{
if(str[trav]=='a'|| str[trav]=='e'|| str[trav]=='i'|| str[trav]=='o'||
str[trav]=='A'|| str[trav]=='E'|| str[trav]=='I'|| str[trav]=='O'|| str[trav]=='U')
{
}
else
{
str[hold]=str[trav];
hold++;
}
}
str[hold]='\0';
printf("%s",str);
return 0;
}
AMPLE CODER
str[trav]=='u'||
AMPLE CODER
QUESTION:35
Half sort Array:
#include<stdio.h>
#include<limits.h>
int main()
{
int arr[]={10,12,25,6,13,8,19};
int index,size,max,maxpos,min,minpos,temp,scope;
size=sizeof(arr)/sizeof(arr[0]);
for(index= 0 ; index < size; printf("%2d ",arr[index++]));
if(index%2==0)
{
min = INT_MAX;
for(index =1; index<size; index++)
{
if(arr[index] < min)
{
min = arr[index];
minpos=index;
}
}
temp = arr[index];
arr[index] = arr[minpos];
arr[minpos]=temp;
}
else
{
max = INT_MIN;
for(index = 0 ; index<size; index++)
{
if(arr[index] > max)
{
max = arr[index];
maxpos=index;
}
}
temp = arr[index];
arr[index] = arr[maxpos];
arr[maxpos]=temp;
}
for(printf("\n"),index= 0 ; index < size;printf("%2d ",arr[index++]));
return 0;
}
AMPLE CODER
AMPLE CODER
Question : 36 WRITE YOUR CODE
Pyramid of alphabets
a
bcd
efghi
jklmnop
#include<stdio.h>
void printPattern(int n)
{
int i,j;
char ch='a';
for(i=1;i<=n;i++)
{
for(j=1;j<=n-i;j++)
printf(" ");
for(j=1;j<=2*i-1;j++)
printf("%c",ch++);
printf("\n");
}
}
QUESTION:37
You have to encrypt a non-empty string phrase. The encryption adds a 'cyclic shift' to each
letter where the value of this 'cyclic shift' is decided by the position of the letter from the end of
its word. The shift value for each letter of a word is its index value (starting from 0) from the
right-most character of the word.
EXAMPLE:
The shift values in 'yum feed' will be
yum: m->0, u->1, y->2
feed: d->0, e->1, e->2, f->3
which gives the encryption avmigfd
Here, adding the shift with value 0 to letter 'm' gives 'm' + 0 = m;
values 1 to 'u' gives 'u' + 1 = v and values 2 to 'y' gives 'y' + 2 = a and so on
Note that the shift wraps around on reaching the end of the alphabets, i.e., the shift values for
'y' as shown above is 'a'.
INPUT:
The input to the function/method consists of a string.
OUTPUT:
Return the encrypted string
NOTE:
Assume that the input string contains single space separating set of words
AMPLE CODER
AMPLE CODER
#include<stdio.h>
char* encryption(char* str);
int main()
{
char str[]="zebra tiger";
printf("%s",encryption(str));
return 0;
}
char* encryption(char* str)
{
//your CODE
int len,index,value;
for(len=0;str[len]!=’\0’;len++)
{
if(str[index]=’\0’)
{
value=0;
continue;
}
if(str[index]+value<=122)
str[index]=str[index]+value++;
else
str[index]=str[index]+value++ -26;
}
return str;
}
QUESTION:38
The LeastRecentlyUsed(LRU) cache algorithm exists the element from the cache(when it's full)
that was leastrecentlyused. After an element is requested from the cache, it should be added to
the cache(if not already there) and considered the most recently used element in the cache.
Initially, the cache is empty. The input to the function LruCountMiss shall consist of an integer
max_cache_size, an array pages and its length len. The function should return an integer for the
number of cache misses using the LRU cache algorithm. Assume that the array pages always
has pages numbered from 1 to 50.
TEST CASE1:
Input: 3 16 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0
Expected Return Value: 11
TESTCASE 2:
Input:2 9 2 3 1 3 2 1 4 3 2
Expected Return Value: 8
AMPLE CODER
AMPLE CODER
#include <stdio.h>
int main()
{
int max_cache_size,pages_len,i,j,cache[100],pages[100],k,pageincache=0,misscount=0;
scanf("%d %d",&max_cache_size,&pages_len);
for(i=0;i< max_cache_size;i++)
cache[i]=-1;
for(i=0;i<pages_len;i++)
{
pageincache=0;
scanf("%d",&pages[i]);
for(j=0;j<max_cache_size;j++)
{
if(pages[i]==cache[j])
{
pageincache=1;
for(k=j;k<max_cache_size;k++)
{
cache[k]=cache[k+1];
}
cache[max_cache_size-1]=pages[i];
}
}
if(pageincache==0)
{
misscount++;
for(k=0;k<max_cache_size;k++)
{
cache[k]=cache[k+1];
}
cache[max_cache_size-1]=pages[i];
}
}
printf("%d",misscount);
}
AMPLE CODER
AMPLE CODER
39. Removal of vowel from string
#include <stdio.h>
#include <string.h>
int check_vowel(char);
int main()
{
char s[100], t[100];
int i, j = 0;
printf("Enter a string to delete vowels\n");
gets(s);
for(i = 0; s[i] != '\0'; i++) {
if(check_vowel(s[i]) == 0) { //not a vowel
t[j] = s[i];
j++;
}
}
t[j] = '\0';
strcpy(s, t); //We are changing initial string
printf("String after deleting vowels: %s\n", s);
return 0;
AMPLE CODER
AMPLE CODER
}
int check_vowel(char c)
{
switch(c) {
case 'a':
case 'A':
case 'e':
case 'E':
case 'i':
case 'I':
case 'o':
case 'O':
case 'u':
case 'U':
return 1;
default:
return 0;
}
}
AMPLE CODER
AMPLE CODER
40. GCD of two numbers
#include <stdio.h>
int gcd(int a, int b)
{
if (a == 0 || b == 0)
return 0;
if (a == b)
return a;
if (a > b)
return gcd(a-b, b);
return gcd(a, b-a);
}
int main()
{
int a = 98, b = 56;
printf("GCD of %d and %d is %d ", a, b, gcd(a, b));
return 0;
}
AMPLE CODER
AMPLE CODER
41. GCD of two numbers - Recursion
class Test
{
static int gcd(int a, int b)
{
if (a == 0 || b == 0)
return 0;
if (a == b)
return a;
if (a > b)
return gcd(a-b, b);
return gcd(a, b-a);
}
public static void main(String[] args)
{
int a = 98, b = 56;
System.out.println("GCD of " + a +" and " + b + " is " + gcd(a, b));
AMPLE CODER
AMPLE CODER
}
}
42. Eliminate repeated elements in Array.
#include<stdio.h>
int main() {
int arr[20], i, j, k, size;
printf("\nEnter array size : ");
scanf("%d", &size);
printf("\nAccept Numbers : ");
for (i = 0; i < size; i++)
scanf("%d", &arr[i]);
printf("\nArray with Unique list : ");
for (i = 0; i < size; i++) {
for (j = i + 1; j < size;) {
if (arr[j] == arr[i]) {
for (k = j; k < size; k++) {
arr[k] = arr[k + 1];
}
AMPLE CODER
AMPLE CODER
size--;
} else
j++;
}
}
for (i = 0; i < size; i++) {
printf("%d ", arr[i]);
}
return (0);
}
43. C program to print reverse Pyramid star pattern
Example
Input
Input rows: 5
Output
*********
*******
*****
***
AMPLE CODER
AMPLE CODER
*
#include <stdio.h>
int main()
{
int i, j, rows;
printf("Enter number of rows : ");
scanf("%d", &rows);
for(i=1; i<=rows; i++)
{
for(j=1; j<i; j++)
{
printf(" ");
}
for(j=1; j<=(rows*2 -(2*i-1)); j++)
{
printf("*");
}
printf("\n");
}
AMPLE CODER
AMPLE CODER
return 0;
}
44. C program to print square or rectangle star pattern
Example
Input
Input number of rows: 5
Output
*****
*****
*****
*****
*****
#include <stdio.h>
AMPLE CODER
AMPLE CODER
int main()
{
int i, j, N;
printf("Enter number of rows: ");
scanf("%d", &N);
for(i=1; i<=N; i++)
{
for(j=1; j<=N; j++)
{
printf("*");
}
printf("\n");
}
return
45. GCD of more than two (or array) numbers
#include<bits/stdc++.h>
using namespace std;
int gcd(int a, int b)
{
AMPLE CODER
AMPLE CODER
if (a == 0)
return b;
return gcd(b%a, a);
}
int findGCD(int arr[], int n)
{
int result = arr[0];
for (int i=1; i<n; i++)
result = gcd(arr[i], result);
return result;
}
int main()
{
int arr[] = {2, 4, 6, 8, 16};
int n = sizeof(arr)/sizeof(arr[0]);
cout << findGCD(arr, n) << endl;
return 0;
}
46. Bubble Sort
AMPLE CODER
AMPLE CODER
#include <stdio.h>
void swap(int *xp, int *yp)
{
int temp = *xp;
*xp = *yp;
*yp = temp;
}
void bubbleSort(int arr[], int n)
{
int i, j;
for (i = 0; i < n-1; i++)
for (j = 0; j < n-i-1; j++)
if (arr[j] > arr[j+1])
swap(&arr[j], &arr[j+1]);
}
void printArray(int arr[], int size)
{
int i;
for (i=0; i < size; i++)
printf("%d ", arr[i]);
AMPLE CODER
AMPLE CODER
printf("n");
}
int main()
{
int arr[] = {64, 34, 25, 12, 22, 11, 90};
int n = sizeof(arr)/sizeof(arr[0]);
bubbleSort(arr, n);
printf("Sorted array: \n");
printArray(arr, n);
return 0;
}
47. Palindrome string
#include <stdio.h>
#include <string.h>
void isPalindrome(char str[])
{
int l = 0;
int h = strlen(str) - 1;
while (h > l)
{
AMPLE CODER
AMPLE CODER
if (str[l++] != str[h--])
{
printf("%s is Not Palindrome", str);
return;
}
}
printf("%s is palindrome", str);
}
int main()
{
isPalindrome("abba");
isPalindrome("abbccbba");
isPalindrome("geeks");
return 0;
}
48. Prime number
#include <stdio.h>
#include<math.h>
int main()
AMPLE CODER
AMPLE CODER
{
int n, i, flag = 1;
printf("Enter a number: \n");
scanf("%d", &n);
for (i = 2; i <= sqrt(n); i++) {
if (n % i == 0) {
flag = 0;
break;
}
}
if(n<=1)
flag=0;
else if(n==2)
flag=1;
if (flag == 1) {
printf("%d is a prime number", n);
}
else {
printf("%d is not a prime number", n);
}
AMPLE CODER
AMPLE CODER
return 0;
}
49. number is a Perfect Cube or not
#include <math.h>
#include <stdio.h>
void perfectCube(int N)
{
for (int i = 1; i < N; i++) {
if (i * i * i == N) {
printf("Yes");
return;
}
}
printf("No");
return;
}
int main()
{
int N = 216;
AMPLE CODER
AMPLE CODER
perfectCube(N);
return 0;
}
50. Perfect cube greater than a given number
#include <cmath>
#include <iostream>
using namespace std;
int nextPerfectCube(int N)
{
int nextN = floor(cbrt(N)) + 1;
return nextN * nextN * nextN;
}
int main()
{
int n = 35;
cout << nextPerfectCube(n);
return 0;
}
AMPLE CODER
AMPLE CODER
Technical Round Questions
C/C++ Interview Questions:
1. When is a switch statement better than multiple if statements?
2. What is the return type of printf library function?
3. What is dangling pointer?
4. How can we achieve run time polymorphism in C++?
5. Library function which is used to convert string value into int value?
6. How the overriding is different than overloading?
7. Explain diamond problem of inheritance?
8. What is the significance of argc and argv in command line arguments ?
9. Can we call any class member function without using object of the class
10. Give uses of scope resolution operator ( :: ) in C++
11. What is importance of this pointer?
12. Write the statements which are used to swap two variables without using 3rd variable
and without using airthematic operators.
13. Explain the polymorphism?
14. How type conversion is different than type casting ?
15. List the operators which can’t be overloaded ?
16. Which operator can replace the if statement in the program?
17. What is the role of abstract class in c++
AMPLE CODER
AMPLE CODER
18. What is the return type of malloc and calloc function and in which header file they are
defined
19. What is the output of printf("%d")?
20. What is the difference between "calloc(...)" and "malloc(...)"?
21. What is the difference between "printf(...)" and "sprintf(...)"?
22. What is the difference between namespace and assembly?
23. What is the difference between early binding and late binding?
24. What is the difference between strings and character arrays?
25. What is the difference between const char* p and char const* p?
26. Can static variables be declared in a header file?
27. What is a null pointer?
28. What is the difference between text and binary modes of reading and writing files to
disk?
29. What is static memory allocation and dynamic memory allocation?
30. How are pointer variables initialized?
31. What is the difference between arrays and pointers?
32. Is using exit() the same as using return?
33. What is indirection?
34. What is modular programming?
35. What is an lvalue?
36. Differentiate between an internal static and external static variable?
37. What is a void pointer?
AMPLE CODER
AMPLE CODER
38. When should a type cast not be used?
39. What is a static function?
40. Differentiate between a linker and linkage?
41. What is the difference between declaration and definition?
42. What are the advantages of inheritance?
43. What are inline functions and when they can prove beneficial?
44. What are templates in C++?
45. What keyword will you use when defining a function in base class to allow this function
to be a polymorphic function?
46. Why are arrays usually processed with for loop?
47. What is the difference between macro and inline?
48. How can we access protected and private members of a class?
49. In the derived class, which data members of the base class are visible?
50. What is the need for a Virtual Destructor?
51. What is the Standard Template Library (STL)?
52. What is difference between Class and Structure in C++?
53. Why we create NULL pointers?
54. Why do we use file handling?
55. Which function is used to position back from the end of file object?
56. What is a stream?
57. What is the difference between realloc() and free()?
58. Can Constructor of class be private?
AMPLE CODER
AMPLE CODER
59. Can local and global variables be same names?
60. What type of functions are nonmember functions of a class but are granted the same
privileges as methods of the class.
61. The constructor that performs an initialization using another object of the same class is
called as?
62. In C++, Which keyword can you use with a variable so that when function is called by
reference and still prevent the function from changing its value?
63. How many destructors can a class have?
64. Out of fgets() and gets() which function is safe to use and why?
65. Why doesn’t this code: a[i] = i++; work?
66. Are the expressions *ptr ++ and ++ *ptr same?
67. What would be the equivalent pointer expression foe referring the same element as
a[p][q][r][s]?
68. Are the variables argc and argv are always local to main?
69. Can main () be called recursively?
70. How is a file closed?
71. What is the purpose of ftell ?
72. Difference between an array of pointers and a pointer to an array?
73. Can a Structure contain a Pointer to itself?
74. How many ways are there to initialize an int with a constant?
75. Why shouldn't I start variable names with underscores?
76. Is a default case necessary in a switch statement?
AMPLE CODER
AMPLE CODER
77. Can the last case of a switch statement skip including the break?
78. Which bit wise operator is suitable for checking whether a particular bit is on or off?
79. Can the sizeof operator be used to tell the size of an array passed to a function?
80. When should the register modifier be used? Does it really help?
81. WAP to add two strings without utilizing “+” operator?
82. Difference between C & C++?
83. Difference between SQL & C++?
84. What are character constants in C++?
85. What are streams in C++? What are predefined streams in C++?
86. Explain tokens in C++.Also tells about their role and importance.
87. WAP to reverse a linklist?
88. WAP to print reverse of a given sequence?
89. WAP for Armstrong, palindrome, Fibonacci sequence.
90. WAP to swap two values without using third variable.
91. Describe Structure Vs Union Vs Class.
92. Write a pseudo code for uploading a photo on your facebook?
93. WAP to print “1,4,7,6,9,1”(Simple jst print as it is without any logic).
94. What are derived data types? Name the user defined data types in C++.
95. Whether higher normal forms better than lower forms as far redundancy is concerned?
96. How would you input data to your code?
97. What are the similarities and differences between a class and a structure?
98. Give me an example of data types? (but they use a different word for it so be ready).
AMPLE CODER
AMPLE CODER
99. Give real world examples of different types of data structures.
100. Describe database tuning.
101. What is the difference between undefined and NULL?
102. What is array?
103. Write down array declaration of 5 elements.
104. Write a program to check whether a given number is prime or not.
105. What is Inheritance?
106. Difference between overloading and overriding.
107. What is the use of Normalization?
DBMS QUESTIONS
1. Define Database.
2. What is DBMS?
3. What are the various kinds of interactions catered by DBMS?
4. Segregate database technology’s development.
5. Who proposed the relational model?
6. What are the features of Database language?
7. What do database languages do?
8. Define Database Model.
9. What is SQL?
10. Enlist the various relationships of Database.
11. Define Normalization.
AMPLE CODER
AMPLE CODER
12. Advantages of Normalized Database.
13. Define DDL and DML.
14. Enlist some commands of DDL and DML.
15. Define UnionAllOperator and Union.
16. Define Cursor and its types.
17. Define Subquery.
18. Why is Group Clause Used?
19. Compare Cluster and Non-Cluster Index.
20. Define Aggregate Functions.
21. Define Scalar Functions.
22. What restrictions can you apply when you are creating views?
23. Define “Co-related Subqueries”.
24. Define Data Warehousing.
25. Define Join and its types.
26. What do you mean by index hunting?
27. How does Index hunting help in improving query performance?
28. Enlist the Disadvantage of Query.
29. Enlist ways to efficiently code transactions
30. What is Executive Plan?
31. What is B+ Tree?
32. Differentiate Table Scan from Index Scan.
33. What do you mean by Fill Factor concept with respect to indexes?
AMPLE CODER
AMPLE CODER
34. Define Fragmentation
35. Differentiate Nested Loop, Hash Join and Merge Join.
36. What is Database partitioning? And its Importance.
37. What do you mean by Query Evaluation Engine?
38. Define DDL Interpreter
39. Define Atomicity and Aggregation.
40. Enlist the various transaction phases.
41. Define Object-oriented model.
42. Define Entity.
43. What do you mean by Entity type extension?
44. What are two methods of retrieving SQL?
45. What cursor type do you use to retrieve multiple recordsets?
46. What is the difference between a "where" clause and a "having" clause?
47. What is the basic form of a SQL statement to read data out of a table?
48. What structure can you implement for the database to speed up table reads?
49. What are the tradeoffs with having indexes?
50. What is a Constraint?
51. What is Primary Key?
52. What is a "functional dependency"? How does it relate to database table design?
53. What is DBA?
54. Difference between Primary, Foreign, Candidate & Super key?
55. Different type of databases?
AMPLE CODER
AMPLE CODER
56. What is normalization?
57. Briefly explain the method you will use to execute an array linked list?
58. Give me a Query to find out the second largest compensation in an organization?
59. What is the implementation of merge?
60. Write the connection code to a database?
61. How did you create it in your project?
62. What is the significance of dijkastra algorithm
63. Can a database table exist without a primary key?
64. What is the reason behind using “Inner Join” and “Outer Join”?
OPERTING SYSTEM:
1. What is O.S.?
2. What is a semaphore?
3. Difference between semaphore & mutex?
4. What is a deadlock?
COMPUTER &PROGRAMMING BASICS:
1. What are the four division in Cobol.
2. What is the significance of 01,77,88,66 levels.
3. What is the Function of compiler.
4. Difference between object file & exe file?
AMPLE CODER
AMPLE CODER
5. Describe tags in HTML5.
EMBEDDED SYSTEMS:
1. What do you mean by frequency and clock rate?
2. What are the differences between processor and controller.
3. What is an embedded system? Relate it with real world example.
4. What is the functioning of Touchscreen?
5. What is Direct Memory Allocation?
6. What is Paging?
7. Difference between interrupt and polling.
8. Which O.S are you using?
9. Describe in brief about RAM and ROM?
10. What is Flash memory?
DIGITAL ELECTRONICS:
11. Explain the types of Finite state machines?
12. What are universal gates?
ANALOG ELECTRONICS:
1. Draw a complimentary symmetric push pull amplifier.
AMPLE CODER
AMPLE CODER
NETWORKING:
1. Define the terms OSI, TCP, and IP.
SIGNAL AND SYSTEMS:
2. Why we need Fourier transform?
3. What is difference between Fourier Series and Fourier Transform?
4. What is difference between Fourier Transform and Laplace Transform?
5. Difference between Laplace and Z- Transform?
6. Difference between DFT and FFT
7. Difference between DTFT and DFT
8. What pole and zero of transfer function signifies?
9. What is impulse function?
10. What is unit step function?
11. What is LTI system?
12. What is impulse response of system?
13. What is step response of system?
14. What is FIR filter?
15. What is IIR Filter?
16. when system is called a causal system?
17. What is Linear System?
18. What is Energy Signal?
AMPLE CODER
AMPLE CODER
19. What is Power Signal?
20. Difference between analog and digital signal.
RECENT TECHNOLOGY:
1. What is the recent technology used in the field of Big Data?
2. Facebook is implemented in which language?
3. Difference between Big data and Cloud Data.
4. Basics of Big data analysis. (To be asked)
5. What is cloud computing?
6. Describe in brief about i3,i5&i7 processors.
7. What is datamining and datawarehouse?
8. What is GPS?
9. What are the new things happening in the field of automation?
10. What is android?
GENERIC:
1. What is electronics all about?
2. Why gold is yellowish in color?
3. How to find efficiency of a system?
4. State Bernoulis principle.
5. State Archimedes principle.
AMPLE CODER
AMPLE CODER
6. State Netwon’s Three laws.
7. State Faraday’s law.
8. State Coulomb’s law.
9. What is centre of gravity?
10. State Lenz law.
11. What is Potential & kinetic energy?
12. What is the difference between stress and strain?
13. What is SDLC(software development life cycle)?
14. What is the difference between innovation and creativity?
AMPLE CODER
AMPLE CODER
HR Interview Questions
Attitude/Flexibility/Adaptability
1. When considering a new job opportunity, what elements—such as job
responsibilities, location, and hours of work—are important to you?
2. Tell me about a situation where you had to quickly adjust to a change
in your department or team priorities. How did this change affect
you?
3. Describe a time you had to meet a scheduled deadline while your
work was being interrupted continuously. What was most difficult
about this and how did you handle it?
4. Give me an example of a time when you had to balance multiple
responsibilities at once. What did you do to keep organized? How did
you prioritize your tasks?
5. Tell me about a challenging time you faced with a person from a
different background or culture.
6. Interacting with coworkers or customers from different backgrounds
or cultures can be challenging at times. Tell me about a challenging
time you faced with a person from a different background or culture.
7. What skill do you feel you need to develop the most? Why?
8. Describe some specific tasks or conditions you found frustrating. How
did you handle them?
9. Describe the style of management under which you work most
effectively. Why do you prefer this style?
10. Tell me about a time you received constructive criticism. What was it?
How did it make you feel when you received it? What did you do to
improve?
11. Tell me about a time when you were asked to change your schedule
unexpectedly. How did you feel about it? How did you handle it?
AMPLE CODER
AMPLE CODER
12. What types of responsibilities do you like most?
13. What types of responsibilities do you like least?
14. What makes one location of work more desirable to you than
another?
15. Are you willing to relocate or travel?
16. Tell me about a time when it was necessary to admit to others that
you had made a mistake. How did you handle that?
17. How would you describe the perfect work environment for you?
18. How do you react when asked to do something beyond your
capabilities?
19. Describe your ideal company, location and job
20.
How do you feel about working nights and weekends?
21. What motivates you to do good job?
22.What makes you angry?
23.Where do you see yourself five years from now?
24.What is more important to you: money offered, or the type of job?
25. Do you enjoy working independently?
26.
In what kind of a work environment are you most comfortable?
27. Do you prefer working with others or all by yourself?
28.Hobbies and Co-curricular activities:
29.
What activities do you do in your spare time?
30.
Have you done any voluntary work?
31. What was your proudest moment/achievement?
32.Are you a member of any organizations- which ones?
33.Were you a member of any teams?
34.What positions of responsibility have you have held?
35. What did your duties or responsibilities in the positions held involve?
36.
How do you manage your time?
37. How did you balance study with these extra activities?
38.Walk me through a recent or typical workday and explain how you
planned the day’s activities.
AMPLE CODER
AMPLE CODER
39.
What skills/experience did you gain from extra-curricular
activities
40.
What are your outside interests or extra-curricular activities that
you have been engaged
41. in apart from study?
42.What are your hobbies?
43.What types of books do you read?
44. How interested are you in sports?
45. Spontaneity and Confidence:
46.Describe one situation where you have demonstrated leadership
47. What do you do differently from your peers that makes your work
unique? Give me an
48. example.
49.Tell me the steps you have taken to improve your skills or
performance. What was the result?
50.
What is your system for tracking progress on assigned projects
for which you are responsible? Give me an example.
51. What do you consider to be your three greatest strengths? Give me an
example of when you used each of these strengths.
52. Describe a time you had to go against traditions or policies to
accomplish a goal. What was the result?
53. Tell me about a time when you made a bad decision. What was the
result?
54. Can you describe a time when you needed to learn new information
about changing products, markets, or procedures? What did you do?
55. What techniques have you learned to make you more effective?
56.What would you describe as your greatest achievement? How did you
achieve it?
57. Give me an example of a time when you took on a responsibility that
was not assigned to you but needed to be done.
AMPLE CODER
AMPLE CODER
58. Tell about a time you were responsible for planning an event and had
very limited resources. How did you overcome this obstacle?
59.Describe what skills or qualities are important for dealing effectively
with coworkers.
60.
Describe a situation when you tried your hardest, but were
unable to achieve your desired result. What did you do? Why were
you unsuccessful?
61. When evaluating your performance, what factors are most important
to you?
62.
Can you describe a past situation that led you to grow as a
person?
63.
Can you tell me about a time when you were faced with a major
obstacle (work or otherwise) and how you overcame it?
64.Have you ever helped a a team member to improve his or her
performance in a project work? Tell me about a specific instance.
65.What qualities should a successful manager possess?
66.
Describe the relationship that should exist between a supervisor
and a subordinate. What 3 accomplishments have given you the
greatest satisfaction?
67. If you were hiring for this position, what qualities would you look for?
68.
How would you describe yourself?
69.
How do you think a friend or professor who knows you would
describe you?
70.What motivates you to put forth your best effort?
71. How do you determine or evaluate success?
72. What led you to choose the career for which you are preparing?
73. What personal characteristics are necessary for succeeding in the
career that you are interested in?
74. What have you learnt from your mistakes in your past?
75. Did you ever have problems with your team leader in projects at
college?
AMPLE CODER
AMPLE CODER
76. What are the most important rewards you expect in your career?
77. What two or three things are most important to you in your job?
AMPLE CODER
Download