1) 5 Men are living
in a home. The average age of the five men before 5 years was 55.
After P years, one man aged 50 joins with others in the
house which makes the average
age 60. Find the value of P.
Options
a) 4 b) 3 c) 2 d) 7
Answer: a) 4
Explanation:
Let the total age of 5 men be X.
Then the average age of 5 men before 5 years = (X - number
of years x number of men)
/ number of men = (X - 3x5)/5 = (X-15)/5 = 55
Then X = 55 x 5 + 15 = 290. That is, presently the total age
= 290.
After P years, the total age of the 5 men becomes X + 5xP =
290 + 5xP.
One man aged 50 joins with them. Therefore the average
becomes (Total age of 5
original men after P years + Age of new man) / Total number
of men = (290 + 5P + 50)/
(5+1) = 60
or 5P = 360 - 340 = 20
p = 20/5 = 4
Therefore, 4 years is our required answer.
2) A boy has several colored balls in his bag - 12 white, 15
orange and 25 pink. The
lights are out and it is totally dark. Now, how many balls
he must take out to make sure
that he has a pair of each color?
Options
a) 40 b) 42 c) 6 d) 12
Answer: b) 42
Explanation: Questions/Articles Extracted From
www.CareersValley.com
Page 5
In this problem, the worst case scenario will be as follows.
Step 1: He picks all of same colored balls of the largest
group. The largest group is pink.
Therefore, he will be picking all 25 pink balls first.
Step 2: Then he picks all of same colored balls of the next
largest group. The second
largest group is Orange. Therefore, he will be picking 15
orange balls.
Step 3: Now, if he starts picking the remaining balls which
are white, he could very well
stop at 2 balls as he would be having a pair of white ball
anyway.
Therefore total picks = 25 + 15 + 2 = 42.
Shortcut:
If confused, for these kinds of problems you have to add
higher values first + 2, leaving
the least group. Here least group is white.
Therefore our answer will be 25 pink + 15 orange + 2 = 42
Hence the answer is 42.
3) 4 equal aged boys
and 6 equal aged girls were regularly attending a guitar class. 22
is the average age of all and 56 is the age of two boys and
three girls. After 3 years a
boy is replaced by a new boy aged 15. Now, what will be the
average age of boys?
Options
a) 13.5 years b)
15.4years c) 16.3 years d) 14 years
Answer: a) 13.5 years.
Solution:
Let X and Y be the age of a boy and a girl respectively.
Given that 22 is the average age of all.
Then 4X/4 + 6Y/6 = 22
i.e., X + Y = 22 ...eqn1
Also given that, 56 is the age of two boys and three girls.
Then, 2X + 3Y = 56 ...eqn2
Solving the above equations, we get X=10, Y=12.
That is, the age of each boy is 10 and age of each girl is
12.
After 3 years, 1 among 4 boys leaves the group but replaced
by a new 15 year old boy. Questions/Articles Extracted From
www.CareersValley.com
Page 6
Sum of the ages of 3 left over boys + new boy = Ages of
original 3 boys after 3 years +
Age of new boy = 3(X+3) + 15 = 3x13 + 15 = 54 years.
Their average age = Total Age / 4 = 54/4 = 13.5 years.
13.5 Years is our answer.
4) Find the most appropriate meaning for the word
‘Correlate’.
Options:
a. to join b.
to match c. to refer d. to fix
Answer: b. to match
Correlate is to match, observe or compare two or more
different things. For example, in
India illiteracy and poverty can be correlated to each
other.
5) Find the most appropriate meaning for the word
‘Volatile’.
Options:
a. Oscillate
b. Transient c.
Penetrate d. Light
Answer: b. Transient.
Transient can be used to refer something that is temporary
and volatile.
6) When 8 is subtracted out from two third of X, the result
is 25 more than one third of X.
Find the largest prime number which is less than X.
Options:
a) 113 b)
97 c) 89 d) 131
Answer: b) 97
Solution:
Part-1: To find X.
Below equation can be formed based on the data in question.
(2/3)x X - 8 = 25 + 1/3 x X
(2/3)x X - (1/3)x X = 25+8
X/3 = 33
X=99. Questions/Articles Extracted From
www.CareersValley.com
Page 7
Part-2: To find the required prime
97 is the largest prime number which is lesser than 99.
Hence 97 is the answer.
7) 6 reduced from 1/5 of a number is 7 reduced from half of
the same number. Find the
number.
Options
a)10/3
b)22/3 c)7/3 d)none of these
Answer: a) 10/3
Solution:
X/5 - 6 = X/2 - 7
(X-30)/5 = (X-14)/2
2X-60 = 5X-70
5X-2X = 70-60
3X = 10
X = 10/3
8) Ideal Toy company, New York brought out two models – one
rectangle and another
hexagon in shape. The area of the two are same. The base and
height of the triangle are
48” and √3” respectively. Find the length of each of the
sides of the hexagon.
Options:
a) 2” b)
4” c) 24” d) 8”
Answer: b) 4”
Solution:
Area of triangle = 1/2 x base x height = 1/2 x 48 x √3 =
24√3 sq. inches
Since, the areas of a triangle and hexagon are equal , Area
of hexagon = 24√3 sq.
inches ....(1)
If the side of the hexagon is X inches, then its area =
(3√3/2 )r
2
...(2)
Since equations 1 and 2 equal,
24√3 = (3√3/2 )r
2Questions/Articles Extracted From www.CareersValley.com
Page 8
16 = r
2
Or r = 4 inch
9) Four friends namely Rahul, Ravi, Rajesh and Rohan
contested for a dairy milk
chocolate. To decide which friend will get the chocolate
they decided to throw two dice.
Every friend was asked to choose a number and if the sum of
the numbers on two dice
equals that number, the concerned person will get the
chocolate. Rahul's choice was7,
Ravi's choice was 9, Rajesh's choice was 10 and Rohan's
choice was 11. Who has the
maximum probability of winning the amount?
Options:
a) Rahul b)
Ravi c) Rajesh d) Rohan
Answer: a) Rahul
Solution:
Number 7 will appear more often –(1,6), (2,5), (3,4), (4,3),
(6,1), (5,2) --- 6 cases
Number 9 -- (3,6),(6,3), (4,5) (5,4) ---4 cases
For number 10 -- (4,6) ,(6,4) (5,5) ---3 cases
For number 11 -- (5,6),(6,5)...2 cases.
Since number 7 has the maximum chance of appearing, it will
have the maximum
probability as well. Hence, Rahul will most probably be the
winner.
10) A man raises
sheep and chickens. One fine day, his son wants to count the number
of sheep and chickens. Farmer gives hit as below:
"The average number of legs for each animal is 2 38/57.
There are 19 more chickens
than that of sheep." Can you help the son by finding
the total number of sheep?
Options:
a) 25 b)
19 c) 17 d) 20
Answer: b) 19
Solution:
Let the number of sheep be s and the number of chickens be
c.
We know every sheep has 4 legs and every chicken has got 2
legs. Questions/Articles Extracted From www.CareersValley.com
Page 9
Total number of legs = 4s + 2c
Average number of legs = Total number of legs / Total number
of all animals
= 4s + 2c / (s + c)
It is given that the average = 2 38/57 = 152/57
Therefore 4s + 2c / (s + c) = 152/57
Or 228s + 114c = 152s + 152c
Or 76s = 38c
Or 2s = c
Also the question states that there are 19 more chickens
than that of sheep.
Therefore c - s = 19 ... (1)
Substituting c = 2s in eq 1 we get
2s - s = 19
Or s = 19
(Next 4 questions are of interview type)
11) What is the prime difference between while and Do While
Loop?
Answer:
Though while and do-while are loop statements, in Do While
it is assured that the
statements within the loop will be executed at least once
(even if the condition fails.)
12) What is the difference between a = ++b and a = b++?
Answer:
The first statement a = ++b can be broken down into two
statements b = b + 1 followed
by a = b. Hence b will be incremented first and will be assigned
to a. Hence values of a
and b will be same at the end.
The second statement a = b++ can be broken down into two
statements a = b followed
by b = b + 1. Hence b will be assigned to a. Only after this
assignment b will be
incremented. Hence values of a and b will be different at
the end.
13) Is it necessary to use register modifier on all
compilers irrespective of whether they
are old or modern ones ? Questions/Articles Extracted From
www.CareersValley.com
Page 10
Answer:
No, compilers nowadays are intelligent enough to decide
which variables need to be
kept in CPU registers depending upon the estimated usage.
14) Can a program be invoked from another program? If yes,
how it can be done?
Answer:
Yes, a program can invoke another program using system
calls.
15) Which of the following program
structure/component/statement is not an example for
the implementation of modularization?
Options
a) DLL b)
Functions c) type casting
Answer:
Option c) type casting. DLL and Functions help in
modularization of a program while
typecasting just converts from one data type to another.