Object Oriented Programming Using C++ – Section 2

36. When a language has the capability to produce new data types, it is said to be

A. reprehensible
B. encapsulated
C. overloaded
D. extensible

Correct Answer:  D. extensible

37. A compound statement does not consist of

A. a single statement
B. other compound statements
C. expression statements
D. control statements
E. None of the above

Correct Answer:  A. a single statement

38. Which of the following statements will display the word “Hello” on the computer screen?

A. cin << “Hello”;
B. cin >> “Hello”;
C. cout << “Hello”;
D. cout >> “Hello”;
E. None of the above

Correct Answer:  C. cout << “Hello”;

39. The preprocessor directive always starts with the symbol

A. %
B. &
C. #
D. “”
E. None of the above

Correct Answer:  C. #

40. Which of the following statements is true?

A. Data coupling is tighter than pathological coupling
B. Common coupling is looser than data coupling
C. Data-structured coupling is looser than control coupling
D. Control coupling is looser than data coupling

Correct Answer:  C. Data-structured coupling is looser than control coupling

Leave A Comment?

4 × five =