Chapter 8 - Control Flow Flashcards

1
Q

Relational Operator

A

An operator that produces either True or False

Always have two operands

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

==

A

Are the operands equal?

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

!=

A

Are the operands unequal?

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

Is the first operand smaller than the second operand?

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

>

A

Is the first operator larger than the second operand?

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

<=

A

Is the first operand less than or equal to the second?

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

> =

A

Is the first operand greater than or equal to the second?

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

Logical Operators / Boolean Operators

A

“or” “and” & “not”

Lower precedence than relational operators - so relational operators will always be evaluated before logical operators

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