Python Quiz

Answer 10 questions and see how you score!

1. Which function is used to iterate with index in Python?

2. Which keyword is used to create a class?

3. Which statement is used to define an anonymous function?

4. Which function returns the absolute value?

5. Which function is used to reverse a list?

6. Which is the correct way to open a file for reading and writing?

7. Which operator is for exponentiation?

8. Which of these is used to define an abstract base class?

9. Which function converts a string to a float?

10. What is the correct file extension for Python?