Conditions & Conditional Statements Flashcards
1
Q
In programming, conditions are statements that are either what?
A
T or F
2
Q
Equals symbol
A
==
3
Q
Does not equal symbol
A
!=
4
Q
Less than
A
<
5
Q
Less than or equal to
A
<=
6
Q
Greater than symbol
A
>
7
Q
Greater than or equal to
A
> =
8
Q
How do you check a value?
A
==
9
Q
How do you set a value?
A
=
10
Q
The code under the “if” statement is run if the statement is what?
A
T
11
Q
The code under the “else” is run if the statement is what?
A
False
12
Q
elif is used to check if what?
A
Multiple conditions might be true
13
Q
elif stands for?
A
Else if
14
Q
When making a comparison what should you use?
A
==
15
Q
When you write n == 6 what are you doing?
A
Setting the value of n