Object Oriented Programming Using C Plus Plus - Study Mode
[#501] Assume a program contains a void function named displayName, which requires no formal parameters. Which of the following is a correct function prototype for this function?
Correct Answer
(D) void displayName()
[#502] The function whose prototype is Item getData(void)
returns _____
Correct Answer
(D) nothing
[#503] The function whose prototype is void getData(Item *thing)
receives
Correct Answer
(A) a pointer to a structure
[#504] The cout << sales[0] + sales[1]
statement will ______
Correct Answer
(A) display 22000
[#505] Which of the following statements opens a file named temp.dat for output?
Correct Answer
(A) outFile.open("temp .dat")