Computer Science - Object Oriented Programming Using C++

11. 

A function's purpose is to print customer data. Which of the following is the best name for this function?

A. pcd(). It's short for "print customer data" and takes few keystrokes
B. Printcustomerdata(). It states everything the function will do
C. printCustomer(). It states the function's purpose and is easy to read
D. lastFunction(). It is the final function called in most programs, and this name identifies the function's timing

Answer: Option C

Explanation:

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

12. 

The function strcmp("Jose", "JOSE") will return _____

A. - 1
B. 0
C. 1

Answer: Option C

Explanation:

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

13. 

A pointer to void can hold pointers to

A. char type
B. int type
C. float type
D. any data type

Answer: Option D

Explanation:

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

14. 

Which of the following is the extraction operator?

A. >>
B. <<
C. //
D. /*
E. both (a) and (b)

Answer: Option A

Explanation:

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

15. 

The function whose prototype is void getData(Item &thing); receives

A. a pointer to a structure
B. a reference to a structure
C. a copy of a structure
D. nothing

Answer: Option B

Explanation:

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