Object Oriented Programming Using C++ – Section 10

16. When the function char someFunction(int x) is executed,

A. it will throw nothing
B. it will throw an integer
C. it will throw a character
D. it may or may not throw anything

Correct Answer:  D. it may or may not throw anything

17. One way in which a structure differs from an array is that

A. a structure may have members of more than one type
B. a structure must have members that are all the same type
C. an array may have members of more than one type
D. there is no difference between a structure and an array

Correct Answer:  A. a structure may have members of more than one type

18. Variables that hold memory addresses are called _____

A. subscripts
B. holders
C. pointers
D. indicators

Correct Answer:  C. pointers

19. The general form of do-while statement is

A. do expression while statement;
B. do while expression;
C. do statement while (expression);
D. do statement while statement;
E. None of the above

Correct Answer:  C. do statement while (expression);

20. The measure of how well the operations in a function relate to one another is _____

A. coupling
B. cohesion
C. adhesion
D. conversion

Correct Answer:  B. cohesion

Leave A Comment?

eighteen − five =