Font size
WorksheetsWeek 5 - Variables/Booleans
Total questions: 54
Worksheet time: 38mins
What does case sensitive mean?
Prone to static electricity
outcome is based on uppercase and lowercase fonts
a lawyers feelings
what i put my switch in
Which is true about booleans?
they state your age
it is a mixture of cool and beans
it sounds funny
they hold true and false values
integers are...
algebra
your age
whole numbers including negatives
imaginary
a # in Python means the user is trying to...
hashtag
ratio
comment
tic-tac-toe
what is a string in Python?
a long piece of woven material
text, or keyboard characters
something that ties words together
yarn
name = 'Dave'
greeting = "Good morning" + name
print (greeting)
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
5. The logical operator for comparing if one value is greater than another is?
>
<
==
6. The logical operator for comparing if one value is less than another is?
>
<
==
Variables may hold...
Strings
Integers
Floats
Booleans
All of the above
+, -, /, * ... these are examples of:
Arithmetic operators
Comparison operators
==, !=, <, > ... these are examples of:
Arithmetic operators
Comparison operators
"These are words!" is a ...
Integers
Floats
Booleans
String
1205 is a ...
Boolean
Float
Integer
String
3.14159 is ...
Pi
A float
An integer
A string
An algorithm is a set of precise instructions designed to solve a problem.
True
False
Which of the following is not a Boolean Operator?
AND
OR
NOR
NOT
Which of the following operators requires two conditions to be true?
AND
OR
NOT
>
Which of the following operators requires one condition to be true?
AND
OR
NOT
>
Which of the following operators requires a condition to be false?
AND
OR
NOT
>
What is the Boolean value for True?
0
1
What is the Boolean value for False?
0
1
What is the word (command) used to display numbers and text on the screen?
show
output
command
What is the output of this snippet?
True
False
nothing is printed out
i don't know
What is the output of this snippet?
True
False
nothing is printed out
i don't know
What is the output of this snippet?
True
False
nothing is printed out
i don't know
What is the output of this snippet?
True
False
nothing is printed out
i don't know
Which is NOT a data type in Python?
integer
boolean
anchor
float
What will this symbol do?
\n
Not
New line
Does nothing
What does this symbol represent?
>
Less than
Greater than
Equal to
Less than or equal to
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
6
33
123
Error. Mixing operators between numbers and strings are not supported.
Which of the following operators requires two conditions to be true?
AND
OR
NOT
>
Which of the following operators requires one condition to be true?
AND
OR
NOT
>
Which of the following operators requires a condition to be false?
AND
OR
NOT
>
Which statement will require girls with brown hair to stand up?
Girl OR Brown Hair
NOT Girl AND Brown Hair
Brown Hair AND Girl
These type of operators are found within equations to perform different types of calculations.
Logic Operators
Arithmetic Operators
Comparison Operators
Boolean Operators
What is this operator: " %"?
What type of logic gate is this table showing?
AND
OR
NOT
