Python Quiz

Answer 10 questions and see how you score!

1. What is the output of: (lambda x:x**3)(2)?

2. What does the @staticmethod decorator do?

3. What is the output of: "Python"[::-1]?

4. What is the output of: " ".join(["Python","Rocks"]) ?

5. Which of the following creates a set?

6. Which method appends elements from another iterable to a set?

7. What is the difference between list and tuple?

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

9. Which statement is used to continue to the next iteration of a loop?

10. Which of these is used to define a property of a class?