Skip to content
KALANBLON
Show contents

Chapter 3 of 3 · 10 min

Quiz: talking to the computer

You've written your first programs and stored your first values. Let's check that everything is in place. You need 70% correct answers to pass this part. No stress: you can try again, and every answer is explained.

Quiz

5 questions · pass mark: 70%

  1. 1.What does this program display?

    One answer

    print("5 + 3")
  2. 2.After these two lines, what is the value of points?

    One answer

    points = 4
    points = points * 3
  3. 3.Which variable names are valid in Python? (several answers)

    Several answers possible

  4. 4.Fill in the blank to display the value of the variable city.

    Complete the code

    city = "Dakar"
    ____(city)
  5. 5.This program displays NameError: name 'age' is not defined. Why?

    One answer

    print(age)
    age = 17

Your progress is saved on this device. Create a free account to keep your progress on all your devices.