Revise Computing
Revision notesQuestionsFor schools
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Paper 2/Programming Fundamentals

Sequence

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

2.2.1 Programming Fundamentals

Practise exam questions

Programming Fundamentals — Note 2 of 6

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.

What to know

  • 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")

Ready to test yourself?

Practise 2.2.1 questions
← Previous noteVariables, constants, operators, inputs, outputs and assignments2.2.1 Programming FundamentalsNext note →Selection2.2.1 Programming Fundamentals

Back to Programming Fundamentals

Revise another OCR GCSE topic: Data Types, Additional Programming Techniques

Programming Fundamentals

Note 2 of 6

  1. 1Variables, constants, operators, inputs, outputs and assignments
  2. 2Sequence
  3. 3Selection
  4. 4Iteration (count- and condition-controlled loops)
  5. 5Arithmetic operators
  6. 6Boolean operators AND, OR and NOT
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Privacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).