• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/20

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

20 Cards in this Set

  • Front
  • Back
Using functions greatly enhances the program’s readability because it reduces the complexity of the function main.
true
To use a predefined function, the program must include the appropriate header file.
true
If the formal parameter list of a function is empty, the parentheses are not needed.
false
In C++, a function prototype is the function heading without the body of the function.
true
A function prototype ends with a semicolon.
true
When writing a function prototype, you do not have to specify the data type of each parameter.
false
The execution of a C++ program always begins with the function main.
true
A reference parameter receives the address or memory location of the actual parameter.
true
Whenever the value of a reference parameter changes, the value of the actual parameter changes.
true
What is the standard header file for the abs(x) function?
<cstdlib>
What is the standard header file for the pow(x,y) and sqrt(x) functions?
<cmath>
The output of the statement:
cout << pow(3.0, 2.0) + 5 << endl;
14.0
What are functions called that do not have a return type?
void
What is a variable or expression listed in a call to a function?
actual parameter
What are the two types of formal parameters?
value and reference parameters
What is a formal parameter called when an & is attached after the data type?
reference parameter
The scope of an identifier refers to where in the program an identifier is accessible.
true
In C++, what is the scope resolution operator?
::
Memory for global variables remains allocated as long as the program executes.
true
In C++ the term 'void' is a reserved word.
true