Back

Python Quiz

Pass with 7 / 10 to unlock your certificate.

  1. 1. What does the GIL stand for in CPython?

  2. 2. Which of these is mutable?

  3. 3. What does list comprehension [x*x for x in range(3)] return?

  4. 4. Which keyword pauses a generator and yields a value?

  5. 5. What is the output of: bool([])?

  6. 6. How do you correctly catch multiple exception types?

  7. 7. What does *args allow a function to accept?

  8. 8. Which method removes leading and trailing whitespace from a string?

  9. 9. What is the time complexity of `x in some_set`?

  10. 10. Which decorator marks a method that doesn't need `self`?