Skip to content
Learn to Code — Python, Java, C, SQL & Web

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

Start the course

Exam readiness

Aim for 80%+ on both first attempts and pass every core task.

Assessment A · Assessment B

Lessons in this course

35 of 35 lessons shown

Diagnostic

  1. Optional entry diagnostic Find your starting point Lesson 0 · Optional diagnostic · ★

Foundations

  1. OUTPUT and sequence Pseudocode is the exam's language · OUTPUT shows a value Lesson 1 · 4 required tasks · ★
  2. Variables and DECLARE A variable stores one value · DECLARE, then the arrow Lesson 2 · 3 required tasks · ★
  3. Types and constants Six data types · CONSTANT uses = Lesson 3 · 4 required tasks · ★
  4. Arithmetic, DIV and MOD The arithmetic operators · DIV and MOD sit between the numbers · INT drops the fractional part Lesson 4 · 3 required tasks · ★
  5. Selection: IF IF … THEN on one line · ELSE is the other path · Relational operators · AND, OR and NOT Lesson 5 · 4 required tasks · ★★
  6. Selection: CASE CASE OF picks one branch · A range of values, and longer branches Lesson 6 · 3 required tasks · ★★
  7. Iteration: FOR FOR counts · STEP changes the jump Lesson 7 · 3 required tasks · ★★
  8. Iteration: WHILE and REPEAT WHILE tests first · REPEAT runs, then tests Lesson 8 · 3 required tasks · ★★
  9. String handling LENGTH, MID and RIGHT · UCASE and LCASE take one character · & joins strings Lesson 9 · 4 required tasks · ★★
  10. 1-D arrays A list of the same type · A loop visits every cell Lesson 10 · 3 required tasks · ★★
  11. 2-D arrays Rows and columns · One loop inside another Lesson 11 · 3 required tasks · ★★★
  12. Procedures and BYREF CALL runs a procedure · By value is the default · BYREF passes the real variable Lesson 12 · 3 required tasks · ★★★
  13. 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 · ★★★
  14. 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 · ★★★
  15. 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 · ★★★
  16. 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 · ★★★★
  17. 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 · ★★★★
  18. 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 · ★★
  19. 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

  1. Putting it together One program uses several constructs · What this course left for A2 Lesson 16 · 3 required tasks · ★★★
  2. Read a scenario and plan an algorithm From a scenario to a contract · Guided, then independent Lesson 20 · 3 required tasks · ★★★
  3. Choose loops and validate input Match the loop to the requirement · Separate attempts from accepted items · Test the decisions Lesson 21 · 3 required tasks · ★★★
  4. Combine arrays, strings and searches Store only what the problem needs · Transfer the pattern Lesson 22 · 3 required tasks · ★★★
  5. 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 · ★★★★
  6. 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 · ★★★
  7. 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 · ★★★
  8. Design subroutines and parameter contracts Choose a procedure or function · Review the interfaces Lesson 23 · 3 required tasks · ★★★
  9. 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 · ★★★
  10. Trace, diagnose and repair algorithms Trace in execution order · Use a counterexample to find the fault · Distinguish error types Lesson 25 · 3 required tasks · ★★★
  11. 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 · ★★★★
  12. Project Solve a multipart tournament scenario Read every part before coding · Build a checklist · Review without a template Lesson 27 · Project · ★★★★

Exam readiness

  1. Exam workshop: plan, answer and review Plan a multipart answer · Where marks are lost · Marking checklist · Attempt, then compare Lesson 28 · 3 required tasks · ★★★★
  2. Independent assessment A: parcel dispatch Independent exam workshop Lesson 30 · 4 required tasks · ★★★★★
  3. 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

Log in or create account

IGCSE, A-Level & AP