Skip to content

The Five Basic Functions of a Computer

低頻~22 min5 terms6 past questions

Goals of this unit

  • Divide the basic functions of a computer into five and explain the role of each.
  • Tell apart the work that arithmetic/logic and control each handle inside the CPU.
  • Explain how each storage location differs in speed and capacity, and which way data flows for input and output.
Terms at a glance (5)
TermIn one lineExample unitsHow data moves
演算Calculating and comparing dataArithmetic logic unit (inside the CPU)Processing inside
制御Fetching and decoding instructions, then directing the other unitsControl unit (inside the CPU)Directions inside
記憶Holding programs and data so they can be read and writtenMain memory, auxiliary storage, registersKept inside
入力Bringing data or instructions in from outsideKeyboard, mouseFrom outside to inside
出力Sending results out in a form the outside world can useDisplay, printerFrom inside to outside

Terms

演算Arithmetic/logic (computation)

Open in glossary 演算

Arithmetic/logic (演算) is the function that performs calculations such as addition and comparisons of size on data.

Computation is carried out by the arithmetic logic unit inside the CPU, which together with the control unit makes up the CPU (processor). It includes arithmetic operations, which calculate with numbers, and logical operations, which combine true/false values with AND, OR and similar operators.

AnalogyThink of a clerk who quickly and accurately finishes whatever sums are handed over. What to calculate always comes from someone else.

How to rememberThe kanji 演 means "to perform", as on a stage: picture an actor who goes on only after receiving the script, which here is the instruction.

Exam points

  • ExamArithmetic/logic (演算) is the side that carries out calculations and comparisons as directed by control (制御).

1 past questions on this term 演算

Control (制御) is the function that takes program instructions out of storage, decodes them, and directs the other units to act.

  1. Fetch
  2. Decode
  3. Execute
  4. Next instruction

Go back to the start and repeat the same flow with the next instruction.

4 / 4

Control is the job of the control unit inside the CPU. The control unit keeps the location in main memory of the next instruction to process (its address) in a storage location called the program counter, and moves that value on to the next instruction each time it fetches one. Repeating fetch, decode and execute in this way moves the program forward step by step.

AnalogyIt is like a conductor who reads the score bar by bar and cues each player to come in, without playing an instrument himself.

How to rememberThe kanji 制 carries the sense of regulating and keeping things in order, a reminder that this function runs the whole show.

Exam points

  • ExamThe program counter (プログラムカウンタ) is a storage (記憶) location inside the CPU that points to where in main memory (主記憶) the next instruction to process is held, that is, its address (アドレス).

3 past questions on this term 制御

Arithmetic/logic (computation) vs. Control

AspectArithmetic/logic (computation)Control
Key differenceJobCalculates and compares dataDecodes instructions and directs each unit
UnitArithmetic logic unitControl unit
Relation to directionsActs on directionsGives directions

記憶Storage (memory)

Open in glossary 記憶

Storage (記憶) is the function that holds programs and data so they can be read or written when needed.

Storage locationWhere it sitsSpeedCapacity
RegistersInside the CPUFastestVery small
Main memoryOutside the CPU (memory)FastMedium
Auxiliary storage (e.g. SSD, hard disk)Connected as a deviceSlowLarge

A computer places the program it will run in storage beforehand and then fetches its instructions one after another (the stored-program concept). The units that provide storage are main memory, which the CPU reads and writes directly, and auxiliary storage, which keeps programs and data for the long term, while the CPU itself also contains tiny storage locations called registers.

AnalogyIt resembles the difference between a note in your hand, papers spread on your desk, and files stored away in an archive. The closer something is, the faster you can use it, but the less of it fits.

Exam points

  • ExamA register (レジスタ) is a storage location inside the CPU that can be read and written far faster than main memory (主記憶), but it holds only a tiny amount.
  • Mix-upMain memory (主記憶) holds the programs and data currently running, and its contents are lost when the power goes off. Auxiliary storage (補助記憶) keeps its contents without power and serves as long-term storage.

1 past questions on this term 記憶

Input (入力) is the function that brings data and instructions from people or external devices into the computer.

Input is handled by input devices such as keyboards, mice and scanners. The data they bring in travels to main memory and other units over the shared pathway that links the units (the bus).

AnalogyIt is like a shop's front desk, which takes a customer's order and passes it to the workshop in the back.

Exam points

  • ExamA bus (バス) is a shared pathway that links the CPU with main memory (主記憶) and input/output devices (入出力装置) so the units can exchange data.

1 past questions on this term 入力

Output (出力) is the function that sends the results of processing inside the computer out in a form people or external devices can use.

Output is handled by output devices, for example a display that shows things on screen, a printer that puts them on paper, or a speaker that produces sound. What they send out is data held in storage, such as the results of computation.

AnalogyIt is like the pickup counter that hands finished goods from the workshop to the customer.

Exam points

  • Mix-upInput (入力) and output (出力) are distinguished by direction: whether data comes in from outside or goes out from inside. Some devices, such as a touch panel (タッチパネル), handle both.

1 past questions on this term 出力

Input vs. Output

AspectInputOutput
Key differenceData directionFrom outside to insideFrom inside to outside
Example devicesKeyboard, mouse, scannerDisplay, printer, speaker

Key points

  • A computer has five functions: arithmetic/logic, control, storage, input and output.
  • The CPU (processor) consists of the arithmetic logic unit and the control unit.
  • The control unit tracks the location of the next instruction with the program counter and moves the program forward by repeating fetch, decode and execute.
  • Storage locations include the registers inside the CPU, main memory and auxiliary storage; the closer to the CPU, the faster but the smaller.

Check questions

5 past questions from this unit

Start the check questions

All past questions in this topic