Sie sind auf Seite 1von 6

Here are the details of 2011 Kony Labs Placement Paper - I job in Kony 2011 Kony Labs Placement

Paper - I with Answers, Solutions Kony Labs Placment Paper - I:1. 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. b. c. d. Runtime error. 1.00000 Compile error 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 2. main() { char c; int i = 456; clrscr(); c = i; printf("%d", c); } a. b. c. d. 456 -456 random number none of the above

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

Ans: d) Lvalue required 4.

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

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

Ans: d) prints nothing, as condition x==0 is False 6. main() { int x=5; for(;x!=0;x--) { printf("x=%d\n", x--); } } a. b. c. d. 5, 4, 3, 2,1 4, 3, 2, 1, 0 5, 3, 1 none of the above

Ans: d) Infinite loop as x is decremented twice, it never be 0 and loop is going on & on 7. 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. 8. main() { { unsigned int printf("%d", } { unsigned int printf("%d", } } a. b. c. d.

bit=256; bit); bit=512; bit);

256, 256 512, 512 256, 512 Compile error

Ans: 256, 512, becoz these r different blocks, so declaration allowed 9. main() { int i; clrscr(); for(i=0;i<5;i++) { printf("%d\n", 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. 10. main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit = (bit >> (i - (i -1)))); } }

a. b. c. d.

512, 256, 128, 64, 32 256, 128, 64, 32, 16 128, 64, 32, 16, 8 64, 32, 16, 8, 4

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

Ans: d) bit's value is not changed 12. main() { if (!(1&&0)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. b. c. d. OK I am OK I am compile none of done gone error the above

Ans: a) 13. When a bicycle is in motion, the force of friction exerted by the ground on the two wheels is such that it acts (a) In the backward direction on the front wheel and in the forward direction on the rear wheel. (b) In the forward direction on the front wheel and in the backward direction on the rear wheel. (c) In the backward direction on both the front and rear wheels. (d) In the backward direction on both the front and rear wheels. Ans. (d) 14. A certain radioactive element A, has a half life = t seconds.In (t/2) second s the fraction of the initial quantity of the element so far decayed is nearly

(a) 29% (b) 15% (c) 10% (d) 45% Ans. (a) 15. Which of the following plots would be a straight line ? (a) (b) (c) (d) Logarithm of decay Logarithm of decay Decay rate against Number of decaying rate against logarithm of time rate against logarithm of number of decaying nuclei time nuclei against time

Ans. (b) 16. A radioactive element x has an atomic number of 100.It decays directly into an element y which decays directly into element z. In both processes a charged p article is emitted. Which of the following statements would be true? (a) (b) (c) (d) y y z z has has has has an an an an atomic atomic atomic atomic number number number number of of of of 102 101 100 101

Ans. (b) 17. If the sum of the roots of the equation ax2 + bx + c=0 is equal to the sum o f the squares of their reciprocals then a/c, b/a, c/b are in (a) (b) (c) (d) AP GP HP None of these

Ans. (c) 18. A man speaks the truth 3 out of 4 times. He throws a die and reports it to b e a 6. What is the probability of it being a 6? (a) (b) (c) (d) 3/8 5/8 3/4 None of the above

Ans. (a) 19. If cos2A + cos2B + cos2C = 1 then ABC is a (a) (b) (c) (d) Right angle triangle Equilateral triangle All the angles are acute None of these

Ans. (a) 20. Image of point (3,Cool in the line x + 3y = 7 is (a) (-1,-4) (b) (-1,4) (c) (2,-4)

(d) (-2,-4) Ans. (a) 21. What is the product of the irrational roots of the equation (2x-1)(2x-3)(2x5)(2x-7)=9? (a) (b) (c) (d) 3/2 4 3 3/4

Ans. (a) 22. Which of the following parameters is the same for molecules of all gases at a given temperature? (a) (b) (c) (d) Mass Momentum Speed Kinetic energy

Ans. (d) 23. A solid is completely immersed in liquid. The force exerted by the liquid on the solid will (a) (b) (c) (d) Increase if it is pushed deeper inside the liquid Change if its orientation is changed Decrease if it is taken partially out of the liquid None of the above

Ans. (c) 24. Select the correct statements (a) (b) (c) (d) A simple harmonic motion is necessarily periodic An oscillatory motion is necessarily periodic A periodic motion is necessarily oscillatory All of the above

Ans. (a) 25. An electron is injected into a region of uniform magnetic flux density with the components of velocity parallel to and normal to the flux. What is the path of the electron? (a) (b) (c) (d) Helix Parabola Circle Rectangle

Ans. (a)

Das könnte Ihnen auch gefallen