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

1. The position of the ampersand in the function header is of no importance to the proper compiling and execution of code that uses call-by-reference parameters.

2. A call-by-value parameter may pass data only into a function.


1. True
Explanation: It makes no difference whether the ampersand appears next to the type or the variable.
void example3(double &ref_to_dbl);
void example3(double& ref_to_dbl);
//In a call to this function ref_to_dbl becomes a
// reference to double that refers to the argument.
2. True Explanation: The value parameter is essentially a local variable initialized to the value of the argument at the time of a call.

Computer Science & Information Technology

You might also like to view...

The ____________________ feature in Outlook allows you to preview an attachment you receive in an email message.

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

Computer Science & Information Technology

Case-Based Critical Thinking QuestionsCase 5-2Boater's Week is an online magazine. They like to host boat shows around town during the year to promote their magazine. Trevor is tasked with creating a table to list their boat show information which includes place, date & time, and a brief description of the event's activities. Trevor is using a Web site that is several years old that uses a table as a layout. Trevor wants to create a table layout that is more modern. He wants to enter the data for each boat show within one cell, therefore requiring a cell to occupy more than one column or row. Trevor decides that the data needs to occupy more than one row or column. To this he must create a(n) ____ cell.

A. spanning B. expanded C. wider D. taller

Computer Science & Information Technology

The ____ filters redraw an image or selection by joining, grouping, or clustering pixels of similar color values into cells defined by the tolerance settings.

a. Stylize b. Pixelate c. Distort d. Sketch

Computer Science & Information Technology

Identify the letter of the choice that best matches the phrase or definition.

A. Type of animation in which you define the starting and editing keyframes and then modify the object or symbol B. Type of tween that changes one shape to another C. Type of tween that can show movement on the Stage as an instance moves from one position to another D. Animation in which you can control the action in every frame E. Type of keyframe that controls the color or filter, for example, that changes in a frame

Computer Science & Information Technology