Back to Programming Language Structure
N
Oak National Academy
Lessons written by expert teachers in England, each with slides, a video and quizzes.
Their topic:
Programming: selection · Programming: strings and lists · Using fundamental programming constructs in a block-based language
For your topic:
Programming Language Structure · Computer Studies
Use these lessons alongside our lesson note, which covers your syllabus in full.
What this covers in your syllabus
Primitive Data Types (Integer, Float, Boolean, Character, etc)
Not covered here. Our lesson note covers it.
String Operators and Expressions
Not covered here. Our lesson note covers it.
Built-in Functions
Not covered here. Our lesson note covers it.
Identify Features/Syntax of a Programming Language
Not covered here. Our lesson note covers it.
Complex Data Structures (Trees, Graphs, Linked Lists, Objects, etc)
Not covered here. Our lesson note covers it.
3 lessons from Oak National Academy
1
Arithmetic operators
2
Arrays and lists
3
Problem solving using programming constructs
Lesson 1 of 3 · GCSE level, ages 14 to 16
Arithmetic operators
By the end:
I can use a variety of arithmetic operators in a program.
Key learning points
Arithmetic expressions are used to calculate values.
Arithmetic expressions can be used in selection statements. Expressions either return as True or False.
In real division there is no remainder because the entire value is divided.
Integer division is when any remainder of a division is discarded.
Modulo division (MOD) will return only the remainder of a division.
Keywords
operator
a symbol or word that instructs the computer to perform a specific calculation or action
arithetic expression
an expression that results in a numeric value
integer division
sometimes known as floor division, is when any remainder of a division is discarded
modulo division
an operation that gives you the remainder when one number is divided by another
A common mistake
Mistake: Just like addition, subtraction and multiplication there is only one type of division in programming.
In fact: There are three types of division in programming; real, integer and modulo division. Each deal with remainder values differently and will be useful in different ways in programming.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
What is an arithmetic operator?
a symbol used to store values
a symbol that tells the computer to perform a calculation
a variable that holds text
a special type of loop
What is the result of 10 - 2 + 2 * 5
20
18
16
14
What does the // symbol represent?
real divisision
modulo division
integer division
What does the modulo operator (%) return?
the whole number from a division
the sum of two numbers
the result of the division including decimal points
the remainder of a division
Check answers
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.
Read the licence
Lesson 2 of 3 · GCSE level, ages 14 to 16
Arrays and lists
By the end:
I can describe the differences between lists and arrays and use a list in a program.
Key learning points
Data structures are used to store data in an organised and accessible way.
Data structures can be static or dynamic.
Static data structures reserve memory locations for a set amount of data. Their size cannot change.
Dynamic data structures are more flexible. The memory capacity is not fixed.
Keywords
static
a data structure that has a fixed size in memory
dynamic
a data structure that can grow or shrink to accommodate items
array
a static data structure that contains items of the same data type
list
a dynamic data structure that can contain items of different data types
A common mistake
Mistake: Arrays and lists behave in the same way.
In fact: An array has a predefined fixed size. A list can vary in size throughout program execution.
Check what you learned
From Oak National Academy's exit quiz. Choose every answer that is right.
Which of the following is true about arrays?
Arrays are dynamic data structures that allow adding and deleting items.
Arrays store items of different data types.
The size of an array is fixed, and items must all be of the same type.
Arrays can grow or shrink in size as needed.
What is the correct way to create a list in Python?
`planets = ("Mercury", "Venus", "Earth")`
`planets = ["Mercury", "Venus", "Earth"]`
`planets = {Mercury, Venus, Earth}`
`planets = "Mercury", "Venus", "Earth"`
Which of the following methods allows you to pick a random planet from the list planets?
`random.select(planets)`
`random.choice(planets)`
`random.shuffle(planets)`
Check answers
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.
Read the licence
Lesson 3 of 3 · Lower secondary, ages 11 to 14
Builds the basics this topic needs
Problem solving using programming constructs
By the end:
I can combine sequence, selection and iteration in a program to solve a problem.
Key learning points
The programming constructs of sequence, selection and iteration can be combined to make more complex programs.
Analysing a problem involves decomposing it into its constituent parts.
Algorithms can be developed to solve a problem.
A problem can be solved in multiple ways.
Keywords
problem
a situation or task that needs to be solved
decomposition
breaking down a problem into smaller parts to make the task more manageable
solution
a means of solving a problem
A common mistake
Mistake: Programming constructs cannot be combined in the same code block.
In fact: The programming constructs of sequence, selection and iteration can be combined within the same code block to make more complex programs.
A computing lesson by Oak National Academy licensed under the Open Government Licence (OGL) v3.0.
Read the licence
The wording comes from each publisher. The layout and the links to your syllabus are ours.