🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Python Variables and Data Types: questions with answers

15 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What is the output? (code)
  2. Q2. Which is a valid variable name?
  3. Q3. What does int(7.9) return?
  4. Q4. What is type(10 / 2)?
  5. Q5. Which value is "falsy" in Python?
  6. Q6. What does this print? (code)
  7. Q7. What is bool("False")?
  8. Q8. What does this print? (code)
  9. Q9. Which of these is a float?
  10. Q10. What does this print? (code)
  11. Q11. What does this print? (code)
  12. Q12. Which line gives a TypeError?
  13. Q13. What does this print? (code)
  14. Q14. Which variable name is NOT allowed?
  15. Q15. What does this print? (code)