Sequence is the fundamental control structure in imperative programming whereby instructions are executed strictly in the order they appear, from top to bottom. Candidates must demonstrate understanding that the program counter advances line-by-line, and that the state of variables is determined by the precise chronological order of assignments and operations. Mastery of sequence is a prerequisite for analyzing flow control; examiners require candidates to accurately trace variable state changes through sequential steps before introducing selection or iteration. This concept underpins the Fetch-Decode-Execute cycle and is assessed through both code writing (AO2) and dry-run tracing (AO2).
Key skills and knowledge for this topic
Key points examiners look for in your answers
Expert advice for maximising your marks
Pitfalls to avoid in your exam answers
Comprehensive revision notes & examples
Essential terms to know
How questions on this topic are typically asked
Related required practicals
Practice questions tailored to this topic