• Practice
  • About 14 min
  • 5 practice questions

How a computer works: input, processing and output

Trace how data moves through a computer from the input unit, through the processing unit with its memory unit, control unit and ALU, to the output unit, and tell data from information.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Name the three main units of a computer and the job of each.
  • Name the three parts of the processing unit: memory unit, control unit and ALU.
  • Tell raw data from processed information.
  • Explain what a program is.

Computers are now used in banks, hospitals, railway reservation, weather offices, laboratories and schools. They entered every field because they work at very high speed. But how does a computer actually turn what you type into an answer? Every computer, from a laptop to a supercomputer, follows the same basic plan.

The three main units

  • Input unit: all data and instructions enter the computer through this unit. A keyboard is the usual input device; a mouse, scanner, microphone and camera are others.
  • Processing unit: this is where the work is done. It has three parts: the memory unit, the control unit and the ALU (Arithmetic and Logic Unit).
  • Output unit: the result, solution or answer is finally sent here. A screen (monitor) or a printer is the usual output device; speakers are another.

Working of a computer

  1. Input unit Keyboard, mouse or scanner sends data in.
  2. Memory unit Stores the data, the instructions and later the results.
  3. Control unit Directs every step and tells each part what to do and when.
  4. ALU Does arithmetic (add, subtract...) and logic (compare: greater, equal, smaller).
  5. Output unit Monitor or printer shows the result.

Inside the processing unit

The memory unit is the place where data received from the input, and the answer produced by the computer, are stored. The control unit acts like the manager: it picks up each instruction, decides which part must act and keeps everything in order. The ALU carries out calculations such as addition and multiplication and logical decisions such as 'is 45 greater than 40?'. Together these parts are often called the processor.

Data, information and programs

Data is information in its raw, unprocessed form, for example a list of marks of 40 students. When the computer processes the data, for example by working out the class average or arranging the names in order of marks, the result is useful information. A program is a group of commands given to a computer telling it exactly what to do, step by step. Without a program the computer does nothing.

Worked example 1: following one calculation

Question: A student types two readings, 18 and 24, and asks the computer for their average. Trace the work through the units.

Working: (1) The numbers 18 and 24 and the command are typed on the keyboard: input unit. (2) They are stored in the memory unit. (3) The control unit fetches the instruction and sends the numbers to the ALU. (4) The ALU adds them: 18 + 24 = 42, and divides by 2: 42 ÷ 2 = 21. (5) The answer 21 is stored in memory. (6) The control unit sends it to the monitor: output unit. The student sees 21.

Worked example 2: data or information?

Question: Classify each as data or information: (a) the daily rainfall readings of a town for one month; (b) the statement 'the wettest day of the month was the 14th'.

Working: (a) is a set of raw readings that have not been processed, so it is data. (b) was obtained by comparing all the readings and picking the largest, so it is processed information. The comparison is a logical operation that a computer's ALU can carry out.

Units of a computer at a glance
UnitExample devices or partsJob
InputKeyboard, mouse, scanner, microphoneSends data and commands in
ProcessingMemory unit, control unit, ALUStores, controls, calculates and compares
OutputMonitor, printer, speakersShows or gives out the result

Input → processing (memory unit, control unit, ALU) → output. Data goes in raw; information comes out processed, by following a program.

Key takeaways: a computer has an input unit, a processing unit and an output unit. The processing unit contains the memory unit, the control unit and the ALU. Data is raw; information is processed data. A program is the set of commands that tells the computer what to do.

Check your understanding

  1. 1. Which unit of a computer carries out addition and comparison of numbers?

    1. Input unit
    2. Output unit
    3. ALU (Arithmetic and Logic Unit)
    4. Monitor
    Show answer

    Answer: C. The ALU does arithmetic (such as addition) and logic (such as comparing two numbers). Input and output units only bring data in or send results out.

  2. 2. Which part of the processing unit directs the other parts and keeps the steps in order?

    1. Control unit
    2. Keyboard
    3. Printer
    4. ALU
    Show answer

    Answer: A. The control unit fetches instructions and tells each part what to do and when, like a manager.

  3. 3. Which pair contains one input device and one output device?

    1. Monitor and printer
    2. Keyboard and monitor
    3. Keyboard and mouse
    4. Printer and speakers
    Show answer

    Answer: B. A keyboard sends data in (input) and a monitor shows results (output). The other pairs are both output or both input devices.

  4. 4. A list of the heights of all students in a class, not yet arranged or averaged, is an example of

    1. a program
    2. an output device
    3. processed information
    4. data
    Show answer

    Answer: D. Raw, unprocessed values are data. Once they are averaged or arranged, the result becomes information.

  5. 5. A computer is asked for the average of 30 and 46. What will the output unit show, and which unit calculated it?

    1. 38, calculated by the ALU
    2. 76, calculated by the control unit
    3. 38, calculated by the monitor
    4. 16, calculated by the ALU
    Show answer

    Answer: A. The ALU adds 30 + 46 = 76 and divides by 2 to get 38. The monitor only displays the answer; the control unit directs but does not calculate.

Privacy · Terms · Refunds · Delivery