With regard to default arguments:

a. Zero or more call-by-value parameters in a function may have default arguments.
b. All value parameters must have default arguments.
c. If a function has a reference parameter, no parameters to the left of the reference parameter may have default arguments.
d. If a parameter is missing a default argument, no parameters to the left of this point may have a default argument.
e. Reference parameters can have default arguments.

a) c) d) are correct.
Explanation: a) you may, but you don’t have to have default arguments. b) is clearly wrong, there is no mandate that all value parameters have default arguments. If there are reference parameters mixed in, as in c) then value parameters to the left of the reference parameter cannot have default arguments. d) follows from the rules that reference parameters cannot have default arguments and that if any variables are missing default arguments, variables to the left may not have them either. Part e) is clearly wrong. Default arguments for reference parameters make no sense.

Computer Science & Information Technology

You might also like to view...

What is the function of the variable head when used with a linked list? What is the data type of the head variable?

What will be an ideal response?

Computer Science & Information Technology

____ downloading downloads the entire video file, which is stored on a Web server, to the user's computer for viewing.

A. Progressive B. Partial C. Sequential D. Forward

Computer Science & Information Technology