Python MCQ Test: Python MCQs - Practice Questions
1. What is the purpose of the 'zip()' function in Python?
2. Which of the following is the correct syntax for a Python tuple?
3. What is the result of the expression '3 + 2 * 4' in Python?
4. What is the purpose of the 'sorted()' function in Python?
5. In Python, how do you check if a number is even?
6. What is the purpose of the 'enumerate()' function in Python?
7. What is the purpose of the 'else' clause in a 'try-except' block in Python?
8. Which of the following is used to remove an item from a list in Python?
9. How do you define a constant in Python?
10. Which of the following is a correct way to handle exceptions in Python?