adplus-dvertising
frame-decoration

Question

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: (c).printCustomer(). It states the function's purpose and is easy to read

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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