← All courses
Course review & final exams
Final exam: Python
10 new questions you haven't seen in the exercises. The pass mark is 7. Answer them all, then press “Grade”.
1. What does print(7 // 2) print?
2. What does print(len([4, 8, 15])) print?
3. Which type best stores each product's price by name?
4. What does x = '5'; print(x * 2) print?
5. How many times does for i in range(2, 6): loop?
6. Why write a function with def?
7. What does print('MIS'.lower()) print?
8. An IndentationError usually means:
9. What does print([n for n in [1, 2, 3, 4] if n % 2 == 0]) print?
10. How do you catch a failed text-to-number conversion without crashing?
10 unanswered