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.8/5
(37)
Correct Answer:
Verified

D

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

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

A

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

Free
(Multiple Choice)
4.9/5
(33)
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
(45)

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.8/5
(37)

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(31)

An overloaded function is one

(Multiple Choice)
4.8/5
(40)

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

(True/False)
4.8/5
(35)

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

(True/False)
4.8/5
(28)

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.8/5
(29)

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

(True/False)
4.8/5
(40)

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.7/5
(35)

A static local variable is one

(Multiple Choice)
4.7/5
(29)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.7/5
(31)

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

(Multiple Choice)
5.0/5
(36)

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

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(37)

A void function is one that

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

Filters

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