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

1. A call-by-reference parameter may pass data only out of a function.

2. A program should have all of its functions written before testing can begin.


1. False The reference parameter is an alias for the caller's argument. The mechanism is to pass the address of the argument which is used where the parameter occurs. Hence, a reference parameter makes available to the function the initial and ongoing values of the caller's argument as well as providing a mechanism for the function to change the caller's argument.
2. False
Explanation: Functions that call other functions can be tested independently of the called functions by writing stub functions. Stub functions are very simple functions that do nothing much more than sending just enough data to the caller to allow testing..

Computer Science & Information Technology

You might also like to view...

______________________ is the capability to prevent a participant in an electronic transaction from denying that it performed an action.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) ________ contains data from the primary key fields in two tables

A) tab control B) parameter C) junction table D) alphabetic index

Computer Science & Information Technology

The ________ dialog box is used to relocate a chart to another worksheet

A) Insert Chart B) Move Chart C) Format Chart D) Chart Elements

Computer Science & Information Technology

The Reticulation filter ____.

a. creates a photocopy effect b. distorts similar to film emulsion patterns in negatives caused by extreme changes of temperature or acidity and alkalinity during processing c. daubs with color imitating fibrous, damp paper d. redraws to look like ragged, torn pieces of paper

Computer Science & Information Technology