Quiz 4: Variables and Arithmetic Operators
Time limit: 10 minutes1. In Python, variable names can start with a number.
1 pt- True
- False
2. What does the // operator do in Python?
1 pt- Regular division returning a float
- Floor division returning only the whole number
- Modulo returning the remainder
- Exponentiation
3. What is the result of 2 ** 3 in Python?
1 pt- 6
- 8
- 9
- 5
4. The input() function in Python always returns a string.
1 pt- True
- False
5. Which of the following correctly converts the string "25" to an integer in Python?
1 pt- string("25")
- int("25")
- integer("25")
- convert("25")
6. What is the result of 10 % 3 in Python?
1 pt- 3
- 0
- 1
- 3.33
7. Match each Python data type with its correct example.
2 ptsintfloatstrbool
- age = 15
- height = 1.75
- name = "Tobi"
- is_student = True

.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)