levo

Algorithms

Pseudo-code, flowcharts and trace tables

  • 3 things to know
  • Paper 1
Start revising · £5/month

Overview

Pseudo-code and why programmers design in it, the flowchart symbols for decisions, inputs, outputs and subroutines, trace tables, visual inspection, and short algorithms to trace by hand.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is output by the algorithm x ← 5, then WHILE x > 1, x ← x − 2, ENDWHILE, then OUTPUT x?

Key term

What is the purpose of the lines temp ← a, then a ← b, then b ← temp?

Key term

What is pseudo-code?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is pseudo-code?

    Model answer

    Pseudo-code is a structured, English-like way of writing an algorithm. Pseudo-code is not a real programming language, so a computer cannot run it directly.

  2. 2

    Why do programmers design algorithms in pseudo-code?

    Model answer

    Pseudo-code lets a programmer concentrate on the logic without worrying about exact syntax. The design can then be coded in any programming language.

  3. 3

    What is a flowchart?

    Model answer

    A flowchart is a diagram of an algorithm made from standard symbols. Arrows between the symbols show the order in which the steps are carried out.

  4. 4

    Which flowchart symbol represents a decision?

    Model answer

    A diamond represents a decision. The diamond has two exits, one for a true answer and one for a false answer.

  5. 5

    Which flowchart symbol represents an input or an output?

    Model answer

    A parallelogram represents an input or an output. An example is reading a number typed by the user.

  6. 6

    What do a rounded rectangle and a plain rectangle show in a flowchart?

    Model answer

    A rounded rectangle, called a terminal, marks the start or the end. A plain rectangle shows a process such as a calculation.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Algorithms
Programming
Data Representation
Computer Systems

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

The table one extra row.
gainslosescopies

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

ASC means sorting from smallest to largest, or A to Z.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Algorithms, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.