You are on page 1of 2

IBM Sample Test Paper 1

1. 10^10^10 how much time will it take to write this number,if it takes 1 sec to write 1 digit.
a. 1000 secs.
b. 10 year.
c. more than 1 million years.
d. a few days.
ans. more than 1 million years.
2. starting from 2 upto how many numbers we need to check whether 907 is prime or not?
. ! persons age is similar to the year he was born"last two digits is counted as age#.ans. $0
%. &hat is '!((? ans. yet another compiler compiler.
). flop is a unit of ? ans. processing speed.
*. +define hello",,y# printf"+e,pr-.d-,e,pr#/
main"#0
float ,11,y12/
e,pr1,2y/
hello"e,pr#/
3
ans. ,2y11/
7. time and work and days."easy 4uestions#.
$. !56 fill litres and ) litres of oil in the car. ( pays 7s. $28 to !76. 9ow much will ! get?
9. ! 4uestion on -set- theory.it was gi:en that less than 0 persons in class."!ns . cannot be
determined.#
10.% cows are there at the four corners of a s4uare. if the radius of the rope is 1 and lenth of one
side of the s4uare is 1%, find the area along the s4uare which the cow cannot ga;e.
ans. 1%<1%8pi<r<r/
11.=wo glasses were filled with 12 and 12% milk. they were filled with water 5then mi,ed in
tumbler. what is the percentage of milk in the resultant.
12.a:erage speed 2,y2,>y.
1.! belongs to the truther tribe - who says yes-. 6 belongs to the liers tribe - who says no
always-.when !56 were asked to which group do they belonged to both of them replied
-yes-.when a third person ( was asked whether !56 belong to same group,he notified groups
he answered -?o-.to which group do !,6 and ( belong? ans.@@@ or @==.
1%.=here were three clocks they ga:e alarm after 2%secs, 12secs and * secs. if they rang
simultaneously at $A20, then at what time they again rang simultaneously?"something like this
but numbers may differ#. ans. $A27A12
1).! plane starts from a place ! , it goes 1000 kms south then 1000km east then 1000 km north
and 1000km west, what is it distance from the starting place? ans.same starting place.
1*.4uestion on 6ipartite graph"definition#.
17.heap8sorting algorithm time comple,ity."ans nlogn#
1$.white8bo, testing.
19.postfi, e:aluation ofA "!>6#<("!nsA !6>(<#
20.4uestion on catch8throw? c>>
21.main"#0
main"#/
3
ans.stack o:erflow.
2%.main"#
0 char a,b/
printf"-.d.d.d.d-,si;eof"BaB#/
si;eof"?C@@#,si;eof"b#,si;eof"main##/
3
!ns"1,1,1,2#
22.Di:e file si;es gi:en . what should be the order of their access so that least time is taken.
ans.least si;e first.
2.EF@ 4uery does what?
2%.) 4uestions on reasoning.

You might also like