Named part in a memory
Question: Program components in C++ are called ________ and ________.
Functions, classes
A function is invoked with a(n) ________.
Function call
Question: A variable that is known only within the function in which it is defined is
called a(n) ________.
Local variable
Question: The ________ statement in a called function passes the value of an expression
back to the calling function
Return
Question: The keyword ________ is used in a function header to indicate that a function
does not return a value or to indicate that a function contains no parameters
Void
Question: The ________ of an identifier is the portion of the program in which the
identifier can be used
Scope
Question: The three ways to return control from a called function to a caller are
________, ________ and ________.
Return, return expression or encounter the closing right brace of a function.
Question: A(n)________ allows the compiler to check the number, types and order of
the arguments passed to a function.
Function prototype
Question: Function ________ is used to produce random numbers
Rand()
Question: Function ________ is used to set the random number seed to randomize a
program
Srand()
Question: The storage-class specifiers are mutable, ________, ________, ________ and
________.
Auto, register, extern, static
Question: Variables declared in a block or in the parameter list of a function are assumed
to be of storage class ________ unless specified otherwise
Auto
Question: Storage-class specifier ________ is a recommendation to the compiler to store
a variable in one of the computer's registers
Register
Question: A variable declared outside any block or function is a(n) ________ variable
Global
Question: For a local variable in a function to retain its value between calls to the
function, it must be declared with the ________ storage-class specifier
Static
Question: The six possible scopes of an identifier are ________, ________, ________,
________, ________ and ________.
Function scope, file scope, block scope, function-prototype scope, class scope, namespace
Scope
Question: A function that calls itself either directly or indirectly (i.e., through another
function) is a(n) ________ function
Recursive
Question: A recursive function typically has two components: One that provides a means
for the recursion to terminate by testing for a(n) ________ case and one that expresses
the problem as a recursive call for a slightly simpler problem than the original call
Base
Question: In C++, it is possible to have various functions with the same name that
operate on different types or numbers of arguments. This is called function ________.
Overloading
Question: The ________ enables access to a global variable with the same name as a
variable in the current scope