Exam 2 Flashcards

(2 cards)

1
Q

Relational operators

A
Used to compare numbers to determine relative order
><
>=
<=
==
!=
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Relational expressions

A

Boolean expressions (true or false)

Ex:
12 > 5 is true

If x is 10, then
X == 10 is true
X != 8 is true
X == 8 is false

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