Chapter 3 Flashcards

1
Q

Logical design that controls order in which set of statements execute

A

control structure

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

Set of statements that execute in the order they appear

A

sequence structure

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

Specific action(s) performed only if a condition exists

-also known as selection structure

A

decision structure

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

In flowchart, diamond represents what

A

true/false condition that must be tested

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

Provides only one alternative path of execution

-if condition is not true, exit the structure

A

single alternative decision structure

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

Expression tested by if statement to determine if it is true or false

A

Boolean expression

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

determines whether a specific relationship exists between two values

-ex: greater than (>)

A

relational operator

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

This operator determines whether the two operands are equal to one another

A

==

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

This operator determines whether the two operands are not equal

A

!=

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

Two possible paths of execution

A

dual alternative decision structure

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

Special version of a decision structure

A

if-elif-else

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

Operators that can be used to create complex Boolean expressions

A

logical operators

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

Deciding the value of a compound Boolean expression after evaluating only one sub expression

A

short circuit evaluation

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

References one of two values, True or False

A

Boolean variable

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

Variable that signals when some condition exists in a program

A

Flag

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