levo

Programming

The purpose of a computer program

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

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.

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.

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

Cram the night before, weakest topic first

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

A check requires a value.
presencerangeformat

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.

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