Free to use. Edit it, share it and hand it out to your students.
Oak National Academy
12 questions
What does integer division // do?
What comes first in the order of operations?
The expression 25 % 4 returns ___.
Match the operator with its function.
Match the expression with the result.
/ performs real division and returns a decimal, while // performs ___ division and discards the remainder.
What do relational operators do in a program?
What is the result of the expression 15 > 12?
The correct way to check if age is greater than 18 in Python is if age ___ 18:
Match the operator to the operation.
Match the expression with its result.
What will be displayed if score = 11 in the following code?if score < 5: print("You lose") elif score <= 10: print("Not bad!") else: print("You win!")