Year 10
Lesson details
Key learning points
- 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
Written description
Q2.
'Are used for the start and end of subroutines or programs.'
Arrows
parallelogram
Subroutines
Q3.
'An input or output is represented by a...'
Arrows
Subroutines
Terminators
Q4.
'Are used to show the direction and flow of the program'
Process
Subroutines
Terminators
4 Questions
Q1.
'Calculates the remainder of a division.'
Integer division
Q2.
'Calculates the whole number of times the divisor will go into the dividend '
Modulo (MOD)
Q3.
State the result of the following calculation in Python: 14 % 4
1
3
4
Q4.
State the result of the following calculation in Python: 28 // 5
6
8
9