Vidyalelo
Computer Science · Q502

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 502

Q502

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
Answer
D.
lastFunction(). It is the final function called in most programs and this name identifies the function's timing

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board