Exam 6: Functions

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

A(n) ________ is information that is passed to a function, and a(n) ________ is a special variable that receives and holds that information.

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

D

When more than one function has the same name they are called ________ functions.

Free
(Multiple Choice)
4.7/5
(81)
Correct Answer:
Verified

A

A function ________ includes the statements that make up the function.

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

A

In a function prototype, in addition to the name of the function, you are required to furnish

(Multiple Choice)
4.8/5
(86)

A ________ is a dummy function that is called instead of the actual function it represents, to test that the call to and return from the function are working correctly.

(Multiple Choice)
4.9/5
(89)

In a function call, in addition to the name of the function, you are required to furnish

(Multiple Choice)
4.8/5
(91)

In the following statement, what is 22.0? Cout << sqrt(22.0);

(Multiple Choice)
4.9/5
(76)

An overloaded function is one

(Multiple Choice)
4.9/5
(83)

In C++ global and local numeric variables are initialized to zero by default.

(True/False)
4.9/5
(83)

One reason for using functions is to break programs into a set of manageable units, or modules.

(True/False)
4.8/5
(69)

When a function needs access to an original argument passed to it, for example in order to change its value, the argument needs to be

(Multiple Choice)
4.9/5
(58)

It is possible for a function to have some parameters with default arguments and some without.

(True/False)
4.8/5
(87)

The ________ statement causes a function to end and the flow of control to move back to the point where the function call was made.

(Multiple Choice)
4.8/5
(85)

A static local variable is one

(Multiple Choice)
4.7/5
(80)

When used as a parameter, a ________ variable allows a function to access and modify the original argument passed to it.

(Multiple Choice)
4.9/5
(83)

When only a copy of an argument is passed to a function, it is said to be passed

(Multiple Choice)
4.7/5
(67)

A ________ variable is defined inside the body of a function and is not accessible outside that function.

(Multiple Choice)
5.0/5
(90)

The value in ________ local variable is retained between function calls.

(Multiple Choice)
4.9/5
(86)

A function ________ eliminates the need to place the function definition before all calls to the function.

(Multiple Choice)
4.9/5
(86)

A void function is one that

(Multiple Choice)
4.9/5
(82)
Showing 1 - 20 of 40
close modal

Filters

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