Object Oriented Programming with C Plus Plus - Multiple Choice Questions -003

21. When a data type must contain decimal numbers, assign the ______ type.
A. int.
B. char.
C. double.
D. long int.
ANSWER: C
22. Set precision requires the header file _____.
A. stdlib.h.
B. iomanip.h.
C. console.h.
D. conio.h.
ANSWER: B
23. A structure defines a ________type.
A. class.
B. pointers.
C. arrays.
D. variables.
ANSWER: A
24. _____ are the variables that contain the address of other variables.
A. Function.
B. String.
C. Pointer.
D. Identifier.
ANSWER: C
25. _____ operator returns the address of the identifier.
A. &.
B. *.
C. &&.
D. !.
ANSWER: A
26. The ________ operator is used to return the value of the variable to which the pointer points.
A. reference.
B. dereference.
C. dot.
D. arrow.
ANSWER: B
27. C++ begins its execution with ____.
A. header file.
B. main.
C. class.
D. declaration.
ANSWER: B
28. main() is a______ function.
A. built in.
B. user defined.
C. constant.
D. derived.
ANSWER: B
29. ________ is a unary operator that returns the memory address of its operand.
A. &.
B. ++.
C. _ _.
D. ||.
ANSWER: A
30. ________ is a stream connected to standard output.
A. cin.
B. gets.
C. out.
D. cout.

ANSWER: D

No comments:

Post a Comment