Test your Python knowledge with multiple choice questions and coding challenges.
1. What is Python?
2. Where can you download Python?
3. What does print("Hello") do?
4. How to declare a variable in Python?
5. What is the type of 5.7?
6. What is 10 // 3?
7. What is the output of if 5 > 3: print("Yes")?
8. How many times does for i in range(3): print(i) print?
9. How to add to list?
10. How to access dict value?
11. Python is a _______ language.
12. Which symbol is used to start a comment in Python?
13. What is the correct file extension for Python files?
14. Which of the following is a valid variable name in Python?
15. Which of the following is not a Python data type?
16. What will be the data type of x = "123" in Python?
17. What is indentation used for in Python?
18. Which keyword is used to define a function in Python?
19. Which of the following is a mutable data type in Python?
20. What is the output of a function if no return statement is used?
21. Which of the following operators is used for exponentiation in Python?
22. What is the purpose of the break statement?
23. Which function is used to find the type of a variable in Python?
24. What is the output of bool(0) in Python?
25. Which of the following is used to import a module in Python?
26. Write a function to add two numbers.
27. Write a loop to print numbers 1 to 5.