Examplary
Start for free
Oak ComputingTest · Computing

Structured programs

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

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

Oak National Academy

10 questions

  1. Programming languages are considered to be high or low level, which of the following languages are high level?
  2. What Python function is used to display output?
  3. What operator is used for multiplication in Python?
  4. Can you work out the value of the variable total once the code has finished executing?total = 0FOR i = 0 TO 3 FOR j = 0 TO i total = total + i NEXT jNEXT i
  5. What data type is used in Python to hold whole numbers?
  6. Which type of loop is used for condition controlled iteration in Python?
  7. The structured approach to programming provides many benefits.From the list below select the statements that specify a benefit of using the structured approach.
  8. Select the statement that is true.
  9. A student wants a subprogram that will add any two given numbers together and to display the answer. Use the lines of code below to construct a display_sum subprogram for them.
  10. What is num1 in this line of code? def display_sum (num1, num2):

License: OGL

Structured programs · Examplary