AS-level CS Pseudocode
Cambridge 9618 pseudocode, from basics to exam questions.
- pseudocode
- 34 Lessons
- Runs in your browser
On this device: 0 of 34 lessons completed
Exam readiness
Aim for 80%+ on both first attempts and pass every core task.
Assessment A · Assessment BLessons in this course
35 of 35 lessons shown
No lessons match. Clear the search or choose another filter.
Diagnostic
Foundations
- OUTPUT and sequence Pseudocode is the exam's language · OUTPUT shows a value Lesson 1 · 4 required tasks · ★
- Variables and DECLARE A variable stores one value · DECLARE, then the arrow Lesson 2 · 3 required tasks · ★
- Types and constants Six data types · CONSTANT uses = Lesson 3 · 4 required tasks · ★
- Arithmetic, DIV and MOD The arithmetic operators · DIV and MOD sit between the numbers · INT drops the fractional part Lesson 4 · 3 required tasks · ★
- Selection: IF IF … THEN on one line · ELSE is the other path · Relational operators · AND, OR and NOT Lesson 5 · 4 required tasks · ★★
- Selection: CASE CASE OF picks one branch · A range of values, and longer branches Lesson 6 · 3 required tasks · ★★
- Iteration: FOR FOR counts · STEP changes the jump Lesson 7 · 3 required tasks · ★★
- Iteration: WHILE and REPEAT WHILE tests first · REPEAT runs, then tests Lesson 8 · 3 required tasks · ★★
- String handling LENGTH, MID and RIGHT · UCASE and LCASE take one character · & joins strings Lesson 9 · 4 required tasks · ★★
- 1-D arrays A list of the same type · A loop visits every cell Lesson 10 · 3 required tasks · ★★
- 2-D arrays Rows and columns · One loop inside another Lesson 11 · 3 required tasks · ★★★
- Procedures and BYREF CALL runs a procedure · By value is the default · BYREF passes the real variable Lesson 12 · 3 required tasks · ★★★
- Functions A function returns one value · What happens when you call it · A function used inside an expression · A function can return TRUE or FALSE Lesson 13 · 3 required tasks · ★★★
- Records Different types under one name · The type is the plan, the variable is the record · A field is read with a dot · An array of records Lesson 14 · 4 required tasks · ★★★
- Text files Data that stays after the program ends · The four statements and the three modes · EOF tells you when to stop · Numbers in a file are text Lesson 15 · 4 required tasks · ★★★
- Linear search and bubble sort Find one value, then order the list · A search can stop early · Bubble the largest to the end · A swap needs three steps Lesson 17 · 3 required tasks · ★★★★
- Stacks, queues and linked lists Three ways to keep items in order · A stack in an array · A queue in an array · A linked list in two arrays Lesson 29 · 4 required tasks · ★★★★
- Built-in functions from the insert A receipt joins a number to text · Check before you convert · ASC and CHR Lesson 18 · 4 required tasks · ★★
- Logic: AND, OR, NOT A club that checks both ends of the age · A day off on either day · AND, OR and NOT side by side · Nest the second decision Lesson 19 · 4 required tasks · ★★
Solving problems
- Putting it together One program uses several constructs · What this course left for A2 Lesson 16 · 3 required tasks · ★★★
- Read a scenario and plan an algorithm From a scenario to a contract · Guided, then independent Lesson 20 · 3 required tasks · ★★★
- Choose loops and validate input Match the loop to the requirement · Separate attempts from accepted items · Test the decisions Lesson 21 · 3 required tasks · ★★★
- Combine arrays, strings and searches Store only what the problem needs · Transfer the pattern Lesson 22 · 3 required tasks · ★★★
- Insert, delete, split and sort A list that grows and shrinks · Insert into a sorted array · Delete an item · Split a line at its commas Lesson 32 · 4 required tasks · ★★★★
- Structure charts and module headers A map of the modules · From arrows to a header · The program behind the chart · Watch the BYREF rule Lesson 33 · 4 required tasks · ★★★
- Testing methods How do you know it works? · Stub testing: test before everything is written · White-box: a test for every path · Black-box: inputs and outputs only Lesson 34 · 3 required tasks · ★★★
- Design subroutines and parameter contracts Choose a procedure or function · Review the interfaces Lesson 23 · 3 required tasks · ★★★
- Build reports from records and text files Choose a record for related fields · Read files without losing the final line · Explain your choices Lesson 24 · 3 required tasks · ★★★
- Trace, diagnose and repair algorithms Trace in execution order · Use a counterexample to find the fault · Distinguish error types Lesson 25 · 3 required tasks · ★★★
- Refine designs and choose test data Refine before writing statements · Translate a flow into control structures · Test with expected outcomes Lesson 26 · 3 required tasks · ★★★★
- Project Solve a multipart tournament scenario Read every part before coding · Build a checklist · Review without a template Lesson 27 · Project · ★★★★
Exam readiness
- Exam workshop: plan, answer and review Plan a multipart answer · Where marks are lost · Marking checklist · Attempt, then compare Lesson 28 · 3 required tasks · ★★★★
- Independent assessment A: parcel dispatch Independent exam workshop Lesson 30 · 4 required tasks · ★★★★★
- Independent assessment B: equipment inspections Independent exam workshop Lesson 31 · 4 required tasks · ★★★★★
Open the Pseudocode reference
Every topic in one place, with short examples you can run.
Where to learn more
- AS pseudocode practice Topic drills and mixed problems with authored hints.
- AS-Level pseudocode reference (this site) Every 9618 rule with runnable examples, in English and Chinese
- Python for A-Level CS (this site) The same ideas, written in Python you can run
- A-Level CS handouts (this site) Programming and data structures for 9618
- IGCSE CS Pseudocode (this site) The 0478 rules for 2026–2028 — they are not the same