Which of these remarks about formal parameters is correct?

a) A formal parameter is a kind of place holder that is filled with the argument at the time of call to the function.
b) A call-by-value formal parameter is a global variable that is initialized to the
value set just before the function is called.
c) A call-by-reference formal parameter is modeled on a substitution mechanism.
The argument should be an expression, not a variable, since there is never a need
to assign such a variable.
d) The & (ampersand) character is used to indicate call-by-reference. This is done by placing the & after the type name which is followed by the parameter name in the
definition of the parameter in the function header.
e) The argument corresponding to a call-by-value parameter cannot be changed by anything that happens in the function call.


a) A formal parameter is a kind of place holder that is filled with the argument at the time of call to the function.
d) The & (ampersand) character is used to indicate call-by-reference. This is done by placing the & after the type name which is followed by the parameter name in the
definition of the parameter in the function header.
e) The argument corresponding to a call-by-value parameter cannot be changed by anything that happens in the function call.

Computer Science & Information Technology

You might also like to view...

The class GridLayout constructs to hold components.

a. a horizontal grid with one row b. a vertical grid with one column c. a grid with multiple rows and columns d. a square grid with the same number of rows as columns

Computer Science & Information Technology

Typically, there will need to be a rather high degree of coordination and interaction among the threads of an application, leading to a __________ level of synchronization.

A) ?independent grain ? B) ?medium grain C) ?course grain ? D) ?fine grain

Computer Science & Information Technology

Examining the sequence diagram you produced in Exercise 5–4, identify the associations between these objects.

What will be an ideal response?

Computer Science & Information Technology

What is the name of the specification that indicates the frequencies that are dedicated for data transmission over cable lines?

A) DOCSIS B) EIA/TIA 568a C) SONET D) IEEE 802.6

Computer Science & Information Technology