Created by Andrew Lewis
almost 4 years ago
|
||
Question | Answer |
A _____ structure can execute a set of statements only under certain circumstances. | Decision (Selection) |
A _____ structure provides one alternative path of execution. If the condition that is being tested is true, the program takes the alternative path. | Single Alternative Decision |
In pseudocode, the "If-Then" statement is an example of a _____. | Decision Structure (Selection Structure) |
A _____ expression has a value of either true or false. | Boolean |
The symbols >, <, and == are all _____ operators. | Relational |
A _____ structure tests a condition and then takes one path if the condition is true, or another path if the condition is false. | Dual Alternative Decision |
You use an _____ statement in pseudocode to write a single alternative decision structure. | If-Then |
You use an _____ statement in pseudocode to write a dual alternative decision structure. | If-Then-Else |
A _____ structure allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute. | Multiple Alternative Decision |
A _____ section of a "Select Case" statement is branched to if none of the case values match the expression listed after the "Select" statement. | Default |
AND, OR, and NOT are _____ operators. They are used to create complex Boolean expressions. | Logical |
A compound Boolean expression created with the _____ operator is true only if both of its subexpressions are true. | AND |
A compound Boolean expression created with the _____ operator is true if either of its subexpressions is true. | OR |
The _____ operator takes a Boolean expression as its operand and reverses its logical value. | NOT |
A _____ is a Boolean variable that signals when some condition exists in the program. | Flag |
When the "If-Then" statement executes, the _____ is tested. If it is true, the statements that appear between the "If" clause and the "End If" clause are executed. | Condition |
A logical design that controls the order in which a set of statements executes is a _____. | Control Structure |
To test more than one condition, a decision structure can be _____ inside another decision structure. | Nested |
The _____ lets the value of a variable or an expression determine which path of execution the program will take. | Case Structure |
The case structure is a _____. | Multiple Alternative Decision Structure |
What does the case structure test, in order to determine which set of statements to execute? | A variable or an expression. |
You need to write a multiple alternative decision structure, but the language you are using will not allow you to perform the test you need in a "Select Case" statement. What can you do to achieve the same results? | You can use the "If-Then-Else If" statement, or a nested decision structure. |
If an expression on the left side of an AND operator is false, the expression on the right side will not be checked. This is an example of _____. | Short-Circuit Evaluation |
What is a compound Boolean expression? | It is an expression that is created by using a logical operator to combine two Boolean subexpressions. |
If an expression on the left side of an OR operator is true, the expression on the right side will not be checked. This is an example of _____. | Short-Circuit Evaluation |
Want to create your own Flashcards for free with GoConqr? Learn more.