Object Oriented Programming Using C++ – Section 5

26. You construct a class in two sections, known as the _____

A. header and body
B. type and parameters
C. declaration and implementation
D. pointer and variable

Correct Answer: C. declaration and implementation
Advertisement

27. It is sometimes useful to specify a class from which no objects will ever be created

A. True
B. False

Correct Answer: A. True
Advertisement

28. The statement i*=3 is equivalent to

A. i = 3*
B. i = 3
C. i* = 3
D. i = i * 3
E. None of the above

Correct Answer: D. i = i * 3
Advertisement

29. The complement operator is represented by the symbol

A. ~
B. ^
C. i
D. <
E. None of the above

Correct Answer: A. ~
Advertisement

30. One of the relational operators in the C language is

A. !=
B. &&
C. !
D. #
E. None of the above

Correct Answer:  A. !=
Advertisement

Leave A Comment?