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

Quiz: Python Operators and Input: questions with answers

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

Take the timed quiz + get a certificate →
  1. Q1. What is the output of print(20 // 6, 20 % 6)?
  2. Q2. What does input() return when the user types 25?
  3. Q3. What is the value of not (5 3 and 2 4)?
  4. Q4. What does this print? (code)
  5. Q5. Which f-string prints 3.14159 as 3.14?
  6. Q6. What does this print? (code)
  7. Q7. What does this print? (code)
  8. Q8. How do you read a whole number from the user?
  9. Q9. What does this print? (code)
  10. Q10. What does this print? (code)
  11. Q11. What does this print? (code)
  12. Q12. What does this print? (code)
  13. Q13. A user types 4 and then 5 for a = input() and b = input(). What does print(a + b) show?
  14. Q14. What does this print? (code)