Chapter 4 Decision Structure and Boolean logic Flashcards

1
Q

A ___ structure can execute a set of statements only under certain circumstances

a. sequence
b. circumstantial
c. decision
d. Boolean

A

decision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A ___ structure provides one alternative path of execution

a. sequence
b. single altervative decision
c. one path alternative
d. single execution decision

A

single alternative decision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In pseudocode the IF-then statement is an example of a

a. sequence structure
b. decision structure
c. pathway structure
d. class structure

A

decision structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An ___ expression has a value of either true or false.

a. binary
b. decision
c. unconditional
d. Boolean

A

Boolean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The symbols , and == are all ___ operators

a. relational
b. logical
c. conditional
d. ternary

A

relational

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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

A

dual alternative decision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

if-then-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
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
A

If-then-else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

multiple alternative decision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
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
A

Default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

AND,OR and NOT are ___ operators

a. relational
b. logical
c. conditional
d. ternary

A

logical

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

AND

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The ___ operator takes a Boolean expression at its operand and reverses its logical value.

a. AND
b. OR
c. NOT
d. EITHER

A

NOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A ___ is a Boolean variable that signals when some condition exists in the program.

a. flag
b. signal
c. sentinel
d. siren

A

flag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly