levo

Algorithms

Flowcharts, pseudocode and structure diagrams

  • 3 things to know
  • J277/02

Overview

Inputs, processes and outputs, structure diagrams, pseudocode, the flowchart symbols for decisions, inputs and outputs, sub programs and loops, and nesting.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Process

What are the inputs, processes and outputs of a problem?

Process

A program asks for the length and width of a rectangular room and displays its floor area. Identify the inputs, process and output.

Key term

What is a structure diagram?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What are the inputs, processes and outputs of a problem?

    Model answer

    Inputs are the data a program is given to work on. Processes are the actions carried out on that data. Outputs are the results the program produces.

  2. 2

    A program asks for the length and width of a rectangular room and displays its floor area. Identify the inputs, process and output.

    Model answer

    The inputs are the length and the width. The process multiplies the length by the width. The output is the floor area shown on screen.

  3. 3

    What is a structure diagram?

    Model answer

    A structure diagram shows a problem broken down into smaller sub-sections. The whole problem sits at the top and each level below splits it into smaller parts.

  4. 4

    What do the lines in a structure diagram show?

    Model answer

    Each line links a sub-section to the larger task it belongs to. Following a branch downwards shows how a task is broken into smaller tasks.

  5. 5

    A structure diagram for a quiz program has "Quiz" at the top. What might the level below it show?

    Model answer

    The level below might show boxes for asking a question, checking the answer, updating the score and showing the result. Each box could be split further on a lower level.

  6. 6

    Define the term pseudocode.

    Model answer

    Pseudocode is a way of writing an algorithm in structured, English-like statements. Pseudocode does not follow the strict syntax of any one programming language.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Systems Architecture
Memory and Storage
Computer Networks, Connections and Protocols
Network Security

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A bit is the unit of data.
smallestlargestmain

Blank Blitz makes facts automatic

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

AThe sum 0 + 0 is 0, and 0 + 1 is 1.
BThe sum 1 + 1 is 0 carry 1.
CThe sum 1 + 1 + 1 is 1 carry 1.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

Integer means a whole number with no fractional part.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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