Q1. Which of the following is the correct extension for Python files?
📘 View Explanation
Q2. Which keyword is used to define a function in Python?
📘 View Explanation
Q3. Which symbol is used for single-line comments in Python?
📘 View Explanation
Q4. Which data type is used to store text in Python?
📘 View Explanation
Q5. Which of these is a valid Python variable name?
📘 View Explanation
Q6. Which function prints output to the screen in Python?
📘 View Explanation
Q7. Which of the following is NOT a Python data type?
📘 View Explanation
Q8. Which operator is used for exponentiation in Python?
📘 View Explanation
Q9. Which loop executes as long as a condition is True?
📘 View Explanation
Q10. Which keyword is used to handle exceptions in Python?
📘 View Explanation
Q11. Which of these is used to create a list in Python?
📘 View Explanation
Q12. Which function returns the length of a string or list?
📘 View Explanation
Q13. Which keyword is used to create a class in Python?
📘 View Explanation
Q14. Which method adds an element to the end of a list?
📘 View Explanation
Q15. Which of the following is used for multi-line comments in Python?
📘 View Explanation
Q16. Which function converts a string to an integer?
📘 View Explanation
Q17. Which operator checks equality of two values in Python?
📘 View Explanation
Q18. Which keyword is used to exit a loop prematurely?
📘 View Explanation
Q19. Which function reads input from the user?
📘 View Explanation
Q20. Which method converts all characters in a string to uppercase?
📘 View Explanation