Object Oriented Programming Using C++ – Section 3

21. Files whose names end in .h are called _____ files

A. handy
B. header
C. helper
D. helping

Correct Answer: B. header

22. When accessing a structure member, the identifier to the left of the dot operator is the name of

A. a structure member
B. a structure tag
C. a structure variable
D. the keyword struct

Correct Answer: C. a structure variable

23. Assume that a program contains a programmer-defined void function. When C++ encounters the function’s
closing brace (}), C++ returns to the statement _____

A. immediately above the statement that called the function
B. that called the function
C. immediately below the statement that called the function

Correct Answer: C. immediately below the statement that called the function

24. Inheritance occurs when a class adopts all the traits of _________

A. an object
B. a parent class
C. a variable
D. a function

Correct Answer: B. a parent class

25. Template classes that have already been written to perform common class tasks are called _____

A. container classes
B. receptacle classes
C. repository classes
D. alembic classes

Correct Answer: A. container classes

Leave A Comment?

2 × 1 =