Exam 6: Modularity Using Functions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Telling the C++ compiler that a function is ____ causes a copy of the function code to be placed in the program at the point the function is called.

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
Verified

A

A(n) ____ declaration statement simply informs the computer that a global variable already exists and can now be used.

Free
(Multiple Choice)
4.9/5
(29)
Correct Answer:
Verified

C

A variable with ____ scope has storage created for it by a declaration statement located outside any function.

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

B

Where and how long a variable s storage locations are kept before they re released can be determined by the variable s ____.

(Multiple Choice)
4.8/5
(30)

A variable is said to be alive if ____________________ for the variable is available.

(Short Answer)
4.9/5
(39)

Variables that are created by definition statements external to a function are called ____________________ variables.

(Short Answer)
4.9/5
(44)

Static variables can be initialized using other variables.

(True/False)
4.9/5
(34)

To actually use a returned value, you must provide a(n) ____________________ to store the value or to use the value in an expression.

(Short Answer)
4.9/5
(30)

Passing addresses is referred to as a function ____.

(Multiple Choice)
4.9/5
(42)

In creating C++ functions, you must be concerned with the function itself and how it interacts with other functions, such as main() .

(True/False)
4.7/5
(39)

The default in C++ is to make passes by ____.

(Multiple Choice)
4.8/5
(36)

The names in parentheses in the header are called the formal ____ of the function.

(Multiple Choice)
4.7/5
(38)

In C++ a reference parameter is declared with the syntax:

(Multiple Choice)
4.8/5
(37)

A function returning a value must specify the ____________________ type of the value to be returned.

(Short Answer)
4.7/5
(27)

Initialization of ____________________ variables is done only once, when the program is first compiled.

(Short Answer)
4.9/5
(35)

C++ provides two types of address parameters: ____________________ and pointers.

(Short Answer)
4.8/5
(32)

In a function call, the items enclosed in parentheses are known as ____________________.

(Short Answer)
4.9/5
(44)

A function returning a value must specify, in its ____, the data type of the value to be returned.

(Multiple Choice)
4.9/5
(38)

The line template , called a ____, is used to inform the compiler that the function immediately following is a template using a data type named T .

(Multiple Choice)
4.7/5
(43)

After they re created, local static variables remain in existence for the program s lifetime.

(True/False)
4.9/5
(33)
Showing 1 - 20 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)