Back to Programming Language Structure

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

3 lessons from Oak National Academy

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

  1. Arithmetic expressions are used to calculate values.
  2. Arithmetic expressions can be used in selection statements. Expressions either return as True or False.
  3. In real division there is no remainder because the entire value is divided.
  4. Integer division is when any remainder of a division is discarded.
  5. 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?
What is the result of 10 - 2 + 2 * 5
What does the // symbol represent?
What does the modulo operator (%) return?

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

  1. Data structures are used to store data in an organised and accessible way.
  2. Data structures can be static or dynamic.
  3. Static data structures reserve memory locations for a set amount of data. Their size cannot change.
  4. 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?
What is the correct way to create a list in Python?
Which of the following methods allows you to pick a random planet from the list planets?

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.

Take the full lesson on Oak National Academy The video, slides and quizzes for this lesson are on Oak National Academy's site.

Key learning points

  1. The programming constructs of sequence, selection and iteration can be combined to make more complex programs.
  2. Analysing a problem involves decomposing it into its constituent parts.
  3. Algorithms can be developed to solve a problem.
  4. 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.