11. Declaration of a pointer reserves memory space
Correct answer: (B)
for the pointer.
12. Exception handling is targeted at
Correct answer: (A)
Run-time error
13. for (; ;)
Correct answer: (C)
will loop forever
14. Given a class named Book, which of the following is not a valid constructor?
Correct answer: (B)
Book ( Book b) { }
15. Identify the operator that is NOT used with pointers
Correct answer: (D)
>>
16. If a class C is derived from class B, which is derived from class A, all through public inheritance, then a class C member function can access
Correct answer: (D)
protected data in A and B.
17. If an array is declared as int a[4] = {3, 0, 1, 2}, then values assigned to a[0] & a[4] will be _________
Correct answer: (C)
3, 0
18. If the variable count exceeds 100, a single statement that prints 'Too many' is
Correct answer: (C)
if (count>100) cout << 'Too many';
19. If we create a file by ,ifstream', then the default mode of the file is _________
Correct answer: (B)
ios :: in
20. If x = 5, y = 2 then x ^ y equals_________. (where ^ is a bitwise XOR operator)
Correct answer: (A)
111