IBM Aptitude Test 1. In 1978, a kg of paper was sold at Rs25/-. I f the paper rate increases at 1.5% 1.5 % ore than inflation rate which is of !.5% a "ear, then what wil #e the the cost of a kg of paper after after 2 "ears$ a29.12 29.72 &c '(.12 &d '2.!5 &e none of these 2. In ),*,+ are haing soe ar#les with each of the. ) has gi#en * and + the sae n#er of ar#les the" alread" hae to each of the. then, * gae + and ) the sae no. of ar#les the" hae, then + gae ) and * the sae no. of ar#les the" hae. )t the end ),*,and + hae eal no. of ar#les. &i If If ,",0 are the ar#les initiall" initiall" with with ),*,+ respectiel". then the no of ar#les ar#les * hae at the end &a 2&-"-0 &-"-0 etc. &iiIf the total total no. of ar#les ar#les are 72, then the no. of ar#les with with ) at the the starting starting a. 2( #. '( c. '2 '. If a car starts fro ) towards * with soe elocit" de to soe pro#le in the engine after traelling '(k.If the car goes with /5 th th of its actal elocit" the the car reaches * 5in later to the actal tie. If the car engine fails ofter traelling 5k, the car reaches the destination destination * '!in late to the actal tie , what is the initial elocit" of car and what is the distance #etween ) and * in k ans 2( 1'(. . ) person has Rs 1((/- in his pocket, he can as 25 pencils or 15#ooks. 3e kept 15% of the one" for traelling epenses and prchased 5 pencils.4o how an" #ooks he can prchase with the reaining one". 5. ten estions on analogies. e haer carpenter * knife #tcher. !. 6he ales of shares ),* and + fro anar" to ne are as follows.* onth ) * + ) :;* <)R )=R <)> ?;
'( '5 5 ( 55 5(
!( !5 75 75 75 75
8( 85 !5 82 85 8(
i @ring this period which share has ndergone a flctation$ ii In which onth it is possi#le to #" * and + selling )$ iii In which onth the share ales are er" low$
i *" prchasing one share of ) and each of * and + in the #eginningof the period , to get a profit when this shares shold #e sold$ $ 7. In a copter institte 9 langages can taght. 6he odle is of ! onths dration and onl" si langages each of one onth onth can #e taght. In addition to that that *)4I+ is alwa"s there and shold #e in first onth itself A word perfect is to #e taght in the preceeding week of word star. A :BR6R) can not #e taght ntil +B*)C is coarsed prior to that A *IB, :I:B neer #e taght in single odle langages are *)4I+, DBR@ 46)R, DBR@ =;R:;+6, :BR6R), +B*)C, *IB, :I:B, CB6?4, + i. Bf the following which odle is possi#le #ased on a#oe conditions. ii If word star is in 'rd onth , what cold #e in !th onth. iii If +B*)C is in the 2nd onth and *IB in !th onth are there in addition to the a#oe condition, :BR6R) will #e in which onth.
8. In a class , ecept 18 all are a#oe 5( "ears. 15 are #elow 5( "ears of age. how an" people are there a '( # '' c '! d none of these. 9. ) sare plot of soe si0e , at for corners eal sares of soe si0e are ct and is fored as open #o. If this open #o carries 128l of oil. Dhat is the si0e of the plate i.e. side a.17 #.1 c.1' 1(. In a sare , all the id points are oined. the inner sare is shaded. If the area of the sare is ), what is the shaded area$ 11. two estions on #asic angles i.e i.e gien a circle, a few chords or diaeter is is drawn etc 12. E&a,#F &aG#/2 /&a,#F a.# H&a,#F a# , if aF1, #F2 find i /&a,&E&a,#,H&a,# ii 1'. &A" F G"-" &H" F &G"/2 i &A"A&H" &A", which of the #elow ales of , " will satisf" this eation ii &aH#AHc &aA#HHc , what ales of a,#,c satisf" the a#oe.
i *" prchasing one share of ) and each of * and + in the #eginningof the period , to get a profit when this shares shold #e sold$ $ 7. In a copter institte 9 langages can taght. 6he odle is of ! onths dration and onl" si langages each of one onth onth can #e taght. In addition to that that *)4I+ is alwa"s there and shold #e in first onth itself A word perfect is to #e taght in the preceeding week of word star. A :BR6R) can not #e taght ntil +B*)C is coarsed prior to that A *IB, :I:B neer #e taght in single odle langages are *)4I+, DBR@ 46)R, DBR@ =;R:;+6, :BR6R), +B*)C, *IB, :I:B, CB6?4, + i. Bf the following which odle is possi#le #ased on a#oe conditions. ii If word star is in 'rd onth , what cold #e in !th onth. iii If +B*)C is in the 2nd onth and *IB in !th onth are there in addition to the a#oe condition, :BR6R) will #e in which onth.
8. In a class , ecept 18 all are a#oe 5( "ears. 15 are #elow 5( "ears of age. how an" people are there a '( # '' c '! d none of these. 9. ) sare plot of soe si0e , at for corners eal sares of soe si0e are ct and is fored as open #o. If this open #o carries 128l of oil. Dhat is the si0e of the plate i.e. side a.17 #.1 c.1' 1(. In a sare , all the id points are oined. the inner sare is shaded. If the area of the sare is ), what is the shaded area$ 11. two estions on #asic angles i.e i.e gien a circle, a few chords or diaeter is is drawn etc 12. E&a,#F &aG#/2 /&a,#F a.# H&a,#F a# , if aF1, #F2 find i /&a,&E&a,#,H&a,# ii 1'. &A" F G"-" &H" F &G"/2 i &A"A&H" &A", which of the #elow ales of , " will satisf" this eation ii &aH#AHc &aA#HHc , what ales of a,#,c satisf" the a#oe.
1. *" sing the data gien #elow answer the following estions. *.tech <.sc ale feale
<.)
2( 8(
total
!( soe thing siilar to that estion. i (% of feales are *.6echs ii 3alf of the stdents are either fro *.6echs of <.4cs iii ... i. what is the no. of feale *.techs ii.... dont ree#er this estion estion , st for an eaple eaple this has #een gien .
5J. =41 pwd eport =41 reslts in a. "or priar" propt #eing "or crrent director" #. K K and secondar" propts #eing the crrent dir c. K K propt #eing "or hoe dir d. K K and secondar" propts #eing the hoe dir e. one of the a#oe. 8J. If "o t"pe in the coand nohp sort eplo"ees L list 2 L error ot and log off ,the net tie "o log in . the otpt will #e a. in a file called list and the error will de t"ped in a file error ot #. there will #e no file called list or error ot c. error will #e logged in a file called list and o/p will #e in error ot d. "o will not #e allowed to log in e. none of the a#oe 7J. In ?IM a files i-node ais a data strctre that defines all specifications of a file like the file si0e ,n#er of lines to a file ,perissions etc. #.---c. - - - -d. N N N & ans is ---------&a ---------&a J. 6he ?IM shell is.... a.does not coe with the rest of the s"ste #.fors the interface #etween the ser and the kernal c does not gie an" scope for prograing d deos not allow calling one progra fro with in another e all of the a#oe &ans is 8J.en n#er O aF-1, #F ,c,d,eP what is the ale of e $
7,,5,15,' &ans is 7 check again
'J.6he er" first process created #" the kernal that rns till the kernal process is ha ltes is ainit #gett" c d enone &)ns is a 7 J Reslt of the following progra p rogra is ain& O int iF(Q for&iF(Qi2(QiGG O switch&i case (iGF5Q case 1iGF2Q case 5iGF5Q defalt iGFQ #reakQP printf&K%d,K,iQ P P a(,5,9,1',17 #5,9,1',17 c12,17,22 d1!,21 es"nta error &)ns is d 1 J Dhat is the reslt ain& O char cF-!Q int iF-'2 nsigned int F-1!Q if&cLiO printf&Kpass1,KQ if&c and LL a do the sae fnction # differ L oerwrites, while LL appends c differ L is sed for inpt while LL is sed for otpt d differ L write to an" file while LL write onl" to standard otpt e one of these )ns # 5( 6he coand
grep first second third /sr/"o/"file a prints lines containing the words first, second or third fro the file /sr/"o/"file # searches for lines containing the pattern first in the files second, third, and /sr/"o/"file and prints the c searches the files /sr/"o/"fiel and third for lines containing the words first or second and prints the d replaces the word first with the word second in the files third and /sr/"o/"file e one of the a#oe )ns #
IBM Aptitude Test Paper 2 1. In 1978, a kg of paper was sold at Rs25/-. I f the paper rate increases at 1.5% ore than inflation rate which is of !.5% a "ear, then what wil #e the cost of a kg of paper after 2 "ears$ a29.12 29.72 &c '(.12 &d '2.!5 &e none of these 2. In ),*,+ are haing soe ar#les with each of the. ) has gi#en * and + the sae n#er of ar#les the" alread" hae to each of the. then, * gae + and ) the sae no. of ar#les the" hae, then + gae ) and * the sae no. of ar#les the" hae. )t the end ),*,and + hae eal no. of ar#les. &i If ,",0 are the ar#les initiall" with ),*,+ respectiel". then the no of ar#les * hae at the end &a 2&-"-0 &-"-0 etc. &iiIf the total no. of ar#les are 72, then the no. of ar#les with ) at the starting a. 2( #. '( c. '2 '. If a car starts fro ) towards * with soe elocit" de to soe pro#le in the engine after traelling '(k.If the car goes with /5 th of its actal elocit" the car reaches * 5in later to the actal tie. If the car engine fails ofter traelling 5k, the car reaches the destination * '!in late to the actal tie , what is the initial elocit" of car and what is the distance #etween ) and * in k ans 2( 1'(. . ) person has Rs 1((/- in his pocket, he can as 25 pencils or 15#ooks. 3e kept 15% of the one" for traelling epenses and prchased 5 pencils.4o how an" #ooks he can prchase with the reaining one". 5. ten estions on analogies. e haer carpenter * knife #tcher. !. 6he ales of shares ),* and + fro anar" to ne are as follows.* onth ) * + ) :;* <)R )=R <)> ?;
'( '5 5 ( 55 5(
!( !5 75 75 75 75
8( 85 !5 82 85 8(
i @ring this period which share has ndergone a flctation$ ii In which onth it is possi#le to #" * and + selling )$ iii In which onth the share ales are er" low$
i *" prchasing one share of ) and each of * and + in the #eginningof the period , to get a profit when this shares shold #e sold$ $ 7. In a copter institte 9 langages can taght. 6he odle is of ! onths dration and onl" si langages each of one onth can #e taght. In addition to that *)4I+ is alwa"s there and shold #e in first onth itself A word perfect is to #e taght in the preceeding week of word star. A :BR6R) can not #e taght ntil +B*)C is coarsed prior to that A *IB, :I:B neer #e taght in single odle langages are *)4I+, DBR@ 46)R, DBR@ =;R:;+6, :BR6R), +B*)C, *IB, :I:B, CB6?4, + i. Bf the following which odle is possi#le #ased on a#oe conditions. ii If word star is in 'rd onth , what cold #e in !th onth. iii If +B*)C is in the 2nd onth and *IB in !th onth are there in addition to the a#oe condition, :BR6R) will #e in which onth.
8. In a class , ecept 18 all are a#oe 5( "ears. 15 are #elow 5( "ears of age. how an" people are there a '( # '' c '! d none of these. 9. ) sare plot of soe si0e , at for corners eal sares of soe si0e are ct and is fored as open #o. If this open #o carries 128l of oil. Dhat is the si0e of the plate i.e. side a.17 #.1 c.1' 1(. In a sare , all the id points are oined. the inner sare is shaded. If the area of the sare is ), what is the shaded area$ 11. two estions on #asic angles i.e gien a circle, a few chords or diaeter is drawn etc 12. E&a,#F &aG#/2 /&a,#F a.# H&a,#F a# , if aF1, #F2 find i /&a,&E&a,#,H&a,# ii 1'. &A" F G"-" &H" F &G"/2 i &A"A&H" &A", which of the #elow ales of , " will satisf" this eation ii &aH#AHc &aA#HHc , what ales of a,#,c satisf" the a#oe.
1. *" sing the data gien #elow answer the following estions. *.tech <.sc <.) ale feale
2( 8( total !( soe thing siilar to that estion. i (% of feales are *.6echs ii 3alf of the stdents are either fro *.6echs of <.4cs iii ... i. what is the no. of feale *.techs ii.... dont ree#er this estion , st for an eaple this has #een gien .
5J. =41 pwd eport =41 reslts in a. "or priar" propt #eing "or crrent director" #. K K and secondar" propts #eing the crrent dir c. K K propt #eing "or hoe dir d. K K and secondar" propts #eing the hoe dir e. one of the a#oe. 8J. If "o t"pe in the coand nohp sort eplo"ees L list 2 L error ot and log off ,the net tie "o log in . the otpt will #e a. in a file called list and the error will de t"ped in a file error ot #. there will #e no file called list or error ot c. error will #e logged in a file called list and o/p will #e in error ot d. "o will not #e allowed to log in e. none of the a#oe 7J. In ?IM a files i-node ais a data strctre that defines all specifications of a file like the file si0e ,n#er of lines to a file ,perissions etc. #.---c. - - - -d. N N N & ans is ---------&a J. 6he ?IM shell is.... a.does not coe with the rest of the s"ste #.fors the interface #etween the ser and the kernal c does not gie an" scope for prograing d deos not allow calling one progra fro with in another e all of the a#oe &ans is 8J.en n#er O aF-1, #F ,c,d,eP what is the ale of e $
7,,5,15,' &ans is 7 check again
'J.6he er" first process created #" the kernal that rns till the kernal process is ha ltes is ainit #gett" c d enone &)ns is a 7 J Reslt of the following progra is ain& O int iF(Q for&iF(Qi2(QiGG O switch&i case (iGF5Q case 1iGF2Q case 5iGF5Q defalt iGFQ #reakQP printf&K%d,K,iQ P P a(,5,9,1',17 #5,9,1',17 c12,17,22 d1!,21 es"nta error &)ns is d 1 J Dhat is the reslt ain& O char cF-!Q int iF-'2 nsigned int F-1!Q if&cLiO printf&Kpass1,KQ if&c and LL a do the sae fnction # differ L oerwrites, while LL appends c differ L is sed for inpt while LL is sed for otpt d differ L write to an" file while LL write onl" to standard otpt e one of these )ns #
5( 6he coand grep first second third /sr/"o/"file a prints lines containing the words first, second or third fro the file /sr/"o/"file # searches for lines containing the pattern first in the files second, third, and /sr/"o/"file and prints the c searches the files /sr/"o/"fiel and third for lines containing the words first or second and prints the d replaces the word first with the word second in the files third and /sr/"o/"file e one of the a#oe )ns #
IBM Aptitude Test Paper 1. Speed of boat in still water is 10kmph..if it travels 24km downstream,16km upstream in the same amount of time,what is the speed of the stream? (a)kmph (b).!kmph (")2kmph (d)... 2. # "ube of units is painted on all sides. $f this "ube is divided into "ubes of 1 unit,how man% "ube have none of their fa"es painted? (a)... (b)2 (")1 (d)0 (e)none of these . $f a person sells a produ"t for rs141&' he suffers a loss of 6.if he has to have a profit of 10, at what pri"e should he sell it? (a) (b)rs.1! (").. (d)rs.16! ans. rs.16! (i think,"he"k) 4. # ball falls from a hei*ht of +ft ,boun"es ba"k to half the distan"e "ontinues till it "omes to rest. what is the total distan"e travelled b% the ball? (a)24ft (b)... (")infinite (d)"annot be determined ans-(a) !. hi"h of the followin* is the sum of "onse"utive prime nos? (a)4/ (b)!/ (")both a b (d).... ans-" 6. $f the area of a suare has in"reased b% 6/,b% what has its side in"reased? . $n a "lass the avera*e a*e is 16%rs.if the tea"her who is 40 %rs of a*e is also in"luded ,the avera*e be"omes 1%rs,how man% students were there? +. $f houses are to be painted,mr # "an paint a house in 6 da%s(nos are not same)...mr "an do the same in + da%s... mr. in 12 da%s.if mr # does the work for + da%s leaves for va"ation, mr "ontinues the work for the ne3t 6 da%s, for how man% da%s should mr. work? ans-11 da%s("he"k) /. 4 thieves rob a baker% of the breadone after the other. ea"h thief takes half of what is present , half
a bread...if at the end bread remains,what is the no of bread that was present initialll%? ans-6("he"k) 10. $f the 1rst da% of 1/// is a sunda%,what is the last da%? (a)sunda% (b)monda% (").... (d)"annot be determined. 11. $f # driver drives a "ar four times a lap 10,20 0,60 kmph what is his avera*e speed.
ans-20kmph $n a *roup there are two kinds of people t%pe # t%pe .t%pe # people answer for an% uestion as 5S that of t%pe as 7.if the% "an not answer to these uestion then the% remain silent. the ma%or asks uestion to them as follows........ 12. $f he asks a person are u t%pe # a.5S b.7 ". Silent d.an not be determined 1. 8e asks two persons 9 simultaneousl% whether u of same t%pe a. 5S b. 7 ".5S or 7 d. Silent e. "an not be determined 14. :ointin* to a person 9 he asks what is his t%pe a. 5S b. o ". Silent d "an not be determined 1!. :ointin* to a person 9 he asks if $ ask him whether r u t%pe # ,will he answer 5S. sa%s 7 .what t%pe of is a. 5S b. 7 . ". Silent d. "an not be determined 16. Si3 suares of same dimension are kept side b% side to make a re"tan*le with a perimeter of 1+2 "m. what is the perimeter of ea"h suare. ans) !2. 1. 7ne student takes 20 mins to rea"h s"hool if he *oes at a speed of 1!kmph .#t what speed should he *o to rea"h in 1! mins ( nos are not same) ans- 16kmph( "he"k) 1+. 8ow man% rational numbers are there between 0 ! ans-infinite 1/. # "ertain number of bullets were shared b% people euall%.5a"h of them fired 4 bullets and the sum of the remainin* bullets was eual to the initial share ea"h had *ot.what was the initial number of bullets? ans-1+..( 1+&;6< 6'4;2,6'4;2,6'4;2<
2=2=2;6;ans) >e"hni"al20. # tri**er is (a) a statement ..start of database.. (b)statements that r e3e"uted as a side effe"t to the modifi"ation to the database (")... (d)... ans (b) 21. hat does the followin* statement mean? int (a)@4A (a)BaB is a pointer to an arra% of 4 inte*ers (b)BaB is an arra% of pointers to inte*er (")BaB is a pointer to fun"tion returnin* an inte*er (d)... ans-a 22. est method to find out whether a *iven arra% alread% sorted,is sorted or not in min. time ans. insertion sort ("he"k) 2. # primar% ke% in one table also present in some other table is "alled (a)forei*n ke% (b)se"ondar% ke% (")subordinate ke% (d)... ans. forei*n ke% 24. hi"h of the followin* is a real time s%stem? (a)roboti"s "ontrol (b)airline ti"ket reservation(ans) (") (d)... 2!. # uestion to "onvert a bi* no in de"imal to o"tal("he"k onl% for the last 2 nos in ans is suffi"ient) 26. hi"h of the followin* is an e3ample of a spoolin* devi"e? (a).. (b)line printer.. (") (d) (e)... 2. $f in a table-a""ount no,a""ount holders name,a""ount t%pe ,.....(somethin* else was *iven)are the fields,whi"h of them "ould be the primar% ke%? (a)a""ount no(ans) (b)a""ount holders name (")a""ount t%pe (d).. 2+. $f a file is opened in Cr=C mode(in ),it means (a) write (b)read (")... (d)..... 2/. hat is the differen"e between 12 and 012 in "?
(a)120 (b)40 (")0 (d)... ans-40 0. Software onfi*uration Dana*ement pro"ess is ' (a)developin* mana*in* software for .....software.... (b)developin* mana*in* hardware for....software....... (")... (d).. 1. Eata $nte*rit% "onstraint is (a)to ensure the presen"e of primar% ke% (b)... (")... (d)... 2. hi"h of the followin* uses the minimum len*th of "able? (a)rin* (b)star (")mesh (d)bus (e)all of the above 1. 8ow "an u append the ls and who to "ertain e3istin* file (like that)(i.e.listin* output of who is to be dire"ted to a file (a)ls
(b)man% to one (")one to man% (d)man% to man% +. H7D is (a)volatile (b)permanent fast (")devi"e "ontaini* boot up pro*ram is not a""essible (d)...
IBM Recruitment Test 1 1. In 1978, a kg of paper was sold at Rs25/- If the paper rate increases at 1.5% ore than the inflation rate which is !.5% a "ear, then what will #e the cost of a kg of paper after 2 "ears$a& 29.12 #& 29.72 c& '(.12 d& '2.!5 e& none of these 2. In ),*,+ are haing soe ar#les with each of the. ) has gien * and + the sae n#er of ar#les each of the alread" hae. hen, * gae + and ) the sae n#er of ar#les the" alread" hae.hen + gae ) and * the sae n#er of ar#les the" alread" hae.)t the end ),*,and + hae eal n#er of ar#les. i& If 0,", are the ar#les initiall" with ),*,+ respectiel". hen the n#er of ar#les * hae at the end a& 20-"-& #& 0-"-& c& 2'"-0-& d& 0 3 "- )ns. c& ii& If the total n#er of ar#les are 72, then the n#er of ar#les with ) at the starting a& 2( #& '( c& '2 d& '9 )ns. d& '. If a car starts fro ) towards * with soe elocit". 4e to soe pro#le in the engine after traelling '(k, the car goes with /5 th of its actal elocit" he car reaches * 5 in later to the actal tie.If the car engine fails ofter traelling 5k, the car reaches the destination * '!in late to the actal tie hat is the initial elocit" of car and what is the distance #etween ) and * in k
)ns. 2( 6 1'(. . ) person has Rs 1((/- in his pocket, he can as 25 pencils or 15 #ooks. e kept 15% of the one" for traelling e0penses and prchased 5 pencils. o how an" #ooks he can prchase with the reaining one". 5. en estions on analogies. eg chief tri#e goernor state epalette sholder tiara head gttral throat gastric stoach inept cleer langid actie knife #tcher haer carpenter !. he ales of shares in Rs&.of ), * and + fro :anar" to :ne are as follows. ;onth
)
:anar"
'( !( 8(
'5 !5 85
;arch
5 75 !5
)pril
( 75 82
;a"
55 75 85
:ne
5( 75 8(
i& ii& iii& i&
*
+
4ring this period which share has ndergone a0ii flctation$ In which onth it is possi#le to #" * and + selling )$ In which onth the share ales are er" low$ *" prchasing one share of ) and each of * and + in the #eginning of the period, when shodl these #e sold to get a0i profit$
7. In a copter institte 9 langages can #e taght. he odle is of ! onths dration and of the si0 langages onl" one can #e taght each onth . In addition to that *)I+ is alwa"s taght and shold #e in first onth itself •
•
•
=R4 >?R+ is to #e taght in the preceeding week of =R4 )R. <=RR)@ can not #e taght ntil +=*)A is taght prior to that *I@=,
Aangages are *)I+, =R4 )R, =R4 >?R+, <=RR)@, +=*)A, *I@=,
i& If word star is in 'rd onth , what cold #e in !th onth. ii& If +=*)A is in the 2nd onth and *I@= in !th onth. <=RR)@ will #e taght in which onth. 8. In a class, e0cept 18 all are a#oe 5( "ears.15 are #elow 5( "ears of age. ow an" people are there a& '( #& '' c& '! d& none of these. )ns. d& 9. ) sare plate of soe sie is ct at for corners. ?al sares of the sae sie are ct and is fored as open #o0.If this open #o0 carries 128 l of oil. hat is the sie of the side of the plate$ a& 17 #& 1 c& 1' d& @one of these 1(. In a sare, all the id points are Coined. he inner sare is shaded. If the area of the sare is ), what is the area of the shaded area$ 11. wo estions on #asic angles i.e gien a circle, a few chords or diaeter is drawn etc. 12. If the follwoing stateents are gien •
•
•
Da,#&E a3#&/2 /a,#&E a/# Fa,#&E a#
If aE1, #E2 then find i& /a,Da,#&,Fa,#&&& ii& F/a,DFa,#&&& 1'. If the follwoing stateents are gien •
•
0G"& E 0 3 "- 0" 0F"& E 0 3 "&/2
i&
1 reslts in>1 pwd&
a& priar" propt #eing "or crrent director" #& priar" propt and secondar" propts #eing the crrent director" c& priar" propt propt #eing "or hoe director" d& priar" propt and secondar" propts #eing the hoe director" e& @one of the a#oe. 15. If "o t"pe in the coan nohp sort eplo"ees list 2 error ot 6 and log off ,the ne0t tie "o log in, the otpt will #e a& in a file called list and the error will de t"ped in a file error ot #& there will #e no file called list or error ot c& error will #e logged in a file called list and o/p will #e in error ot d& "o will not #e allowed to log in e& none of the a#oe 1!. In B@IJ a files i-node ......$ )ns. Is a data strctre that defines all specifications of a file like the file sie, n#er of lines to a file, perissions etc. 17. he B@IJ shell .... a& does not coe with the rest of the s"ste #& fors the interface #etween the ser and the kernal c& does not gie an" scope for prograing d& deos not allow calling one progra fro with in another e& all of the a#oe )ns. #& 18. en n#er K aE -1, #E ,c,d,eL hat is the ale of e $ a& 7 #& c& 5 d& 15 e& ' 19. he er" first process created #" the kernal that rns till the kernal process is halts is a& init #& gett" c& #oth a& and #& d& none of these )ns. a& 2(. =tpt of the following progra is
ain& Kint iE(M foriE(MiH2(Mi33& Kswitchi& case (i3E5M case 1i3E2M case 5i3E5M defalt i3EM #reakML printfN%d,N,i&M L L a& (,5,9,1',17 #& 5,9,1',17 c& 12,17,22 d& 1!,21 e& "nta0 error
)ns. d& 21. hat is the optt in the following progra
ain& Kchar cE-!M int iE-'2 nsigned int E-1!M ifci& KprintfNpass1,N&M ifcH& printfNpass2N&M else printfNass1,>ass2 #& >ass1,ass2 d&
)ns. c& 22. In the process ta#le entr" for the kernel process, the process id ale is
a& ( #& 1 c& 2 d& 255 e& it does not hae a process ta#le entr" )ns. a& 2'. hich of the following )>I is sed to hide a window a& howindow #& ?na#leindow c& ;oeindow d& etindow>laceent e& @one of the a#oe )ns. a& 2. hat will the following progra do$
oid ain& K int iM char aOPENtringNM char FpEN@ew ringNM char FepM epEaM aEallocstrlenp& 3 1&M strcp"a,p&M //Aine n#er9// p E allocstrlenep& 3 1&M strcp"p,ep&M printfN%s, %s&N,a,p&M freep&M freea&M L //Aine n#er 15// a& wap contents of p 6 a and print@ew string, string& #& Qenerate copilation error in line n#er 8 c& Qenerate copilation error in line n#er 5 d& Qenerate copilation error in line n#er 7 e& Qenerate copilation error in line n#er 1
)ns. #& 25. In the following code segent what will #e the reslt of the fnction,ale of 0 , ale of " Knsigned int 0E-1M int "M " E (M if0 EE "& printfNsaeN&M
else printfNnot saeN&M L a& sae, ;)JI@, -1 #& not sae, ;)JI@, -;)JI@ c& sae , ;)JB@I, -1 d& sae, ;)JB@I, ;)JB@I e& not sae, ;)JI@, ;)JB@I
)ns. a& 2!. >) E /#in /sr /"orhoe he file /#in/calender has the following line in it cal 1( 1997he file /"orhoe/calender has the following line in it cal 5 1997 If the crrent director" is /"orhoe and calender is e0ected a& he calendar for ;a" 1997 will #e printed on screen #& he calendar for =ct 1997 will #e printed on screen c& he calendar for the crrent onth whateer it is& will #e printed d& @othing will get printed on screen e& )n error assage will #e printed 27. hat will #e the reslt of the following progra $ char Fg000& Kstatic char 000O1(2PM retrn 000M L
ain& Kchar FgENstringNM strcp"g000&,g&M g E g000&M strcp"g,NoldstringN&M printfNhe string is %sN,g000&&M L a& he string is string #& he string is =ldstring c& Rn tie error/+ore dp d& "nta0 error dring copilation e& @one of these
)ns. #& 28. hat will #e reslt of the following progra$
oid "allocchar F0, int n& K0E char F&allocnFsieofchar&&M eset0,S(,nFsieofchar&&M L ain& Kchar FgENtringNM "allocg,2(&M strcp"g,N=ldstringN&M printfNhe string is %sN,g&M L
a& he string is tring #& Rn tie error/+ore dp c& he string is =ldstring d& "nta0 error dring copilation e& @one of these 29. hich of the following fnction is sed to repaint a window iediatel"a& endessagehnd,;T>)I@t,......& #& InalidateRect.......& c& ;oeindow d& ;T+=>U e& @one '(. hich fnction is the entr" point for a 4AA in ; indows '.1 a& ;ain #& inain c& 4llain d& Ai#ain e& @one )ns. #& '1. he standard sorce for standard inpt, standard otpt and standard error is a& the terinal #& /de/nll c& /sr/"o/inpt, /sr/"o/otpt/, /sr/"o/error respectiel" d& @one )ns. a& '2. hat will #e the reslt of the following progra$
ain& Kchar pOPENtringNM int 0E(M ifpEENtringN& KprintfN>ass 1N&M
ifpOsieofp&-2PEEVgV& printfN>ass 2N&M else printfNass 2N&M else printfNass 1, >ass 2 #& ass 1, ass 2 e& s"nta0 error dring copilation
''. hich of the choices is tre for the entioned declaration $ const char FpM char F const pM
and
a& Uo canVt change the character in #oth #&
prints the d& replaces the word first with the word second in the files third and /sr/"o/"file e& @one of the a#oe )ns. #&
IBM Recruitment Test 2 Aptitude 1. Speed of boat in still water is 10kmph..if it travels 24km downstream,16km upstream in the same amount of time,what is the speed of the stream? (a!kmph (b!."kmph (#2kmph (d... 2. A #ube of ! units is painted on all sides.$f this #ube is divided into #ubes of 1 unit,how man% #ube have none of their fa#es painted? (a... (b2 (#1 (d0 (enone of these !. $f a person sells a produ#t for rs141&' he suffers a loss of 6.if he has to have a profit of 10, at what pri#e should he sell it? (a (brs.1)" (#.. (drs.16" ans.rs.16" (i think,#he#k 4. A ball falls from a hei*ht of +ft ,boun#es ba#k to half the distan#e #ontinues till it #omes to rest. what is the total distan#e travelled b% the ball? (a24ft (b... (#infinite (d#annot be determined ans-(a ". hi#h of the followin* is the sum of ! #onse#utive prime nos? (a4/ (b"/ (#both a b (d.... ans-# 6. $f the area of a suare has in#reased b% 6/,b% what has its side in#reased? ). $n a #lass the avera*e a*e is 16%rs.if the tea#her who is 40 %rs of a*e is also in#luded ,the avera*e be#omes 1)%rs,how man% students were there? +. $f ! houses are to be painted,mr A #an paint a house in 6 da%s(nos are not same...mr #an do the same in + da%s... mr. in 12 da%s.if mr A does the work for + da%s leaves for va#ation, mr #ontinues the work for the ne3t 6 da%s, for how man% da%s should mr. work?
ans-11 da%s(#he#k /. 4 thieves rob a baker% of the breadone after the other.ea#h thief takes half of what is present , half a bread...if at the end ! bread remains,what is the no of bread that was present initialll%? ans-6!(#he#k 10. $f the 1rst da% of 1/// is a sunda%,what is the last da%? (asunda% (bmonda% (#.... (d#annot be determined. 11. $f A driver drives a #ar four times a lap 10,20 !0,60 kmph what is his avera*e speed.
ans-20kmph $n a *roup there are two kinds of people t%pe A t%pe .t%pe A people answer for an% uestion as 5S that of t%pe as 7.if the% #an not answer to these uestion then the% remain silent. the ma%or asks uestion to them as follows........ 12. $f he asks a person are u t%pe A a.5S b.7 #. Silent d.an not be determined 1!. 8e asks two persons 9 simultaneousl% whether u of same t%pe a. 5S b. 7 #.5S or 7 d. Silent e. #an not be determined 14. :ointin* to a person 9 he asks what is his t%pe a. 5S b. o #. Silent d #an not be determined 1". :ointin* to a person 9 he asks if $ ask him whether r u t%pe A ,will he answer 5S. sa%s 7 .what t%pe of is a. 5S b. 7 . #. Silent d. #an not be determined 16. Si3 suares of same dimension are kept side b% side to make a re#tan*le with a perimeter of 1+2 #m. what is the perimeter of ea#h suare. ans "2. 1). 7ne student takes 20 mins to rea#h s#hool if he *oes at a speed of 1"kmph .At what speed should he *o to rea#h in 1" mins ( nos are not same ans- 16kmph( #he#k 1+. 8ow man% rational numbers are there between 0 " ans-infinite 1/. A #ertain number of bullets were shared b% ! people euall%.5a#h of them fired 4 bullets and the sum of the remainin* bullets was eual to the initial share ea#h had *ot.what was the initial number of bullets?
ans-1+..( 1+&!;6< 6'4;2,6'4;2,6'4;2< 2=2=2;6;ans >e#hni#al20. A tri**er is (a a statement ..start of database.. (bstatements that r e3e#uted as a side effe#t to the modifi#ation to the database (#... (d... ans (b 21. hat does the followin* statement mean? int (a@4 (aBaB is a pointer to an arra% of 4 inte*ers (bBaB is an arra% of pointers to inte*er (#BaB is a pointer to fun#tion returnin* an inte*er (d... ans-a 22. est method to find out whether a *iven arra% alread% sorted,is sorted or not in min. time ans. insertion sort (#he#k 2!. A primar% ke% in one table also present in some other table is #alled (aforei*n ke% (bse#ondar% ke% (#subordinate ke% (d... ans. forei*n ke% 24. hi#h of the followin* is a real time s%stem? (aroboti#s #ontrol (bairline ti#ket reservation(ans (# (d... 2". A uestion to #onvert a bi* no in de#imal to o#tal(#he#k onl% for the last 2 nos in ans is suffi#ient 26. hi#h of the followin* is an e3ample of a spoolin* devi#e? (a.. (bline printer.. (# (d (e... 2). $f in a table-a##ount no,a##ount holders name,a##ount t%pe ,.....(somethin* else was *ivenare the fields,whi#h of them #ould be the primar% ke%? (aa##ount no(ans (ba##ount holders name (#a##ount t%pe (d.. 2+. $f a file is opened in Cr=C mode(in ,it means (a write (bread (#...
(d..... 2/. hat is the differen#e between 12! and 012! in #? (a120 (b40 (#0 (d... ans-40 !0. Software onfi*uration Dana*ement pro#ess is ' (adevelopin* mana*in* software for .....software.... (bdevelopin* mana*in* hardware for....software....... (#... (d.. !1. Eata $nte*rit% #onstraint is (ato ensure the presen#e of primar% ke% (b... (#... (d... !2. hi#h of the followin* uses the minimum len*th of #able? (arin* (bstar (#mesh (dbus (eall of the above !1. 8ow #an u append the ls and who to #ertain e3istin* file (like that(i.e.listin* output of who is to be dire#ted to a file (als
(bman% to one (#one to man% (dman% to man% !+. H7D is (avolatile (bpermanent fast (#devi#e #ontaini* boot up pro*ram is not a##essible (d...
IBM Recruitment Test 2
Aptitude
1. like 3 consecutive prime adds to some no what is that ans: both 49 and 59. 2. One persont travlled 4 laps with the speed of 1!2!4 " or 3# and $ kmph and what is the avera%e speed. ans: 2 "sure# 3 like one student takes 2 mins if he %o with speed 15kmph and at what speed he should %o to reach in 15 mins " nos are not same# ans: 1$kmph" but not sure# 4. &here are 2 t'pe of people %roup ('es( who alwa's sa's 'es " the' never sa' (no(# if the' are not sure about the' will remain sailent. and other %rou name (no( where the %roup of people alwa's sa' (no( if the' are not sure the'will remain silent. thats it now )uetions are 1. what will be the answer if i ask are u belon% to %roup ('es( options are: the' remain silent !sa' 'es! sa' no! either 'es or no! can(t be determined 2. *ame )uetion but if i ask are u belon% to %roup (no( answers for both above )uetions are not " not determined# 3. what will the other person sa' if ask are u belon% to %rou ('es( and etc here were 5 )uetions first 4 u can do it last one little bit tou%h. spend some time on this u can do it. 9. like from hei%ht of + mts on ball fell down and each time it bounces half the distnace back. so what will be the distance travelled ans: 24 "sure# like +,4,4,2,2,1,1,.5,.5, and etc .. answer is not 2 1.like $ cubes are arran%ed ad-acentla' and %iven the perimeter and aksed to find the perimeter of one cube. ans: if is the total perimeter then "/14#04 leads to the answer. but check it once u will be havin% plent' of time. answer is 52 "1304# 11. some data is %iven like this 1kmph in still water ship took some mins and downstream some ' mins in same time what is the stream value .... ") is not eat# ans: 3 "not sure# 12.*ome avera%e problem like 1$ students avera%e wei%ht and teacher -oins them .... ans: 23 "sure# do this
"1$,4#/",1# will %ive the value. 13. *ome probelm on s)uare like to increase area b' $9 b' what percent side should be incresed ans: s)uare root of 1$9 i.e 13 " not sure# 14. no of rational nos b/w and 5 ans: infinite 15. irst da' of 1999 is sunda' what da' is the last da' ans: monda' 1$.bullets probel some no of bullets are shared b' 3 people e)uall' . and each fired 4 bullets then the sum of remainin% bullets is e)ual to intiall' divsion value ans: 1+ "sure# 1. bread problem! one come and eat half no of breads and somthin%... ans: $3" check it# 1+. like A can do in $ da' and can do in + and can do in 12 da's but b left after workin% for $ da's for how man' no of da' A and shluld work ans: 11" i dont think so this is correct# 19. 6 %ive a -cl code with 7ro%rammer name: smith 8obname:A 8obclassc essa%e class a All messa%es are to be displaced code it in a 8;. A#
//A!smith!classc!messa%e classa!messa%e level"2!1#
#
//A!smith!classc!messa%e classa!messa%e level "
#
//A!smith!classc!messa%e classa!messa%e level"!1#
=#
none of these.
2. or a cobol pro%ram ove 5 to work>sd. A statement which sa's that the value of work>st is . perform 7ara1.
?????
7ara1. Add 3 to work>sd Add 2 to work>st 6f work>st @11 %o to main>para.
?????? %o to para1. hat would be the value of work>sdB a#
15
b#
1+
c#
1
d#
none
21. Civen 2 tables &1 and &2.
&1
&2
A
1
2
3
Dou make a )uer'
*E;E& 0 FO &1!&2.
hat is the no: of rows that are fetched frm this )uer'B a#
4
b#
5
c#
$
d#
9
22. ho is the data base mana%er of db2B a#
buffer re%ister
b#
runtime suprivisor
c#
=F
d#
Gone
23. Dou have a file with =6*7*HF! when u open the file in output mode a#
the records %et appended
b#
the records %ets overwritten
c#
the -ob abbends
d#
none of these
24. &o eclude some records while sortin% which parameter do we useB a#
O6&
b#
EI;J=E
c#
?.d#?.
25 Dou have a dataset &6E.OFK.O&++! u want to concatenate other datasets like&6E.OFK .8J;++!&6E.OFK.A7F++! &6E.OFK.AD++. how do u do thatB
a#//==name == =*G &6E.OFK.O&++! =6*7 *HF == =*G &6E.OFK.8J;++! =6*7 *HF == =*G &6E.OFK.A7F++! =6*7 *HF == =*G &6E.OFK.AD++! =6*7 *HF b#//==name == =*G &6E.OFK.8J;++! =6*7 *HF == =*G &6E.OFK.O&++! =6*7 *HF == =*G &6E.OFK.A7F++! =6*7 *HF == =*G &6E.OFK.AD++! =6*7 *HF c#//==name
== =*G &6E.OFK.A7F++! =6*7 *HF
== =*G &6E.OFK.8J;++! =6*7 *HF == =*G &6E.OFK.AD++! =6*7 *HF == =*G &6E.OFK.O&++! =6*7 *HF e#
none of these
2$. hen db2 entries are made while workin% in cics! the enteries should be made in a#
&&
b#
7&
c#
=&
d#
F&
2. ind the odd one out
a#
K*=*
b#
FF=*
c#
;=*
d#
7=*
2+. ull form of L&O 29. Muestion based on *K67 and OJG& parameter
&echnical
1. what is vector processin% 2. what is data inte%rit' ans: option a " like the ran%e of values is defined b' data inte%rit'# 3.which topolo%' takes minimum wirin% options: star!bus!rin% and complete etc ans: find it from network tet book " ma' be bus or rin%# 4.best sortin% if elements are alread' sorted ans: insertion sort"sure# 5.software confi%uration mana%ement >>>> ans: option a " but check it from *E tet book there are onl' 2 confusin% answers# $.6n network the packers are flowin% unnecessarl' what is the wa' to controlit and .... options: *G7!
.some octal no to decimal conversion for %iven octal no the last di%it was ans: the option a " the decimal last di%it was 1# +. >',1 is e)uivalant to ans: >'>1 "sure# because it is interpreted as >"',1# 9. in a student form what is the relationship b/w student and course ans: actuall' it is man' to one but the' specified in a student form so think and write. 1.which is correct to append the ouput of ls and who to some file . ans:"whoNls# "check it#
11.what is tri%%er in =* "know what it will do# 12.what happens when we open a file in r, mode like whether file will be created if it s not there can we write to file 13. what is FO ans: it contains boot up pro%ram and it is not accesible that was one answer and anothe option was it is non volatile " choose one amon% these 2# 14. what is int "0a#P4Q ans: pointer to an arra' of 4 inte%er "check it# 15. primar' ke' of anothe table is present and so on.......... ans: forei%n ke' 1$. what is the diffirenece b/w 123 and 123 in cB ans:4"sure# 1. which amon% the devices is spooled device 1+. if u %et error in adapter which device will u useB ans: contact electronics student. one of the option was voltometer.
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"+epr-d-,epr#/ main"# float 1,y2/ epry/ hello"epr#/ 3 ans. y1/ 7. time and work and days."easy 4uestions#. $. !56 fill litres and ) litres of oil in the car. ( pays s. $8 to !76. ow 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%8piy. 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 compleity."ans nlogn# 1$.white8bo testing. 19.postfi e:aluation ofA "!>6#<("!nsA !6>(<# 20.4uestion on catch8throw? c>> 21.main"# main"#/ 3 ans.stack o:erflow. 2%.main"# char a,b/ printf"-dddd-,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.
IBM Technical Test Paper
1. FLOP is the unit of – speed.
I)clock speed,
ii)frequency….i
ii)memory,
iv)processors
. m!in") # printf"$hello$)% m!in")% & ho' m!ny times it 'ill print( . comple*ity of he!p sort"!ns+o"nlon). -. 'h!t 'ill e the o/p( int m!in") # ch!r !,% printf"0dddd2,si3eof"456), si3eof"478LL6), si3eof"4!6), si3eof"m!in))% & 9. necessity of p!irty it"!ns+). :. ;'h!t is the o/p( <=>FI7> *y3"e*r)printf"0e*r?d2,e*r) m!in") # int *?%y?% *y3"*/y)% & @. simple question on r!ph A. simple question on sql B. files r there of si3e like :9-,CCC,-CCC,1CCC !rr!ne them !ccordin to there !ccess time 5ptitude"DOD5L9) 1C. unit diit of @E1@( 11.t'o tr!in comin to'!rds from dist - miles 'ith speed 1 miles/hr ,! fly r!ndomly flyin eet'een t'o tr!ins !t the speed of 1A miles/hr.ho' m!ny dist!nce covered y the fly efore 'ill collide("C,:……) 1.'h!t is the incre!se of volume of ! sphere if its r!dius incre!ses y 1C(