levo

Programming

The purpose of a computer program

  • 3 things to know
  • AS Unit 1

Overview

Computer program, input, process and output model that most programs follow and source code.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Why must every instruction in a program be unambiguous?

Process

Describe the input, process and output model that most programs follow.

Key term

How can one piece of hardware carry out many completely different jobs?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a computer program?

    Model answer

    A computer program is an ordered set of instructions, written in a programming language, that a computer carries out in order to perform a task or solve a problem.

  2. 2

    State the main purpose of writing a computer program.

    Model answer

    The purpose of a computer program is to tell general-purpose hardware exactly what to do, so that a task is carried out automatically, accurately and as often as it is needed.

  3. 3

    Why must every instruction in a program be unambiguous?

    Model answer

    A processor cannot work out what was intended or choose between two readings, so each instruction must have exactly one possible interpretation or the program will not behave as the programmer expects.

  4. 4

    Describe the input, process and output model that most programs follow.

    Model answer

    A program takes in data as input, processes that data according to its instructions, and produces output such as a screen display, a printed report or a stored file.

  5. 5

    How can one piece of hardware carry out many completely different jobs?

    Model answer

    A computer is general-purpose hardware, and loading a different program into memory gives it a different set of instructions, so the same machine can act as a word processor, a games console or a shop till.

  6. 6

    Distinguish between a program and the data it works on.

    Model answer

    A program is the set of instructions that says what is to be done, whereas data is the collection of values those instructions read, change and produce.

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 Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

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 check requires a value.
presencerangeformat

Blank Blitz makes facts automatic

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

ANormal data is 12, which should be accepted.
BBoundary data is 1 and 50, which should be accepted.
C0 and 51, just outside the limits, should be rejected.

Build It gets the exam shape right

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

One byte is made up of 8 bits.
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 Programming, 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.