RecallStrideA BreakellSystems productTry revision

OCR J277 · Computational thinking, algorithms and programming

Designing and tracing algorithms revision

Represent decisions and repetition, trace changing values, and detect logic errors with original examples.

OCR GCSE Computer Science · Topic 2.1.2 · By RecallStride / BreakellSystems

Try J277 revisionAll J277 topics

What to know about designing and tracing algorithms

Represent the same logic clearly

An algorithm may be represented by structured steps, a flowchart or code. A flowchart uses a start/end terminator, processing rectangle, input/output parallelogram and decision diamond with labelled branches. Direction arrows show control flow. Every path should be meaningful; a decision without labels is ambiguous.

Original flowchart: read a parcel mass, compare it with a threshold and print the appropriate route.

Precise code and readable plans

Use sequence for ordered steps, selection for alternatives and iteration for repetition. A clear natural-language plan helps design a solution, but a question requesting OCR Exam Reference Language or a high-level language needs precise programming commands. In the J277 programming section, do not substitute a prose description when code is specifically required.

Focus areas: Designing and tracing algorithms.

Test yourself: questions and answers

Answer each prompt from memory before opening the explanation. These 4 samples come from this topic's 10 original retrieval cards.

Which flowchart symbol represents a decision?

A diamond with labelled outgoing branches.

What is the purpose of a trace table?

To record how relevant variables change as an algorithm executes.

What is a logic error?

A program follows its syntax but does the wrong thing.

What is a syntax error?

Code that violates the programming language's grammatical rules.

Worked examples for this topic

How to complete a pseudocode trace table — Record what a program actually does, one executed statement at a time, with an original worked example.

Turn this topic into a revision session

  1. Explain one idea without looking at the notes.
  2. Compare your answer with the guidance and identify the missing link.
  3. Apply it in a question or short program, then revisit it after a delay.

Free accounts choose one revision topic pack. Pro includes all 26 packs in this course and both published qualifications. Public samples and coding practice are free; PDF guides are separate purchases.

Create a free account

Specification and sources

Check the required scope against the official OCR J277 specification (PDF). RecallStride's explanations and examples are independent learning resources. See our editorial policy or report a correction, including the topic code and statement concerned.