Revise Computingrevisecomputing.co.uk
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates
At a glanceFeaturesStudentsPricingHow it worksFree GCSE notesExam dates

Knowledge organisers / Programming Fundamentals

The use of the three basic programming constructs used to control the flow of a program: Sequence

All topicsPractise exam questions
Knowledge organiser

Programming Fundamentals

2.2.1b

Practical use of the techniques, Understanding of each technique

What you need to know

Sequence is the simplest programming construct. It means that instructions are executed one after another, in the order they are written. Every program uses sequence as its foundation. The order of instructions matters because each line may depend on the result of a previous line.

Key points

  • Sequence means instructions are executed in order, one after another, from top to bottom.
  • It is the most basic programming construct and forms the foundation of all programs.
  • The order of instructions matters: changing the order can produce different results.
  • Most programs combine sequence with selection and iteration to create more complex behaviour.

Code examples

Sequence example
python
# Each line runs in order
name = input("What is your name? ")
print("Hello, " + name)
print("Welcome to the program")