Starter quiz

  • What is the correct syntax in Python to initialise a variable called age and set its value to the numerical value 13?
    • `age (13)`
    • `age = 13`  ✓
    • `age = "13"`
    • `set age to 13`
  • What is the correct syntax in Python to initialise a variable called name and set its value to Laura?
    • `name (Laura)`
    • `name ("Laura")`
    • `name = "Laura"`  ✓
    • `name = Laura`
  • Which programming construct is used to repeatedly perform actions in a program?
    • sequence
    • selection
    • iteration  ✓
    • decomposition
  • ______ are used to tell a program whether a condition has been met or not.
    • 'Flags' ✓
  • A while loop will run ...
    • a set number of times.
    • until a condition is no longer met.  ✓
  • ```colours = ["red", "blue", "yellow", "green"] print (colours[1])``` What colour would be printed by the program?
    • red
    • blue  ✓
    • yellow
    • green
+