Chapter 5 Flashcards

Making Decisions with Conditionals

1
Q

True or False

A

Boolean values

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

An expression that evaluates to either true or false

A

Boolean expression

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

Comparison operators, such as === or <

A

Boolean operators

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

A boolean expression made out of smaller boolean expressions

A

Compound boolean expression

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

Logical AND Operator

A

&&

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

Logical OR Operator

A

||

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

Logical NOT Operator

A

!
‘bang’

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

Operator precedence

A

Logical NOT (!)
Arithmetic operators (**, *, /, %, +, -)
Comparison operators (<=, >=, <, >)
Equality operators (===, !==, ==, !=)
Logical AND (&&) and OR (||)

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

If statement

A

Conditional

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

The statements that follow the condition, within {}

A

Code block

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

Can be paired with an if statement to specify code that should be executed when the condition is false

A

else clause

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