
Comparator Operators and Variables
Quiz by Paul Cummins
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
20 questions
Show answers
- Q1What is the output of the expression 5 > 3 in Python?True53False30s
- Q2What will the expression 7 == 7 evaluate to in Python?7True0False30s
- Q3What is the result of the expression 10 <= 5 in Python?5TrueFalse1030s
- Q4What does the expression 4 != 4 return in Python?TrueFalseError430s
- Q5What will the expression 12 >= 15 evaluate to in Python?True1512False30s
- Q6What is the output of the expression 8 < 10 in Python?8True10False30s
- Q7What is the result of the expression 15 == 20 in Python?15True20False30s
- Q8What will the expression 3 <= 3 return in Python?3FalseErrorTrue30s
- Q9What is the output of the expression 9 > 12 in Python?True9False1230s
- Q10What does the expression 25 != 30 evaluate to in Python?False25True3030s
- Q11What is the correct way to define a variable in Python?my-variable = 1010 = my_variablemy variable: 10my_variable = 1030s
- Q12Which of the following is a valid variable name in Python?1_variablevariable_1variable@1variable-130s
- Q13What will the following code output? x = 5; print(x + 3)8353530s
- Q14What is the purpose of the '==' operator in Python?To assign a value to a variableTo add two valuesTo compare two values for equalityTo concatenate strings30s
- Q15What will happen if you try to assign a value to a variable using a reserved keyword in Python?The variable will be created successfullyIt will create a global variableAn error will occurThe value will be ignored30s