Python Programming Advanced Quiz 3

Select your answers and check your results. Use Reset to start again.
Practice Pronunciation (Merriam-Webster)
Navigation
Advanced Quiz 3
1. What is the result of "a" * 3?
2. Which method is called when an object is created?
3. What is the output of [i for i in range(5) if i % 2 == 0]?
4. Which of these is NOT a valid way to open a file for writing?
5. What does the "staticmethod" decorator do?
6. What is a "docstring"?
7. What is the output of (lambda x: x+1)(2)?
8. How do you merge two dictionaries d1 and d2 in Python 3.5+?
9. Which function sorts a list in place?
10. What is the output of bool("False")?
Previous Next
Other
Timer
00:00

Vocabulary Quiz
Score: 0

Spin the Wheel
Promo's

Explore More