Chapter 4 Decision Structure and Boolean logic Flashcards
A ___ structure can execute a set of statements only under certain circumstances
a. sequence
b. circumstantial
c. decision
d. Boolean
decision
A ___ structure provides one alternative path of execution
a. sequence
b. single altervative decision
c. one path alternative
d. single execution decision
single alternative decision
In pseudocode the IF-then statement is an example of a
a. sequence structure
b. decision structure
c. pathway structure
d. class structure
decision structure
An ___ expression has a value of either true or false.
a. binary
b. decision
c. unconditional
d. Boolean
Boolean
The symbols , and == are all ___ operators
a. relational
b. logical
c. conditional
d. ternary
relational
An ___ structure tests a condition and then takes one path if the condition is true or another path if the condition is false.
a. if then statement
b. single alternative decision
c. dual alternative decision
d. sequence
dual alternative decision
You use an ___ statement in pseudocode to write a single alternative decision structure
a. test-jump
b. if-then
c. if-then-else
d. if-call
if-then-
Your use an \_\_\_ statement in pseudocode to write a dual alternative decision structure a. test-jump b. if-then c. if-then-else d. if-call
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
a. variable test decision
b. single alternative decision
c. dual alternative decision
d. multiple alternative decision
multiple alternative decision
A \_\_\_ section of a Select Case statement is branched to if none of the case value match the expression liste after the Select statement a. Else b Default c. case d. Otherwise
Default
AND,OR and NOT are ___ operators
a. relational
b. logical
c. conditional
d. ternary
logical
A compound Boolean created with the __ operator is true only if both of its sub expressions are true.
a. AND
b. OR
c. NOT
d. BOTH
AND
A compound Boolean expression created with the ___ operator is true if either of its sub expression is true.
a. AND
b. OR
c. NOT
d. EITHER
OR
The ___ operator takes a Boolean expression at its operand and reverses its logical value.
a. AND
b. OR
c. NOT
d. EITHER
NOT
A ___ is a Boolean variable that signals when some condition exists in the program.
a. flag
b. signal
c. sentinel
d. siren
flag