MCQ Practice

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

Correct Answer: C