Computer Science - Object Oriented Programming Using C++

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

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

18. 

Variables that hold memory addresses are called _____

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

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

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

20. 

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

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.