Home / Notes / Class 9 / Computer Science / Computer hardware

Computer hardware: Class 9 Computer Science

Written by Usman Tariq (Computer Science)

Parts of a computer system, input, output and storage devices, the CPU and its units, memory types, ports, and the units used to measure storage and speed, with simple care tips.

Key points

A computer is an electronic machine that accepts data, processes it under the control of instructions, stores it and gives out information. Data means raw facts such as numbers and names. Information is data that has been processed so that it has meaning.

Hardware means the physical parts of a computer that you can see and touch, such as the keyboard, monitor, mouse and system unit. Software means the programs that tell the hardware what to do. Hardware cannot do useful work without software.

The computer works in four basic steps called the information processing cycle:

  • Input: data and instructions enter the computer.
  • Processing: the CPU works on the data.
  • Storage: data and results are kept for later use.
  • Output: results are shown or printed for the user.

Input devices send data and instructions into the computer. Common examples are:

  • Keyboard: enters text, numbers and commands using keys.
  • Mouse: a pointing device used to move a cursor and click.
  • Scanner: converts printed pictures or pages into digital form.
  • Microphone: records sound.
  • Webcam and digital camera: capture pictures and video.
  • Touch screen: lets the user touch the display to give commands.

Output devices show the result of processing to the user:

  • Monitor: shows text and pictures on a screen. This is called soft copy output.
  • Printer: produces output on paper. This is called hard copy output. Inkjet and laser printers are common types.
  • Speakers: produce sound.
  • Projector: shows the screen on a wall or a large screen.

The system unit is the box that holds the main parts of the computer. Inside it are the motherboard, the CPU, RAM, the hard disk or SSD, the power supply and expansion cards. The motherboard is the main circuit board. All other parts are connected to it.

The CPU (Central Processing Unit) is the brain of the computer. It has three main parts:

  • Control Unit (CU): directs and coordinates all activities, and fetches and decodes instructions.
  • Arithmetic Logic Unit (ALU): performs arithmetic (add, subtract, multiply, divide) and logic operations (comparisons such as greater than or equal to).
  • Registers: very small, very fast storage places inside the CPU that hold the data being used at that moment.

The speed of a CPU is measured in hertz. One hertz is one cycle per second. Modern processors are measured in gigahertz (GHz). A processor with more cores can work on more than one task at the same time.

Memory is divided into main memory and secondary storage:

  • RAM (Random Access Memory): temporary memory that holds the programs and data in use. It is volatile, which means its contents are lost when power is off. Both reading and writing are possible.
  • ROM (Read Only Memory): permanent memory that keeps the start-up instructions (firmware). It is non-volatile, so it keeps its contents without power.
  • Cache memory: a small, very fast memory between the CPU and RAM that stores frequently used data.

Secondary storage keeps data permanently, even when the computer is switched off:

  • Hard disk drive (HDD): magnetic disks with moving parts, large and cheap.
  • Solid state drive (SSD): uses flash memory with no moving parts, faster and quieter.
  • Optical discs (CD, DVD): data is read with a laser.
  • USB flash drive and memory card: small portable flash storage.

A bit (binary digit) is the smallest unit of data and is either 0 or 1. Eight bits make one byte, which stores one character. Larger units are kilobyte (KB), megabyte (MB), gigabyte (GB) and terabyte (TB). In most school books, 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB and 1 TB = 1024 GB.

Ports let you connect devices to the computer:

  • USB port: connects keyboards, mice, printers, flash drives and phones.
  • HDMI port: carries video and sound to a monitor or television.
  • Audio ports: for headphones and microphones.
  • Ethernet (LAN) port: connects the computer to a wired network.

Care of hardware: keep the computer in a clean, dry place, use a UPS or surge protector against power cuts and voltage spikes, shut down properly, and do not eat or drink near the machine.

Follow a simple input-process-output-storage example: a student types an essay with a keyboard, the CPU executes the editor’s instructions using RAM, the display presents the text, and saving writes the file to persistent storage. RAM and storage are not interchangeable.

Study tip: Learn the lists of devices by grouping them into input, output and storage, and give one use for each. For storage conversions, remember that you multiply by 1024 when going to a smaller unit and divide by 1024 when going to a larger one. In differences questions, write two or three clear points for each side.

Definitions and flashcards

Say the meaning first, then open the card to check.

Hardware

The physical parts of a computer system.

Input device

A device used to enter data and instructions into the computer.

Output device

A device that presents the processed result to the user.

CPU

The part that processes data and controls the whole computer.

RAM

Temporary, volatile memory that holds data and programs in use.

ROM

Permanent memory holding start-up instructions.

Byte

A group of 8 bits, enough to store one character.

Motherboard

The main circuit board that connects all the parts.

Peripheral

Any device connected to the computer, such as a printer.

Formula sheet

NameFormulaWhat it means
Bytes in a kilobyte1 KB = 1024 bytesBasic storage conversion
Larger storage units1 MB = 1024 KB, 1 GB = 1024 MB, 1 TB = 1024 GBEach unit is 1024 times the one before
Bits and bytes1 byte = 8 bitsUsed to convert bits to bytes

Short questions with model answers

These are the kind of questions asked for 2, 3 and 5 marks. Try each one before opening the answer.

Differentiate between hardware and software. (3 marks)

Hardware is the physical part of a computer that can be touched, such as the monitor and keyboard. Software is the set of programs and instructions that make the hardware work, such as Windows or a word processor. Hardware needs software to be useful.

Name the three main parts of the CPU. (2 marks)

The control unit, the arithmetic logic unit and the registers.

What is the difference between RAM and ROM? (3 marks)

RAM is temporary and volatile. It holds data and programs that are being used, and its contents are lost when power is off. ROM is permanent and non-volatile. It stores start-up instructions that stay even when the power is off. Data can be written to RAM easily, but ROM is normally only read.

Explain the information processing cycle. (5 marks)

The cycle has four steps. In input, data and instructions are entered through devices such as a keyboard. In processing, the CPU works on the data using the instructions. In storage, data and results are saved in memory or on a disk. In output, the result is displayed on a monitor, printed or played as sound.

Why does a computer need secondary storage? (2 marks)

RAM loses its contents when the power goes off and has limited size. Secondary storage such as a hard disk or SSD keeps files permanently and has a much larger capacity.

Name any two output devices and state what each does. (2 marks)

A monitor shows text, pictures and video on a screen. A printer produces a hard copy of the output on paper.

Distinguish RAM from persistent storage. (2 marks)

RAM temporarily holds working data and normally loses it when power is removed. Persistent storage, such as an SSD, keeps saved files after shutdown.

Explain why a touchscreen is both an input and an output device. (3 marks)

Its display presents text and images as output. Its touch sensor detects a user’s actions as input. These two functions are combined in one device.

Describe the hardware roles involved in typing and saving a document. (5 marks)

The keyboard provides input. The CPU executes the editor’s instructions, using RAM for current working data. The monitor displays the document. Saving writes the file to persistent storage such as an SSD. A saved file can survive shutdown even though the working copy in ordinary RAM does not.

Numericals with worked steps

How many bytes are there in 2 KB?
  1. 1 KB = 1024 bytes
  2. 2 KB = 2 × 1024
  3. 2 × 1024 = 2048

Answer: 2048 bytes

How many kilobytes are there in 3 MB?
  1. 1 MB = 1024 KB
  2. 3 MB = 3 × 1024 KB
  3. 3 × 1024 = 3072

Answer: 3072 KB

A file is 4096 KB in size. Express it in MB.
  1. 1 MB = 1024 KB
  2. Size in MB = 4096 ÷ 1024
  3. 4096 ÷ 1024 = 4

Answer: 4 MB

Common mistakes

  • Saying that RAM is permanent storage. RAM is temporary and loses its data when power is off.
  • Confusing a bit with a byte. A byte is 8 bits, and a bit is a single 0 or 1.
  • Calling the monitor, the keyboard or the mouse the computer. The computer is the system unit with its processing parts.
  • Listing a touch screen only as an output device. It works as both an input and an output device.
  • Mixing up the roles of the control unit and the ALU. The control unit directs, the ALU calculates and compares.

Practise this chapter

Practice questions and timed test Printable worksheet

Previous: Introduction to computers Next: Software