Python Data Types & Basic Operations Quiz

1. Which data type stores whole numbers?
2. Which data type stores decimal numbers?
3. What is the data type of "Hello"?
4. Which value is a boolean?
5. What will this code output?
print(5 + 3)
6. What will this code output?
print("5" + "3")
7. Which operator is used for multiplication?
8. What does // do in Python?
9. What is the result of 10 % 3?
10. Which operator is used for exponentiation?
11. What will this code output?
print(type(10))
12. Which converts a number to a string?
13. What will this code output?
print(7 / 2)
14. What will this code output?
print(7 // 2)
15. What will this code output?
print("Hi" * 3)
16. Which of the following is NOT a valid data type?
17. What is the result of True + True?
18. Which comparison operator checks equality?
19. What is the result of 5 > 3?
20. Which function shows the data type of a value?