Examplary
Start for free
Oak ComputingTest · Computing

Nested selection

The starter and exit quiz of the lesson “Nested selection”, from the unit “Programming: selection” (Year 10 Computing) by Oak National Academy.

Free to use. Edit it, share it and hand it out to your students.

Oak National Academy

12 questions

  1. Which of the following expressions will return False?
  2. Which of these statements would return True for the following card?
  3. The three logical operators are 'and', 'or' and '___'.
  4. Logical operators can be used alongside relational operators to build logical ___ when more values need to be compared.
  5. Which expressions would return True for this card?
  6. Arithmetic expressions evaluate to a number. Logical expressions evaluate to ___.
  7. What is nested selection in programming?
  8. What does the lower() method do when used on a string in Python?
  9. In nested selection, if the outer condition is False, the inner condition will ___.
  10. What would be displayed if the user enters "Jun" for the username?
  11. What would be displayed if the user enters "Izzy" for the username and then "Dog1234" for the password?
  12. What would be displayed if the user enters "Izzy" for the username and then "Fish4321" for the password?

License: OGL

Nested selection · Examplary