Chapter 3 Flashcards

1
Q

Control structure

A

Logical design that control the order in which set of statements execute.

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

Sequence structure

A

Set of statements that execute in the order they appear.

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

Decision structure

A

Specific action(s) performed only if a condition exist. Also known as selection structure.

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

Single alternative decision structure

A

Provides only one alternative path of execution. If condition is not true, exit the structure.

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

if clause

A

The first line in an if statement.

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

Boolean expression

A

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

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

Relational operator

A

Determines if a specific relationship exists between two values (examples: < and >).

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

Dual alternative decision structure

A

Two possible paths of execution.

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

if-elif-else statement

A

Special version of decision structure

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

Logical operators

A

Operators that can be used to create complex Boolean expressions.

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

and operator & or operator

A

Binary operators. Connect two Boolean expressions into a compound Boolean expression.

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

not operator

A

Unary operator. Reverses the truth of its Boolean operand.

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

Short circuit evaluation

A

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

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

Boolean variable

A

References one of two values: True or False

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

Flag

A

Variable that signals when some condition exists in a program.

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