UNIHIVE

Study Hub UNIPORT CSC 180.1

CSC 180.1 · Introduction to Computer Science and BASIC Programming

Functional components and characteristics of a computer

Input, processing, memory, storage and output; hardware and software; and what makes a computer useful.

Our notes

2 min read

The basic idea

A computer is an electronic machine that accepts data (input), processes it under the control of stored instructions (a program), stores it, and gives information (output).

Functional components

  1. Input unit: keyboard, mouse, scanner, microphone, camera, touch screen, sensors.
  2. Central Processing Unit (CPU):
  • Control Unit (CU): fetches instructions, decodes them, directs the other parts.
  • Arithmetic and Logic Unit (ALU): does arithmetic (+, −, ×, ÷) and logic (comparisons, AND, OR, NOT).
  • Registers: tiny, very fast storage inside the CPU.
  1. Main memory (primary storage):
  • RAM: read/write, holds running programs and data, volatile (lost when power goes).
  • ROM: read-only, keeps start-up instructions (firmware), non-volatile.
  • Cache: fast memory between CPU and RAM.
  1. Secondary storage: hard disk, SSD, flash drive, memory card, optical disc, cloud storage. Non-volatile and larger, but slower.
  2. Output unit: monitor, printer, speaker, projector.

Data moves between parts along buses (data, address and control buses).

The fetch-decode-execute cycle

The CPU repeatedly: fetches the next instruction from memory, decodes it, executes it, and stores the result. The clock speed (GHz) sets how many cycles per second.

Hardware, software and users

  • Hardware: the physical parts.
  • Software: programs. System software (operating systems such as Windows, Linux, Android; utilities; language translators) and application software (word processors, spreadsheets, games, apps).
  • Liveware (humans): users, programmers, operators.

Units of storage

1 bit = a 0 or 1; 1 byte = 8 bits; 1 KB = 1,024 bytes; 1 MB = 1,024 KB; 1 GB = 1,024 MB; 1 TB = 1,024 GB. (Disk makers often use 1,000 instead of 1,024.)

Worked example

How many bits in 2 KB? 2 × 1,024 × 8 = 16,384 bits.

Characteristics of a computer

  • Speed: millions or billions of operations per second.
  • Accuracy: errors usually come from wrong data or programs ("garbage in, garbage out", GIGO).
  • Storage: huge amounts of data kept and recalled.
  • Diligence: no tiredness or boredom.
  • Versatility: many kinds of tasks.
  • Automation: follows a stored program without human help.

Limitations: no intelligence of its own beyond its programs, no feelings, needs power and maintenance.

Exams usually ask

  • Draw and explain the block diagram of a computer.
  • Distinguish RAM from ROM, and primary from secondary storage.
  • State the characteristics and limitations of a computer.

Common mistake

Calling the system unit or the hard disk "the CPU". The CPU is the processor chip inside the system unit.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All CSC 180.1 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.