Examplary
Start for free
Oak ComputingTest · Computing

Good programming practices

The starter and exit quiz of the lesson “Good programming practices”, 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. Match the Python function to its purpose
  2. ___ selection in programming is a selection statement placed inside another selection statement.
  3. What does the upper() method do when used on a string in Python?
  4. How can a program be modified to check more than one username?
  5. The correct way to ensure case-insensitive username input is: username = input().___
  6. The expression if score > 10: checks if the score is __________ 10.
  7. Why are good programming practices important?
  8. What is the purpose of comments in programming?
  9. What is snake case, and where is it commonly used?
  10. To make a program easier to understand, you should use ___ variable names instead of single-letter names like x or y.
  11. Match the good programming practice with its purpose.
  12. ___ is the ease with which maintenance activities can be performed on a program, such as fixing errors.

License: OGL

Good programming practices · Examplary