Lesson details

Key learning points

  1. In this lesson, we will be shown examples of tracing a Python program and a flow chart. Trace tables are great for walking through an algorithm and are often used to locate logic errors

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

4 Questions

Q1.
'Can be used to visually represent an algorithm or program.'
Computational thinking
Computer program
Correct answer: Flowchart
Written description
Q2.
'Are used for the start and end of subroutines or programs.'
Arrows
parallelogram
Subroutines
Correct answer: Terminators
Q3.
'An input or output is represented by a...'
Arrows
Correct answer: Parallelogram
Subroutines
Terminators
Q4.
'Are used to show the direction and flow of the program'
Correct answer: Arrows
Process
Subroutines
Terminators

4 Questions

Q1.
'Calculates the remainder of a division.'
Integer division
Correct answer: Modulo (MOD)
Q2.
'Calculates the whole number of times the divisor will go into the dividend '
Correct answer: Integer division
Modulo (MOD)
Q3.
State the result of the following calculation in Python: 14 % 4
1
Correct answer: 2
3
4
Q4.
State the result of the following calculation in Python: 28 // 5
Correct answer: 5
6
8
9