If the programmer is writing a function that requires four input values, but most of the time when the function is called, three of the inputs are the same (only changed occasionally). How should the programmer design this function?

What will be an ideal response?


This function should use a default parameter list prototype statement. The input value that needs to change often is first in the list, followed by the three inputs that don’t change. The three constant values would be assigned into the variables in the prototype statement.

Computer Science & Information Technology

You might also like to view...

A peer-peer (or peer-to-peer) network is called a __________ in Windows terminology.

a. LAN b. workgroup c. container d. domain

Computer Science & Information Technology

Each ________ in the query design grid shows information about the field

Fill in the blank(s) with correct word

Computer Science & Information Technology

Data fields can be displayed as objects on the form.

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

Computer Science & Information Technology

Which of the following can be used for comparing values within an if statement? (Choose two.)

A. -lt B. -neq C. = D. -grt

Computer Science & Information Technology