Final quiz12 questionspass mark 70%

Python Basics for Absolute Beginners: Final Quiz

Answer all 12 questions, then press Check my answers. You'll see your score and an explanation for every question. Score 70% or more to unlock your printable certificate. Retry as often as you like.

Question 1 of 12What does print("2 + 3 =", 2 + 3) display?
Question 2 of 12What does a line starting with # do in Python?
Question 3 of 12After score = 0 and then score = score + 10, what is score?
Question 4 of 12What does type(3.5) return?
Question 5 of 12What does print("3" + "4") display?
Question 6 of 12What type of value does input() always return?
Question 7 of 12What is the difference between = and == in Python?
Question 8 of 12Which numbers does range(5) produce?
Question 9 of 12With temperature = 20, what does this print? if temperature >= 30: "hot" / elif temperature >= 15: "nice" / else: "jacket"
Question 10 of 12Given fruits = ["apple", "banana", "cherry"], what is fruits[0]?
Question 11 of 12What does a Python function return if it has no return statement?
Question 12 of 12Why does the quiz game use reply.strip().lower() before comparing?

Review the lessons

  1. Run Your First Python Program
  2. Python Variables, Types and Input
  3. Python Decisions and Loops: if, for, while
  4. Python Lists and Functions for Beginners
  5. Your First Python Project: A Quiz Game

Your answers and score are saved only in this browser. Nothing is sent to a server.