Vous êtes sur la page 1sur 42

HCL Placement Paper - I:1. A merchant sells an item at a 20 percent discount.

but still makes a gross profit of 20 percent of the cost. What percent of cost would be gross profit on the item have been if it had been sold without the discount? (A) 20% (B) 40% (C) 50% (D) 60% (E) 66.6% Ans :c) 50% 2. A millionaire bought a job lot of hats 1/4 of which were brown. The millionaire sold 2/3 of the hats including 4/5 of the brown hats. What fraction of the unsold hats were brown. (A)1/60 (B)1/15 (C)3/20 (D)3/5 (E)3/4 Answer :c)3/20 3. How many integers n greater than and less than 100 are there such that, if the digits of n are reversed, the resulting integer is n+9 ? (A)5 (B)6 (C)7 (D)8 (E)9 Answer :D)8 4. An investor purchased a shares of stock at a certain price. If the stock increased in price Rs 0.25 per share and the total increase for the x shares was Rs 12.50, how many shares of stock had been purchased ? (A)25 (B)50 (C)75 (D)100 (E)125 Answer :B)50 5. At a special sale, 5 tickets can be purchased for the price of 3 tickets. If 5 tickets are purchased at the sale, the amount saved will be what percent of the original price of the 5 tickets? (A)20% (B)33.3% (C)40% (D)60% (E)66.6% Answer :c)40% 6. Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina works independently at the job for 8 hours and then Ann works independently, how many hours will it take Ann to complete the remainder of the jobs? (A)2/3 (B)3/4 (C)1 (D)2 (E)3 Ans :E)3 7. A decorator bought a bolt of d m number of red chips in any one stack ? (A)7 (B)6 (C)5 (D)4 (E)3 Answer :C) 5 8. HCL prototyping machine can make 10 copies every 4 seconds. At this rate, How many copies can the machine make in 6 min.? a) 900

b) 600 c) 360 d) 240 e) 150 Ans: a 9. if a=2,b=4,c=5 then a+b c c a+b a) 1 b) 11/30 c) 0 d) -11/30 e) -1 ans: b 10. 10^2(10^8+10^8) =10^4 a) 2(10)^4 b) 2(10)^6 c) 10^8 d) 2(10)^8 e) 10^10 Ans: b 11. Worker W produces n units in 5 hours. Workers V and W, workers independently but at the same time, produce n units in 2 hours. how long would it take V alone to produce n units? a) 1 hr 26 min b) 1 hr 53 min c) 2 hr 30 min d) 3 hr 30 min e) 3 hr 20 min Ans: d (e) 12. if q <> 0 and k = qr/2 -s, then what is r in terms of k,q,s? a) 2k+s q b) 2sk q c) 2(k-s) q d) 2k+sq q e) 2(k+s) q Ans: e 13. How many of the integers between 25 and 45 are even ?

(A)21 (B)20 (C)11 (D)10 (E)9 Ans:d)10 14. If taxi fares were Rs 1.00 for the first 1/5 mile and Rs 0.20 for each 1/5 miles thereafter. The taxi fare for a 3-mile ride was (A)Rs 1.56 (B)Rs 2.40 (C)RS 3.00 (D)Rs 3.80 (E)Rs 4.20 Answer :d)Rs 3.80 15. A computer routine was developed to generate two numbers (x,y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first. Each of the following pair satisfies the routine EXCEPT (A) (99.10) (B) (85.9) (C) (50.7) (D) (1.1) (E) (1.0) Answer : A) (99.10) 16. A warehouse had a square floor with area 10,000 sq.meters. A rectangular addition was built along one entire side of the warehouse that increased the floor by one-half as much as the original floor. How many meters did the addition extend beyond the original buildings ? (A)10 (B)20 (C)50 (D)200 (E)500 Ans: c)50 17. A digital wristwatch was set accurately at 8.30 a.m and then lost 2 seconds every 5 minutes. What time was indicated on the watch at 6.30 p.m of the same day if the watch operated continuously that time ?

(A)5:56 (B)5:58 (C)6.00 (D)6.23 (E)6.26 Ans :E) 6.26 18. A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water, approximately what percent of the resulting solution in the jug is salt? (A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15% Ans :A)7.5% 19. A merchant sells an item at a 20 percent discount. but still makes a gross profit of 20 percent of the cost. What percent of cost would be gross profit on the item have been if it had been sold without the discount? (A)20% (B)40% (C)50% (D)60% (E)66.6% Ansr :c) 50% 20. A millionaire bought a job lot of hats 1/4 of which were brown. The millionaire sold 2/3 of the hats including 4/5 of the brown hats. What fraction of the unsold hats were brown. (A)1/60 (B)1/15 (C)3/20 (D)3/5 (E)3/4 Ans :c)3/20 21. How many integers n greater than and less than 100 are there such that,if the digits of n are reversed, the resulting integer is n+9 ? (A)5 (B)6 (C)7

(D)8 (E)9 Ans :D)8

HCL Placement Paper - II:1. int x=5; y= x&y Multiple Choice Questions: Ans : c 2. Y=10; if( Y++>9 && Y++!=10 && Y++>10) printf("........ Y); else printf("".... ) Ans : 13

3. f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error d) ........ Ans : a

4. if x is even, then (x%2)=0 x &1 !=1 x! ( some stuff is there) a)only two are correct b) three are correct c), d) .... Ans : all are correct 5. which of the function operator cannot be over loaded a) <= b)?: c)== d)* Ans: b and d 6. How many of the integers between 25 and 45 are even ?

(A)21 (B)20 (C)11 (D)10 (E)9 Ans:d)10 7. If taxi fares were Rs 1.00 for the first 1/5 mile and Rs 0.20 for each 1/5 miles thereafter. The taxi fare for a 3-mile ride was (A)Rs 1.56 (B)Rs 2.40 (C)RS 3.00 (D)Rs 3.80 (E)Rs 4.20 Answer :d)Rs 3.80 8. A computer routine was developed to generate two numbers (x,y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first. Each of the following pair satisfies the routine EXCEPT (A) (99.10) (B) (85.9) (C) (50.7) (D) (1.1) (E) (1.0) Answer : A) (99.10) 9. A warehouse had a square floor with area 10,000 sq.meters. A rectangular addition was built along one entire side of the warehouse that increased the floor by one-half as much as the original floor. How many meters did the addition extend beyond the original buildings ? (A)10 (B)20 (C)50 (D)200 (E)500 Ans: c)50 10. A digital wristwatch was set accurately at 8.30 a.m and then lost 2 seconds every 5 minutes. What time was indicated on the watch at 6.30 p.m of the same day if the watch operated continuously that time ? (A)5:56

(B)5:58 (C)6.00 (D)6.23 (E)6.26 Ans :E) 6.26 11. A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water, approximately what percent of the resulting solution in the jug is salt? (A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15% Ans :A)7.5% 12. A merchant sells an item at a 20 percent discount. but still makes a gross profit of 20 percent of the cost. What percent of cost would be gross profit on the item have been if it had been sold without the discount? (A)20% (B)40% (C)50% (D)60% (E)66.6% Ansr :c) 50% 13. A millionaire bought a job lot of hats 1/4 of which were brown. The millionaire sold 2/3 of the hats including 4/5 of the brown hats. What fraction of the unsold hats were brown. (A)1/60 (B)1/15 (C)3/20 (D)3/5 (E)3/4 Ans :c)3/20 14. How many integers n greater than and less than 100 are there such that,if the digits of n are reversed, the resulting integer is n+9 ? (A)5 (B)6 (C)7 (D)8 (E)9

Ans :D)8 15. An investor purchased a shares of stock at a certain price.If the stock increased in price Rs 0.25 per share and the total increase for the x shares was Rs 12.50, how many shares of stock had been purchased ? (A)25 (B)50 (C)75 (D)100 (E)125 Ans :B)50 16. At a special sale, 5 tickets can be purchased for the price of 3 tickets. If 5 tickets are purchased at the sale, the amount saved will be What percent of the original price of the 5 tickets? (A) 20% (B) 33.3% (C) 40% (D) 60% (E) 66.6% Ans :c)40% 17. Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann works independently, how many hours will it take Ann to complete the remainder of the jobs? (A) 2/3 (B) 3/4 (C) 1 (D) 2 (E) 3 Ans :E)3 18. A decorator bought a bolt of d m number of red chips in any one stack ? (A) 7 (B) 6 (C) 5 (D) 4 (E) 3 Ans :C) 5 19. A sink has 12 lits of water some quantity of water is taken out. if the remainng water is 6 litres less then the water taken out then quantity of water taken out is.

a. 3 b. 6 c. 9 d. 1 20. which is the 4 digit number whose second digit is thrice the first digit and 3'rd digit is sum of 1'st and 2'nd and last digit is twice the second digit. 1.2674 2.1349. 3.3343 4.3678 21. In a straight highway 2 cars starts from the same point in opposite directions each travels for 8 Kms and take left turn then travel for 6 Kms what is the distance between them now. 1.16 2.20 3.25 4.10

3. Lucia is a wonderful grandmother. Her age is between 50 and 70.Each of her sons have as many sons as they have brothers. Their combined number gives Lucia?s age. What is the age? Ans: 64 4.There are two towers A and B. Their heights are 200ft and 150ft respectively and the foot of the towers are 250ft apart. Two birds on top of each tower fly down with the same speed and meet at the same instant on the ground to pick a grain. What is the distance between the foot of tower A and the grain? Ans:90ft 5.raju having some coins want to distribute to his 5 son , 5 daughter and driver in a manner that , he gave fist coin to driver and 1/5 of remaining to first son he again gave one to driver and 1/5 to 2nd son and so on.... at last he equally distributed all the coins to 5 daughters. how many coins raju initially have??? Ans:-881 6. There is a 5digit no. 3 pairs of sum is eleven each. Last digit is 3 times the first one. 3 rd digit is 3 less than the second.4 th digit is 4 more than the second one. Find the digit. Ans : 25296.

7.0, 2, 4, 6, 8, 12, 12, 20, 16, ____ Ans: 12 8. A tree on first day grows 1/2 of its size second day 1/3rd of its size on the previous day similarly than 1/4th and so on.u have to calculate after how many days the tree will be 100 times of its original size. Ans -198 days 9. A is an integer. Dividing 89 & 125 gives remainders 4 & 6 respectively. Find a ? Ans: 17 10. If there are 1024*1280 pixels on a screen and each pixel can have around 16 million colors Find the memory required for this? Ans. 4MB

1)Next number in the series 1, 1/2, 1/4, 1/8 ? a) 1/25 b) 1/16 c) 1/36 Answer is 1/16 2) In 6 seconds a light flashes once. In one hour how many times it will flash? a) 569 times b) 601 times c) 499 times Answer is 601 times 3) A clock is late by 1 minute 27 seconds in a month. Then how much will it be late in 1 day? a) 3.0 sec b) 2.9 sec c) 2.8 sec Answer is 2.9 sec 4) A ship started from port and moving with 'I' miles/hour and other ship started From L and moving with 'H' miles/hour . At the place where these two ships will meet?. a)( L*I*H)/(H+I) b)(L+I+H)/(H*I) c)(L/I/H)*(H/I)

Answer is ( L*I*H)/(H+I)

1.A boat takes 19 hrs for travelling downstream from point A to point B. and coming back to a point C midway between A and B. if the velocity of the sream is 4 kmph . and the speed of the boat in still water is 14 kmph. what is the distence between A and B? Sol: speed downstream =14 =18 kmph speed upstream = 14 -4 = 10 kmph let the distence between A and B be x km. then, x/18 (x/2)/10 = 19 x/18 x/20 =19 19x/180 =19 =>x = 180km Hence, the distence between A and B bw 180 km

Question 1 A man buys certain number of steel rods priced at Rs. 7 per rod for Rs. 120. He then sells them at a loss of 25%. What will be his loss amount for every 100 steel rods. a)Rs. 180 b)Rs.175 c)Rs.170 d)Rs.160

1) A millionaire bought a job lot of hats 1/4 of which were brown. The millionaire sold 2/3 of the hats including 4/5 of the brown hats. What fraction of the unsold hats were brown. a)1/60 b)1/15 c)3/20 d)3/5 e)3/4 Answer is 3/20 2) 10 in 4 seconds, ? in 6 minutes a)800 b)900 c)650 Answer is 900

3) Mohan earned twice as much as Deep.Yogesh earned rs.3/- more than half as much as deep. If the amounts earned by Mohan,Deep,Yogesh are M,D,Y respectively, Which of the following is the correct ordering of these amounts? a)M< D < Y b)M< Y < D c)D < M < Y d)It cann't be determined from the information given e)D < Y < M Answer is M< D < Y 4) At a special sale, 5 tickets can be purchased for the price of 3 tickets. If 5 tickets are purchased at the sale, the amount saved will be What percent of the original price of the 5 tickets? a)20% b)33.3% c)40% d)60% e)66.6% Answer is 40% 2) 1. How many of the integers between 25 and 45 are even ? (A)21 (B)20 (C)11 (D)10 (E)9 Ans:d)10 3) 2. If taxi fares were Rs 1.00 for the first 1/5 mile and Rs 0.20 for each 1/5 miles thereafter. The taxi fare for a 3-mile ride was (A)Rs 1.56 (B)Rs 2.40 (C)RS 3.00 (D)Rs 3.80 (E)Rs 4.20 Answer :d)Rs 3.80 4) 3. A computer routine was developed to generate two numbers (x,y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first. Each of the followin pair satisfies the routine EXCEPT (A) (99.10) (B) (85.9) (C) (50.7) (D) (1.1) (E) (1.0) Answer : A) (99.10) 5) 4. A warehouse had a square floor with area 10,000 sq.meters. A rectangular addition was built along one entire side of the warehouse that increased the floor by one-half as much as the original floor. How many meters did the addition extend beyond the original buildings ? (A)10 (B)20 (C)50 (D)200 (E)500 Ans: c)50

6) 5.

A digital wristwatch was set accurately at 8.30 a.m and then lost

2 seconds every 5 minutes. What time was indicated on the watch at 6.30 p.m of the same day if the watch operated continuously that time ? (A)5:56 B)5:58 (C)6.00 (D)6.23 (E)6.26 Ans :E) 6.26 7) 6. A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water, approximately what percent of the resulting solution in the jug is salt? (A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15% Ans :A)7.5% 8) 7. A plane travelled K miles in the first 96 miles of flight time. If it completed the remaining 300 miles of the trip in 1 minute, what was its average speed in miles per hour for the entire trip ? (A) (B) (C) (D) (E) Ans :(300+k)/97 * 60 9) 8. A merchant sells an item at a 20 percent discount. but still makes a gross profit of 20 percent of the cost.What percent of cost would be gross profit on the item have been if it had been sold without the discount? (A)20% (B)40% (C)50% (D)60% (E)66.6% Ansr :c) 50% 10) 9. A millionaire bought a job lot of hats 1/4 of which were brown. The millionaire sold 2/3 of the hats including 4/5 of the brown hats. What fraction of the unsold hats were brown. (A)1/60 (B)1/15 (C)3/20 (D)3/5 (E)3/4 Ans :c)3/20 11) 10. How many integers n greater than and less than 100 are there such that,if the digits of n are reversed, the resulting integer is n+9 ? (A)5 (B)6 (C)7 (D)8 (E)9 Ans :D)8 12) 11. An investor purchased a shares of stock at a certain price.If the stock increased in price Rs 0.25 per share and the total increase for the x shares was Rs 12.50, how many shares of stock had been purchased ?

(A)25

(B)50

(C)75

(D)100

(E)125

Ans :B)50 13) 12. At a special sale, 5 tickets can be purchased for the price of 3 tickets. If 5 tickets are purchased at the sale, the amount saved will be What percent of the original price of the 5 tickets? (A) 20% (B) 33.3% (C) 40% (D) 60% (E) 66.6 % Ans :c)40% 14) 13. Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann works independently, how many hours will it take Ann to complete the remainder of the jobs? (A) 2/3 (B) 3/4 (C) 1 (D) 2 (E) 3 Ans :E)3 15) 14. A decorator bought a bolt of d m number of red chips in any one stack ? (A) 7 (B) 6 (C) 5 (D) 4 (E) 3 Ans :C) 5 16) 15. A sink has 12 lits of water some quantity of water is taken out. if the remainng water is 6 litres less then the water taken out then quantity of water taken out is. a. 3 b. 6 c. 9 d. 1 17) 16. which is the 4 digit number whose second digit is thrice the first digit and 3'rd digit is sum of 1'st and 2'nd and last digit is twice the second digit. 1.2674 2.1349. 3.3343 4.3678 18) 17. In a straight highway 2 cars starts from the same point in opposite directions each travels for 8 Kms and takeleft turn then travel for 6 Kms what is the distance between them now. 1.16 2.20

3.25 4.10 19) HCL Aptitude.TEST 20) 21) 1. a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c Ans. 11/30 22) 2. What does the hexa number E78 in radix 7. (a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 Ans. (d) 23) 3. What does the hexa number E78 in radix 7. (a) 12455 (b) 14153 (c) 14256 (d) 13541 (e) 131112 Ans. (d) 24) 4. Q is not equal to zero and k = (Q x n - s)/2.What is n? (a) (2 x k + s)/Q (b) (2 x s x k)/Q (c) (2 x k - s)/Q (d) (2 x k + s x Q)/Q (e) (k + s)/Q 25) 5. From the following statements determing the order of ranking M has double the amount as D Y has 3 rupess more than half the amount of D Ans. Data insuffiecient 26) Questions 6 - 10 are to be answered on the following data A causes B or C, but not both F occurs only if B occurs D occurs if B or C occurs E occurs only if C occurs J occurs only if E or F occurs D causes G,H or both

H occurs if E occurs G occurs if F occurs 27) 6. If A occurs which of the following must occurs I. F and G II. E and H III. D (a) I only (b) II only (c) III only (d) I,II, & III (e) I & II (or) II & III but not both Ans. (e) 28) 7. If B occurs which must occur (a) D (b) D and G (c) G and H (d) F and G (e) J Ans. (a) 29) 8. If J occurs which must have occured (a) E (b) either B or C (c) both E & F (d) B (e) both B & C Ans. (b) 30) 9. Which may occurs as a result of cause not mentioned I. D II. A III. F (a) I only (b) II only (c) I & II (d) II & III (e) I,II & III Ans. (c) 31) 10. E occurs which one cannot occurs (a) A

(b) F (c) D (d) C (e) J Ans. (b) 32) 11. A 5 litre jug contains 4 litres of a salt water solution that is 15 percent salt. If 1.5 litres of the solution spills out of the jug, and the jug is then filled to capacity with water,approximately what percent of the resulting solution in the jug is salt? (A)7.5% (B)9.5% (C) 10.5% (D)12% (E)15% 33) 12. Working independently, Tina can do a certain job in 12 hours. Working independently, Ann can do the same job in 9 hours. If Tina Works independently at the job for 8 hours and then Ann works independently, how many hours will it take Ann to complete the remainder of the jobs? (A)2/3 (B)3/4 (C)1 (D)2 (E)3 Answer :E)3 34) 13. In a murder case there are four suspects P,Q,R,S. Each of them makes a statement. They are p: "I had gone to the theatre with S at the time of the murder".q: "I was playing cards with P at the time of the murder".r: "Q didn't commit the murder".s: "R is not the murderer".Assuming the only one of the above statement is false and that one of them is the murderer, who is the murderer? a) P b) Q c) R d) Cann't be concluded e) S Ans: E 35) 14. Mohan earned twice as much as Deep. Yogesh earned rs.3/more than half as much as deep. If the amounts earned by Mohan,Deep,Yogesh are M,D,Y respectively, Which of the following is the correct ordering of these amounts? a) M < D < Y b) M< Y < D c) D< M < Y d) It cann't be determined from the information given e) D< Y < M

36) 15.

Statistics indicate that men drivers are involved in more accidents

than women drivers. Hence it may be concluded that a) sufficiently information is not there to conclude anything b) Men are actually better drivers but drive more frequently c) Women Certainly drive more cautiously than Men d) Men chauvinists are wrong about women's abilties. e) Statistics sometimes present a wrong picture of things 37) 16. Given that A,B,C,D,E each represent one of the digits between 1 and 9 and that the following multiplication holds: ABCDE X4 -------------EDCBA -------------what digit does E represent ? a) 4 b) 6 c) 8 d) 7 Ans: c 38) 17. HCL prototyping machine can make 10 copies every 4 seconds. At this rate, How many copies can the machine make in 6 min.? a) 900 b) 600 c) 360 d) 240 e) 150 Ans: a 39) 18. If a=2,b=4,c=5 then a+b c - ---- = c a+b a) 1 b) 11/30 c) 0 d) -11/30 e) -1 Ans: b

40) 19.

10^2(10^8+10^8) =-------------- 10^4

a) 2(10)^4 b) 2(10)^6 c) 10^8 d) 2(10)^8 e) 10^10 Ans: b 41) 20. Worker W produces n units in 5 hours. Workers V and W, workers independently but at the same time, produce n units in 2 hours.how long would it take V alone to produce n units? a) 1 hr 26 min b) 1 hr 53 min c) 2 hr 30 min d) 3 hr 30 min e) 3 hr 20 min Ans: d Six knights - P,Q,R,S,T and U - assemble for a long journey in Two ravelling parties. For security, each travellingparty Consists of at least two knights. The two parties travel by separate routes, northern and southern. After one month, the routes of the northern and southern groups converge for a brief time and at that point the knights can, if they wish, rearrange their travelling parties before continuing, again in two parties along separate northern and southern routes. Throughout the entire trip, the composition of traveling parties must be in accord with the following conditions P and R are deadly enemies and, although they may meet briefly,can never travel together. p must trave in the same party with sQ cann't travel by the southern route U cann't change 42) 21. If one of the two parties of knights consists of P and U and two other knights and travels by the southern route,the other members of this party besides P and U must be a) Q and S b) Q and T c) R and S d) R and T e) S and T Ans: e

43) 22.

If each of the two parties of knights consists of exactly three

members, which of the following is not a possible travelling party and route? a) P,S,U by the northern route b) P,S,T by the northern route c) P,S,T by the southern route d) P,S,U by the southern route e) Q,R,T by the southern route Ans: b 44) 23. If one of the two parties of knights consists of U and two other knights and travels by the northern route, the other memnbers of this party besides U must be a) P and S b) P and T c) Q and R d) Q and T e) R and T Ans: c 45) 24. If each of the two parties of knights consists of exactly three members of different parties, and R travels by the northern route,then T must travel by the a) southern route with P and S b) southern route with Q and R c) southern route with R and U d) northern route with Q and R e) northern route with R and U Ans: a 46) 25. If, when the two parties of knights encounter one another after a month, exactly one knight changes from one travelling party to the other travelling party, that knight must be a) P b) Q c) R d) S e) T Ans: e 47) 26. A gambler bets on the team of seven players ABCDEFG whose winning a-4 to 1 against b-4 to 1 against c-4 to 1 against d-4 to 1 against e-5 to 1 against f-6 to 1 against g. how should he bet on g to set 20% profit.

48) 27.

If a person buy radio worth Rs 2468 and pay 7% sales .how much

price of radio should reduce to pay only Rs 2468 49) 28. What is vasu salary if salary of vasu is more than rajan salary working in same company i)vasu salary is 100 more than rajan salary. ii)rajan found 2000 allowns which is 50 less than vasu. (iii)basic salry of rajan is 1000. (i)only i is required (ii)i & ii is required (iii)i& iii is required (iv)i&ii&iii is required (v)none of these 50) 29. If in 100 miles race 8 person is running winner take 9.8sec and fifth man takes 10.4 sec the time of 8 man is in AP if in 4*100 meters realy of onside is 1,4,5,8 position then win by. a).3 sec b).1 sec c).7 sec d).5 sec e)none 51) 30. How many sons X have qwe based on relation i) ii) iii) ans(data i,ii,iii is insufficient) 52) 31. A sink has 12 lits of water some quantity of water is taken out. if the remainng water is 6 litres less then thewater taken out then quantity of water taken out is. a.3 b.6 c.9 d.1 53) 32. which is the 4 digit number whose second digit is thrice the first digit and 3'rd digit is sum of 1'st and 2'nd and last digit is twice the second digit. 1.2674 2.1349. 3.3343 4.3678 54) 33. In a straight highway 2 cars starts from the same point in opposite directions each travels for 8 Kms and take left turn then travel for 6 Kms what is the distance between them now.

1.16 2.20 3.25 4.10

1) At University of Probability, there are 375 freshmen, 293 sophomores, 187 juniors, & 126 seniors. One student will randomly be chosen to receive an award. What percent chance is there that it will be a junior? Round to the nearest whole percent. Answer 19% 1) A man can row 5 kmph in still water. If the river is running at 1kmph, it takes him 75 minutes to row to a place and back. How far is the place? (i) 3km (ii) 2.5 km (iii) 4 km (iv) 5 km Solution: Read more HCL Solved placement Papers - averages - part 2 1) The average weight of a class of 30 students is 40 kgs. If the teacher's weight is included then average increases by 2 kgs. Find the weight of the teacher? a) 102 b) 100 c) 98 Answer is 102 Read more HCL Solved placement Papers - averages - part 1 1) Find the average height of five students with heights 142,147,153,165,157 in cms? a) 152 b) 152.2 c) 152.4 d) 152.8 Answer is 152.8

Question 1 If N is a whole number, then N2(N2 1) is always divisible by one of the following: a) 24 b) 12 c) 12- N d) none of these. Answer : b) 12

16:81. How much milk did the jar contained initially? a) 24 b) 81 c) 108 d) 27 Answer : d) 27 litres. Solution : Formula To Remember : In problems on mixtures, you often would use the below formula. Consider a vessel containing x litres of liquid from which y litres are replaced by water. After n such operations / replacements the quantity of liquid would be x (1 y/x)n litres. Let the quantity of milk originally that was present in the jar be x litres. Then, quantity of milk left in the jar after four operations = [ x ( 1 - 9/x)4] litres Ratio of left out milk after operations to the original quantity of milk = [ x ( 1 - 9/x)4] / x litres = [1 - 9/x]4litres. But the above ratio is given to be 16/81. Therefore, [1 - 9/x]4 = 16/81 = [2/3]4 (x - 9)/x = 2/3 x = 27 litres Question 2

Saravana Kumar Drinks shop has a jar filled with wine fully. In order to satisfy the customers the following procedure was adopted. 12 litres of wine is removed from the jar and filled with water. This process is repeated two more times. The ratio of left out wine after operations to the original quantity of wine present is 27/64. How much wine was there in the jar originally? a) 48 b) 27 c) 81 d) 40 Answer : a) 48 litres Solution : Let the quantity of wine in the jar initially be x litres. Then, quantity of wine left in the jar after three operations = [ x ( 1 - 12/x)3 ] litres Ratio of left out wine after operations to the original quantity of wine = [ x ( 1 - 12/x)3] / x litres = [1 - 12/x]3litres. [1 - 12/x]3 = 27/64 = [3/4]3 (x - 12)/x = 3/4 x = 48 litres Question 3 Bhairavi Hoteliers has a vessel filled with liquid, 4 parts of which is filled with water and 5 parts filled with milk. How much of the mixture must be drawn out and filled with water so that the mixture may contain half milk and half water? a) 1/9 b) 1/10 c) 3/10 d) 2/9 Answer : b) 1/10 Solution : Note : It is given that, initially, the liquid had 4 parts of water and 5 parts of milk. Adding gives 9 parts. For such problems, assuming the initial quantity to be multiple of sum of the parts of the two liquids will make the calculations much easier. In this case, let us assume the initial composite liquid (milk + water) quantity be 9 litres. ( One can also assume this to be 18,27,36 litres etc as each of these are multiples of 9) Suppose the vessel initially contained 9 litres of liquid. Therefore, there would be 4 litres of water and 5 litres of milk as per the question. Let x be the litres of liquid replaced with water. When x litres of composite liquid is removed, 4x/9 liters of water would had got removed and 5x/9 litres of milk would had got removed. (as the original ratio is given to be 4/5) Initial quantity of water in liquid = 4 Quantity of water removed = 4x / 9 Quantity of water in new mixture = [ 4 - 4x/9 + x] Note : we are adding x to the quantity of water in new mixture because

the entire new replacement (x) is completely water as well. Initial quantity of milk in liquid = 5 Quantity of milk removed = 5x/9 Quantity of milk in new mixture = [ 5 - 5x/9] Note : Here we are not adding x as entire replacement x is water and not milk. But it is given that quantity of milk in new mixture is same as that of water. Therefore, [ 4 - 4x/9 + x] = [ 5 - 5x /9] 36 - 4x + 9x = 45 m - 5x 36 + 5x = 45 - 5x 10x = 9 x = 9/10. Ratio of liquid that was removed = removed mixture volume / original mixture volume = (9/10) / 9 = 1/10

C Language

Q1. main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above

Ans: d,printf( ) prints address/garbage of i, scanf() dont hav & sign, so scans address for i +1, -1 dont hav any effect on code Q2. main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0;

} a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above

Ans: b) illegal syntax for using return Q3. main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf(" %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above

Ans: d) 0 Q4. main() { int i = 0xff ; printf(" %d", i<<2); } a. 4 b. 512 c. 1020

d. 1024

Ans: c) 1020

Q5. #define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above

Ans: b) 225

Q6. union u { struct st { int i : 4; int j : 4; int k : 4; int l; }st; int i; }u; main() { u.i = 100; printf("%d, %d, %d",u.i, u.st.i, u.st.l); }

a. 4, 4, 0 b. 0, 0, 0 c. 100, 4, 0 d. 40, 4, 0

Ans: c) 100, 4, 0 Q7. union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf(" %d", sizeof(u)); printf(" %d", sizeof(u.a)); // printf("%d", sizeof(u.a[4].i)); } a. 4, 4, 4 b. 40, 4, 4 c. 1, 100, 1 d. 40 400 4

Ans: 20, 200, error for 3rd printf Q8. main() { int (*functable[2])(char *format, ...) ={printf, scanf}; int i = 100; (*functable[0])("%d", i);

(*functable[1])("%d", i); (*functable[1])("%d", i); (*functable[0])("%d", &i); } a. 100, Runtime error. b. 100, Random number, Random number, Random number. c. Compile error d. 100, Random number

Q9. main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000

Ans: c) Error becoz i/(*p) is 25/25 i.e 1 which is int & printed as a float, So abnormal program termination, runs if (float) i/(*p) -----> Type Casting Q10. main() { int i, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } a. Runtime error.

b. 0, 0 c. Compile error d. the first two values entered by the user

Ans: d) two values entered, 3rd will be null pointer assignment Q11. main() { char *p = "hello world"; p[0] = 'H'; printf("%s", p); } a. Runtime error. b. "Hello world c. Compile error d. "hello world

Ans: b) Hello world Q12. main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O

Ans: c) I am OK is not in " "

Q13. How will you print % character? a. printf("\%) b. printf("\%) c. printf("%%) d. printf("\%%)

Ans: c) printf(" %% "); Q14. const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); } a. 0 b. 2 c. 4 d. none of the above

Ans: c) Q15. struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName);

} a. Your Name b. compile error c. Name d. Runtime error

Ans a) Q16. struct Foo { char *pName; char *pAddress; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); obj->pName = malloc(100); obj->pAddress = malloc(100); strcpy(obj->pName,"Your Name"); strcpy(obj->pAddress, "Your Address"); free(obj); printf("%s", obj->pName); printf("%s", obj->pAddress); } a. Your Name, Your Address b. Your Address, Your Address c. Your Name Your Name d. None of the above

Ans: d) printd Nothing, as after free(obj), no memory is there containing obj->pName & pbj->pAddress Q17. main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcat(a,b)); } a. Hello b. Hello World c. HelloWorld d. None of the above

Ans: b) Q18. main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. "Hello b. "Hello World c. "HelloWorld d. None of the above

Ans: d) World, copies World on a, overwrites Hello in a.

Q19. void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above

Ans: c) Q20. main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 b. 2, 100 c. 4, 100 d. 4, 4

Ans: a) 2, 2 Q21. main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above

Ans: a) 2 Q22. main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above

Ans: a) 1, if we use main|c then error, illegal use of pointer

Q23. main() {

char c; int i = 456; clrscr(); c = i; printf("%d", c); } a. 456 b. -456 c. random number d. none of the above

Ans: d) -56 Q24. void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a. 10, 10 b. 10, 9 c. 10, 11 d. none of the above

Ans: d) Lvalue required Q25. main() { int i =10, j = 20; clrscr();

printf("%d, %d, ", j-- , --i); printf("%d, %d ", j++ , ++i); } a. 20, 10, 20, 10 b. 20, 9, 20, 10 c. 20, 9, 19, 10 d. 19, 9, 20, 10

Ans: c) Q26. main() { int x=5; clrscr(); for(;x==0;x--) { printf("x=%d ", x--); } } a. 4, 3, 2, 1, 0 b. 1, 2, 3, 4, 5 c. 0, 1, 2, 3, 4 d. none of the above

Ans: d) prints nothing, as condition x==0 is False Q27 main() {

int x=5; for(;x!=0;x--) { printf("x=%d ", x--); } } a. 5, 4, 3, 2,1 b. 4, 3, 2, 1, 0 c. 5, 3, 1 d. none of the above

Ans: d) Infinite loop as x is decremented twice, it never be 0 and loop is going on & on Q28 main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. "3, -1, 1, 3, 5

Ans: prints nothing, as condition in loop is false. Q29.

main() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error

Ans: 256, 512, becoz these r different blocks, so declaration allowed Q30. main() { int i; clrscr(); for(i=0;i<5;i++) { printf("%d ", 1L << i); } } a. 5, 4, 3, 2, 1 b. 0, 1, 2, 3, 4 c. 0, 1, 2, 4, 8 d. 1, 2, 4, 8, 16

Ans: d) L does't make any diff. Q31. main()

{ signed int bit=512, i=5; for(;i;i--) { printf("%d ", bit = (bit >> (i - (i -1)))); } } a. 512, 256, 128, 64, 32 b. 256, 128, 64, 32, 16 c. 128, 64, 32, 16, 8 d. 64, 32, 16, 8, 4

Ans: b) Q32. main() { signed int bit=512, i=5; for(;i;i--) { printf("%d ", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256

Ans: d) bit's value is not changed Q33. main() {

if (!(1&&0)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

Ans: a) Q34 main() { if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

Ans: a)

Q35 main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513

Ans: d)

Vous aimerez peut-être aussi