GuidesComputer SciencePaper 2 · last-minute revision
3 days to go

GCSE Computer Science Paper 2: last-minute revision

Three days left. Paper 2 tests whether you can actually think like a programmer on paper: trace tables, pseudocode, SQL, logic gates and writing your own algorithms. These are the questions students revise least and lose the most marks on. Here's the order that fixes that.

OCR J277: pseudocode, algorithms and programming focus
The plan

Your 3-day plan

One focus per day, building to a timed run. Work it in order.

3
3 days to go

Trace tables and pseudocode syntax

  • Practise trace tables until the method is automatic: one column per variable, one row per line of code executed, and update every column even when a variable doesn't change on that line. This is tested every single series.
  • Learn OCR's exact pseudocode conventions: INPUT, OUTPUT, IF/ENDIF, FOR/NEXT, WHILE/ENDWHILE. Practise writing in it, not in Python. Writing real Python syntax when pseudocode is asked for costs marks even if the logic is correct.
  • Redo selection and iteration from scratch: write short pseudocode using IF/ELSE, FOR loops and WHILE loops for simple problems (find the largest number in a list, count vowels in a string) until the structure is second nature.
2
2 days to go

Searching, sorting and SQL: the ones everyone skips

  • Perform a full binary search and a full bubble sort by hand on a small data set, writing out each pass or comparison step. You need to be able to demonstrate the algorithm working, not just describe what it does.
  • Learn the SQL worked pattern cold: SELECT [fields] FROM [table] WHERE [condition]. SQL appears on almost every paper and is one of the most skipped questions. A few minutes of practice here is easy marks nobody else picks up.
  • Go through logic gates and truth tables: AND, OR, NOT and combined circuits. Practise completing a truth table for a given Boolean expression and drawing a logic circuit from one, in both directions.
1
1 day to go

Writing full algorithms, validation, testing, and a full past paper

  • Practise writing a complete algorithm from a scenario description. These carry the biggest single allocations on the paper (6 marks is common) and need correct selection, iteration and variable use working together, not just one construct in isolation.
  • Revise input validation methods (range check, length check, type check, presence check, format check) and testing types (normal, boundary, erroneous data) as a list you can apply to any scenario, plus syntax vs logic error definitions.
  • Sit one full past Paper 2 under timed conditions this evening. Mark your own pseudocode and trace tables strictly against the scheme, then re-practise whichever construct or algorithm you got wrong.
Priority order

The topics that come up most

Ranked from analysed past papers. Start at the top: if you run out of time, you will have covered the most-tested ground.

1

Testing and debugging

The single highest-scoring topic on this paper across every analysed session, often reaching 9-10 marks. Syntax vs logic error definitions, debugging given code, and identifying normal/boundary/erroneous test data all come up together.

2

Iteration (loops)

Appears in every session analysed, frequently worth 6+ marks in a full 'write an algorithm' question: FOR loops for a known number of repeats, WHILE loops for condition-controlled repeats.

3

Pseudocode and flowcharts

Tested in most sessions and worth up to 20 marks across a series. Drawing flowcharts and writing pseudocode both require exam-board syntax, not general programming knowledge.

4

Selection (IF statements)

The most consistently tested construct. Appears across constructs questions, flowcharts, debugging and full algorithm-writing tasks, often totalling close to 20 marks in a series.

5

Trace tables

Appeared in every single session analysed: you're given code and asked to track variable values line by line. A missing column or a skipped row is the single most common way students lose marks here.

6

SQL

Appears in every analysed session, usually 3-4 marks, and is one of the most commonly skipped questions on the whole exam. The SELECT/FROM/WHERE pattern is quick to learn and reliable marks nobody else claims.

7

Input validation

Consistently worth 10+ marks across sessions. Know all five validation types (range, length, type, presence, format) and be able to write pseudocode that applies them, not just name them.

8

String handling

Recently the single biggest allocation seen for this topic (6 marks): string functions like length, upper/lower case, substring and concatenation, plus predicting code output.

Your Knowledge Organisers

PrepWise has a one-page Knowledge Organiser for every topic above. In your final 3 days, use them the same way each time: cover the page, try to recall everything from memory, uncover and check what you missed, then repeat that topic again tomorrow.

Open the Computer Science Knowledge Organisers
Cheat sheet

Exam technique

Rules specific to Paper 2. On this paper, structure earns as many marks as knowledge.

1

Write pseudocode, not Python

When the question says 'write an algorithm' or 'write pseudocode', use OCR's conventions (INPUT, OUTPUT, IF/ENDIF, FOR/NEXT). Python-only syntax like print() or colons-and-indentation-only blocks can lose you marks even when the logic is correct. The mark scheme checks for structure, not a specific language.

2

Never skip a trace table column

Rule off one column per variable named in the code, plus an output column if there's an OUTPUT statement. Every row is one line of code executed. If a variable doesn't change on a line, repeat its current value rather than leaving the cell blank. A skipped column is the most common reason full marks are missed here.

3

SQL follows one worked pattern: use it every time

SELECT [the fields you want] FROM [the table name] WHERE [the condition]. Read the question for the exact field and table names given: don't invent your own. This question is worth learning by heart since so many students leave it blank.

4

Binary conversions go right to left

When converting binary to denary, place values are 128, 64, 32, 16, 8, 4, 2, 1 from left to right. Add up the columns where there's a 1. Working left to right instead of matching place values to position is the single most common conversion error.

5

Algorithm-writing questions are marked on construct AND logic

A 6-mark 'write an algorithm' question typically awards marks for using the right construct (loop, selection), the right variable initialisation, and correct logic that solves the actual problem. Getting the syntax right but solving the wrong problem still loses most of the marks, so read the scenario twice before you start writing.

Avoid these

5 mistakes that cost marks

The errors examiners see most on this paper. Each one is an easy mark you already know how to keep.

Writing real Python code instead of pseudocode when pseudocode is asked forUse OCR's pseudocode keywords (INPUT, OUTPUT, IF/THEN/ENDIF, FOR/NEXT, WHILE/ENDWHILE) even if you normally code in Python. The mark scheme rewards algorithmic structure in the board's format, not language-specific syntax.

Missing a variable column in a trace tableBefore you start, list every variable named in the code and give each one its own column, including any that only appear partway through. A trace table with a missing column will have systematically wrong values for the rest of the trace.

Converting binary to denary right to left instead of matching place valuesLine up each bit with its correct place value (128, 64, 32, 16, 8, 4, 2, 1) before adding, rather than just reading the digits in order. Double-check by re-adding your final total.

Giving vague definitions like 'it makes the code better' or 'it makes it faster'Every definition needs a mechanism. For a syntax error, say the code breaks the rules of the language and won't run. For a logic error, say the code runs but produces the wrong result. Vague, outcome-only answers score zero.

Naming a sorting or searching algorithm without being able to perform itKnowing that bubble sort 'compares adjacent items and swaps them' isn't enough if the question gives you a data set and asks you to demonstrate a pass. Practise actually working through bubble sort, insertion sort, merge sort and binary search on paper, not just describing them.

Exam day

The morning of the exam

The 60 minutes before you walk in. Review what you know and settle your nerves.

  • Skim your Knowledge Organisers for SQL and trace tables: these are quick wins that are easy to forget under pressure.
  • Re-read OCR's pseudocode keywords one more time: INPUT, OUTPUT, IF/ENDIF, FOR/NEXT, WHILE/ENDWHILE.
  • Run through binary place values once: 128, 64, 32, 16, 8, 4, 2, 1.
  • Check you have a black pen, a spare pen, and know whether a calculator is allowed for this paper.
  • Do not attempt new topics this morning. Only review what you already know.
  • Remind yourself: pseudocode not Python, one column per variable, SELECT/FROM/WHERE for SQL.

Now test yourself

Trace tables and SQL only click once you have done a few. Practise exam-style Computer Science questions in PrepWise, get marked instantly, and stop skipping the topics that carry easy marks.

Practise Computer Science questions

Start the 3-day plan now

Open the Computer Science Knowledge Organisers, quiz every priority topic and walk in ready. Free during alpha.

Get started with your personalised revision
Get started with your personalised revisionStart here