Examveda

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


Join The Discussion

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block