WorksheetsPython - Conditionals
Total questions: 12
Worksheet time: 9mins
Which code means not equal to?
==
<=
>
!=
Which of the following is not a Relational Operator?
<=
==
=
!=
Which of the following is NOT a Boolean Statement?
name == "duck"
8 <= 12
num = int(Input("Pick a number.")
total > 0
Which booleans have a value of True?
12 - 3 == 9
30 <= 25
17 != 11 + 6
15 / 5 == 3.0
Which of the following are valid values for a boolean?
Select ALL that apply.
True
false
0
False
1
What is the final value for total?
6
4
7
9
Which lines of code will be skipped when the program is run?
4, 7, 8
4
3, 4, 7, 8
7, 8
In the provided code, what is the final value for alarm?
6
7
8
9
Review the provided code. Are there any possible flaws in this programming code.
There are no flaws in the program
A colon, : , is missing from the end of line 2
The value for day could be spelled incorrectly.
The value for day could be entered as a number.
What is the truth value for the compound Boolean statement?
5 == 2 + 3 or 7 > 8
True
False
No Value
In the provided code, what is the final output?
"Fred"
15
25
35
In the provided code, which lines of code will be skipped by the computer when the program is run?
7
7, 10, 11
10, 11
7, 10
