Boolean Expressions
Loops
Streams
Programmer-defined functions
Scope Rules
100
Any expression that is either true or false
What is a Boolean Expression
100
Each repetition of the loop body is called _________ of the loop.
What an interation
100
To check to see if the input stream "fin" has reached the end of the file you would use this command
What is fin.eof()
100
The first word in a function declaration specifies this
What is the type of the value returned by the function
100
A variable declared within the body of a function
What is a local variable
200
When parentheses are omitted from an expression, the compiler groups items according to rules known as these
What are precedence rules
200
In a while statement, the Boolean expression is checked at this time
What is before the loop is executed
200
To close the stream "inStream" you would issue this command
What is inStream.close();
200
A return statement consists of this
What is the keyword return followed by an expression.
200
The designing of a function so that it can be used as a black box
What is information hiding
300
You can combine two comparisons using the "and" operator which is represented with this
What is &&
300
In a do-while statement, the Boolean expression is checked at this time
What is after the loop body is executed
300
To declare the variable "inStream" to be an input stream for a file, you would use this code
What is ifstream inStream;
300
The type of function that does not require a return type
What is a void function
300
A variable that can be used in any function definition that follows the constant declaration
What is a global named constant
400
You can combine two comparisons using the "or" operator which is represented with this
What is double pipes ||
400
The for statement is most commonly used for this purpose
What is to step through some integer variable in equal increments (to loop a set number of times).
400
This code is used to connect the input stream inStream to the file infile.txt
What is inStream.open("infile.txt");
400
States what is assumed to be true when the function is called
What is the precondition
400
A variable, without the const modifier, which is accessible to all function definitions in the file.
What is a global variable
500
Contains the rules of how to evaluate the combination of true and false values
What is a truth table
500
This ends the current loop body iteration of the nearest enclosing loop statement.
What is the continue statement
500
The classes ifstream and ofstream are defined in this library
What is fstream
500
Describes the effect of the function call
What is the postcondition
500
The act of writing and using functions as if they were black boxes
What is procedural abstraction
M
e
n
u