Chapter 5 Flashcards

(11 cards)

1
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
2
Q

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

A

logical operator

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

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

A

relational operator

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

One or more statements indented to indicate they are part of another statement

A

block

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

A character that creates a line break between two parts of a string

A

newline

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

The boolean expression in a conditional statement that determines which branch runs

A

condition

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

An operator, %, that works on integers and returns the remainder when one number is divided by another

A

modulus operator

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