Skip to the page
Thunder Pigeon
KS3 computing, Year 8

KS3 computing revision: Algorithms and programming

34 things to learn in this topic9 memory hooks117 questions in the app

This is one of 3 KS3 computing topics in the library (see them all). The list below is what your child needs to know for algorithms and programming, so that in lessons and past papers they can work out how to use it without stopping to remember it. They practise it before and alongside past papers and teaching, not instead of them.

Written to follow the national curriculum for key stage 3 computing.

Claude, an AI model made by Anthropic, wrote this topic. Claude then checked every answer separately before we added it. If you find a mistake, tell us.

Try a few

Tap an answer. In the app, your child gets any question they miss again at the end, and again on later days.

Ana is planning a quiz game. She writes down the parts: ask a question, check the answer, keep the score and show the final score. What is she doing?

The London Underground map shows the stations in order and where the lines meet. It doesn't show the real distances between stations. What is this an example of?

Max notices that the prices of a cinema ticket, a bus ticket and a swimming ticket are all worked out with the same steps. What is Max doing?

Which of these is an algorithm?

A programmer models a car park to work out when it will be full. Which detail should the model keep?

What there is to learn

The app keeps track of each of these separately. Once your child has got one right three times in a row, it counts as learned.

  • DecompositionBreaking a big problem into smaller parts
  • AbstractionLeaving out detail the problem doesn't need, keeping what it does
  • Pattern recognitionSpotting what is the same in different problems or parts of a problem
  • AlgorithmA set of step-by-step instructions to solve a problem
  • What a computer model keepsOnly the details needed for the problem it solves
  • State and behaviour in a modelState is the values it holds now; behaviour is the rules for how they change
  • How to check a modelCompare its results with the real system, then improve it
  • Flowchart symbolsOval: start or stop. Parallelogram: input or output. Rectangle: a process. Diamond: a decision.
  • PseudocodeAn algorithm written in structured English, not a real programming language
  • How a linear search worksCheck each value in turn from the start until you find it or reach the end
  • How a binary search worksCheck the middle value, throw away the half the target can't be in, repeat
  • What a binary search needsThe list must be sorted
  • Linear or binary search?Binary needs far fewer comparisons on a long sorted list; linear works on any list
  • How a bubble sort worksCompare neighbours, swap if in the wrong order, repeat passes until no swaps
  • How a merge sort worksSplit the list into single values, then merge them back together in order
  • Bubble sort or merge sort?Bubble sort is simpler to write; merge sort is much quicker on long lists
  • Textual and block-based languagesPython is typed as text; Scratch is built from blocks
  • Scratch blocks for loops, choices and inputThe "repeat" and "repeat until" blocks loop, "if then else" chooses, and "ask and wait" gets input
  • VariableA named store for a value that can change
  • Data typesInteger: whole number. Float: decimal. String: text. Boolean: True or False.
  • Input and output in Pythonprint() shows output; input() gets what the user types, always as a string
  • SequenceInstructions run one after another, in the order they're written
  • Selection with if, elif and elsePython checks each condition in turn and runs the first one that's true
  • Comparing values in Python== equal to, != not equal to, < less than, > more than, <= and >=
  • for loopsA for loop repeats a set number of times (count-controlled)
  • while loopsA while loop repeats while a condition is true (condition-controlled)
  • Lists and indexesA list holds several values, and positions (indexes) start at 0
  • Working with a listlen() counts the values; append() adds one to the end
  • Functions and proceduresA function returns a value; a procedure does a job but returns nothing
  • ParametersA variable in a function's brackets that receives a value when it's called
  • Why programs are made modularSplitting a program into functions makes it easier to read, test, fix and reuse
  • How to trace codeGo line by line, writing each variable's new value in a trace table
  • Syntax errorA mistake in the rules of the language, so the program won't run
  • Logic errorThe program runs but gives the wrong result

Memory hooks

Computational thinkingDogs Prefer Afternoon Adventures: Decomposition, Pattern recognition, Abstraction, Algorithms.
Flowchart shapesOvals open and close. Diamonds decide. Parallelograms put in and put out. Rectangles do the work.
Counting from 0Python counts list positions like a lift counts floors: the ground floor is 0.
Binary searchLike finding a word in a dictionary: open it in the middle, then ignore the half the word can't be in.
= or ==One = stores a value. Two == compare two values.
Bubble sortOn each pass, the biggest value left bubbles up to the end.
for or whilefor: you know how many times. while: you know when to stop.
Syntax or logicSyntax error: it won't run. Logic error: it runs, but the answer is wrong.
Function or procedureA function hands an answer back with return. A procedure just does its job.

More KS3 computing topics

All of them on one page: KS3 computing revision topics. There's more on the subject in How to revise: revision techniques that work, and more about the app on Year 7 to 9 (KS3) revision.

Revise algorithms and programming in the app

Sign up, add your child and link their phone, then add this topic from the library. It's free for 14 days, with no card.

Sign up free