← All topics
Quiz: Python Introduction: questions with answers
15 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What does this print? (code)
- Q2. Which symbol starts a comment in Python?
- Q3. What happens when you run print(Hello) without quotes (and no variable named Hello exists)?
- Q4. How does Python show which lines belong inside an if block?
- Q5. When installing Python on Windows, which option should you tick?
- Q6. What does this print? (code)
- Q7. Which file extension do Python source files use?
- Q8. What does this print? (code)
- Q9. What is the Python interactive shell () mainly used for?
- Q10. Python is called "interpreted" because…
- Q11. What does this print? (code)
- Q12. A program has four correct print lines and then print(total) on line 5, where total was never created. What do you see when you run it?
- Q13. What does this print? (code)
- Q14. What happens when you run Print("Hi") with a capital P?
- Q15. An error message has several lines. Which line should you read first?