Chapter 3 - Conditionals Flashcards

1
Q

The sequence of statements within a compound statement.

A

Body

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

An expression whose value is either True or False.

A

Boolean expression

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

One of the alternative sequences of statements in a conditional statement.

A

Branch

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

A conditional statement with a series of alternative branches.

A

Chained Conditional

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

One of the operators that compares its operands: ==, !=, >, =, and <=

A

Comparison Operator

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

A statement that controls the flow of execution depending on some condition.

A

Conditional Statement

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

The boolean expression in a conditional statement that determines which branch is executed.

A

Condition

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

A statement that consists of a header and a body. The header ends with a colon (:). The body is indented relative to the header.

A

Compound Statement

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

Where we construct a logical expression with additional comparisons to take advantage of the short-circuit behavior.

A

Guardian Pattern

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

One of the operators that combines boolean expressions: and, or, and not.

A

Logical Operator

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

A conditional statement that appears in one of the branches of another conditional statement.

A

Nested Conditional

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

A list of the functions that are executing, printed when an exception occurs.

A

Traceback

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

When Python is part-way through evaluating a logical expression and stops the evaluation because Python knows the final value for the expression without needing to evaluate the rest of the expression.

A

Short Circuit

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