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;
30 Cards in this Set
- Front
- Back
If the expression on the left side is true, the expression on the right side will not be checked: (a >= b) || (c == d) |
True |
|
An expression that has any value other than 0 is considered true by an if statement. T/F |
True |
|
As a rule of style, when writing an if statement you should indent the conditionally-executed statements. T/F |
True |
|
Rational operators all you to _________ numbers. |
Compare |
|
|
You failed the test. You need to study harder next time. |
|
The ________ is an equality (or comparison) operator. |
== |
|
Which expression will determine whether x is less than or equal to y? |
X <= Y |
|
A variable, usually a bool or an int, that signals when a condition exists is known as a(n) |
Flag |
|
This statement uses the value of a variable or expression to determine where the program will branch to. |
Switch |
|
The default section of a switch statement performs a similar task similar to the ___________ portion of an if/else if statement. |
Trailing else |
|
When a program let's the user know that an invalid choice has been made, this is known as: |
Input validation |
|
This is a control structure that causes a statement or group of statements to repeat. |
Loop |
|
Something within a while loop mist eventually cause the condition to become false or a(n) __________ results. |
infinite loop |
|
The while loop is a ________ loop. |
Pre-test |
|
The statements in the body of a while loop may never be executed while the statements in the body of a do-while loop will be executed ______ |
At least once. |
|
A special value that marks the end of a list of values is |
Sentinel |
|
The ________ loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop. |
For |
|
A file must be _________ before data can be written to or read from it. |
Opened |
|
Assuming outFile is a file stream object and number is a variable, which statement writes the contents of number to the file associated with outFile? |
outFile << number; |
|
You may best while and do-while loops but you may not nest for loops. T/F |
False |
|
A parameter is a special purpose variable that is declared inside the parentheses of a function definition. T/F |
True |
|
It is not considered good programming practice to declare all your variables globally. T/F |
True |
|
A function _________ contains the statements that make up the function. |
Definition |
|
This type of variable is defined inside a function and is not accessible outside the function. |
Local |
|
The value in this type of variable persists between function calls. |
Static |
|
These types of arguments are passed to parameters automatically if no argument is provided in the function call. |
Default |
|
When used as parameters, these types of variables allow a function to access the parameter's original argument: |
Reference |
|
A function ________ eliminates the need to place a function definition before all calls to the function. |
Prototype |
|
This is a dummy function that is called instead of the actual function it represents: |
Stub |
|
What is the data type of the following function prototype's return value? int myFunction(double); |
Int |