The starter and exit quiz of the lesson “Structured programming”, 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
Programming languages are considered to be high or low level. Which of the following languages are high level?
What Python function is used to display output?
What operator is used for multiplication in Python?
What is 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
What data type is used in Python to hold whole numbers?
Which type of loop is used for condition controlled iteration in Python?
The structured approach to programming provides many benefits.From the list below, select the statements that specify a benefit of using the structured approach.
Select the statement that is true.
A student wants a subroutine that will add any two given numbers together and display the answer. Use the lines of code below to construct a display_sum subroutine for them.
What is num1 in this line of code? def display_sum (num1, num2):