In the previous chapters we wrote many programs using “Ask” functions which asks for program input and returned these values to the calling function. Why did we not call these functions “Get” functions?

What will be an ideal response?


It is important to name functions clearly as to their task. The Ask functions actually asked the user for input via cout and cin/getline statements. The Get function has a special meaning in C++, as the name of the function that returns class data to a calling function via an object.

Computer Science & Information Technology

You might also like to view...

In the control plane, the ________ determines what user traffic may enter the network.

A) Service level agreement B) QoS routing C) Packet marking D) Admission control

Computer Science & Information Technology

With regard to the IoT, a(n) ________ is a piece of equipment with the mandatory capabilities of communication and the optional capabilities of sensing, data capture data storage, and data processing.

A) Thing B) Device C) Actuator D) Component

Computer Science & Information Technology

Match the following property types to their descriptions: I. Format II. Validation Text III. Required IV. Result Type V. Indexed A. increases the efficiency of a search on a designated field B. indicates that a value for the field must be entered C. specifies the error message that is displayed when the validation rule is violated D. enters the format for a calculated field result E. changes the

way a field is displayed but does not affect the stored value What will be an ideal response?

Computer Science & Information Technology

Analog signatures help to prevent email forgery.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology