Thursday, January 3, 2008

IBM Placement Paper 2

Keep a watch on for more it companies and other placement papers
IBM 2006
Total time: 40 min
English Comprehension: 5 marks
Aptitude: 20 marks
C language: 15 marks

1. Out of 30 members, 9 are wearing shoes but not caps and 18 are wearing shoes, how many members are wearing only caps?
Ans: 12

2. Introducing a man a woman said “His wife is only daughter of my father”, how was that man related to that woman.
Ans: Husband

3. ABCD are four corners of square, if BD is diagonal. In how many ways we can travel from A to C.
Ans: 4

4. If a is an integer then the true statement is, a^2+a+1 is?
Ans: Odd

5. You are in a 400 meter race and you overtake last person, what position you are in?
(a) last but one (b) first but one (c) cannot overtake (d) unpredictable

6. Flowers problem ,Key words 4 members, collecting different flowers
Ans: 344,142

1. int a[3][2][2] = {1,2,3,4,5,6,7,8,9,10,11,12};
Printf (“%d”, a [2][1][0]);
(a) 9 (b) 10 (c) 11 (d) 12

2. 2D array elements are stored in,
(a) Column major order
(b) Row major order
(c) Both

3. A Graph is called ____________ Graph if each edge is identified by an order pair
(a) directed
(b) undirected
(c) connected

4. Prototype of function consists of _______
Ans: all of the above

5. ____ is not a logical operator
(a) &
(b) &&
(c) !
(d) none
Ans: &

6. Which of the following statement is correct?
Ans: strcmp (s1,s2) returns 0 if s1==s2

7. How many times the program will print “hari”?
(a) Infinite number of times
(b) till the time stack doesn’t overflow

8. A character array, char a []= “ Have a nice day”; p is pointer to that, containing base address the p+=7 points to
(a) a
(b) e
(c) n
Ans: n

9. void main()
Printf”(%d”, main);
This program exists?
(a) yes
(b) no
Ans: yes

No comments: