Chapter 8 - Control Flow Flashcards
1
Q
Relational Operator
A
An operator that produces either True or False
Always have two operands
2
Q
==
A
Are the operands equal?
3
Q
!=
A
Are the operands unequal?
4
Q
A
Is the first operand smaller than the second operand?
5
Q
>
A
Is the first operator larger than the second operand?
6
Q
<=
A
Is the first operand less than or equal to the second?
7
Q
> =
A
Is the first operand greater than or equal to the second?
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