Week 2: Basic Components of a Computer/Computing Device
Lecture Notes:
1. Overview of Computer Architecture:
• Computer architecture refers to the design and structure of the various components
within a computer and how they interact to perform tasks. It determines how the
hardware components are connected and how the software interfaces with the hardware.
• Basic Computer Architecture Components:
o Central Processing Unit (CPU): The brain of the computer, responsible for
executing instructions.
1
o Memory: Temporary storage used for processing instructions and data.
o Storage Devices: Long-term storage for data, including hard drives and SSDs.
o Input/Output Devices: Devices that allow interaction with the computer, such
as keyboards, monitors, and printers.
2. Central Processing Unit (CPU):
The CPU is the heart of the computer. It executes instructions and performs calculations. The
CPU processes data and controls the flow of information between different components of the
computer.
• Components of the CPU:
o Control Unit (CU): Directs the operation of the processor. It interprets and
carries out instructions.
o Arithmetic Logic Unit (ALU): Performs mathematical and logical operations.
o Registers: Small, high-speed storage locations that hold data temporarily for
immediate processing.
• Function of the CPU:
o It retrieves data from memory.
o It decodes the instruction to determine the action.
o It executes the instruction, often involving reading and writing data to and from
memory.
2
3. Memory:
Memory in a computer is used to store data and instructions temporarily or permanently. It is
divided into two main categories: volatile and non-volatile.
A. RAM (Random Access Memory):
• Volatile Memory: RAM loses its data when the power is turned off.
• Function: Stores data and instructions that are currently in use. It allows for quick
access to data and enables the CPU to process tasks faster.
• Types of RAM:
o Dynamic RAM (DRAM): Needs to be refreshed continuously.
o Static RAM (SRAM): Faster and more expensive than DRAM, does not
require refreshing.
3
B. ROM (Read-Only Memory):
• Non-Volatile Memory: ROM retains its data even when the computer is powered off.
• Function: Stores firmware and essential startup instructions for the computer
(BIOS/UEFI), which are required to boot the system.
• Types of ROM:
o PROM (Programmable ROM): Can be written to once.
o EPROM (Erasable Programmable ROM): Can be erased and rewritten using
ultraviolet light.
o EEPROM (Electrically Erasable Programmable ROM): Can be erased and
reprogrammed using electrical signals.
4. Secondary Storage Devices:
Storage devices are used for long-term data storage in a computer. Unlike RAM, data stored
in these devices remains intact when the power is turned off.
A. Hard Disk Drive (HDD):
• Magnetic Storage: Uses rotating disks coated with a magnetic material to store data.
• Capacity: Typically offers large storage capacities but is slower than solid-state drives.
• Speed: Mechanical parts in the HDD lead to slower data access speeds.
4
B. Solid-State Drive (SSD):
• Flash Memory Storage: Uses memory chips to store data, similar to USB flash drives.
• Capacity: Offers similar or smaller capacity compared to HDDs but is faster and more
durable due to the lack of moving parts.
• Speed: SSDs provide much faster data access speeds than HDDs, improving overall
system performance.
5
C. Optical Drives (e.g., CD/DVD):
• Laser Technology: Uses a laser to read and write data onto optical discs.
• Capacity: Relatively low capacity compared to HDDs and SSDs.
• Usage: Commonly used for media distribution and backup.
D. Flash Drives and External Storage:
• Portable Storage Devices: Flash drives, external SSDs, and HDDs provide portable
and expandable storage options for users to back up or transfer files.
6
5. Input and Output Components:
Input and output components allow the user to interact with the computer and provide data to
and from the system.
A. Input Devices
These are hardware components that allow users to interact with a computer system and
provide data, instructions, or control signals.
• Common Examples of Input Devices:
o Keyboard: A primary input device used to type commands and data into the
computer.
o Mouse: A pointing device used to interact with graphical elements on the screen.
o Touchpad/Touchscreen: Input methods typically found on laptops and mobile
devices.
o Scanner: A device used to digitize physical documents and images.
o Microphone: Used to input audio into the system.
o Webcam: Captures video input for communication or recording.
B. Output Devices:
These are hardware components that display or produce the results of data processing,
calculations, or other computer operations.
7
Example of Output Devices:
o Monitor: Displays visual output from the computer, such as text, graphics, and
videos.
o Printer: Produces a physical copy of digital documents or images.
o Speakers/Headphones: Output audio from the computer.
6. Overview of Computing Devices:
Computing devices are electronic machines that accept data, process it, and produce out. These
devices can perform various tasks, such as calculations, data storage, and communication.
Below is overview of the common computing devices:
A. Laptops:
• Portability: Laptops are compact and portable, allowing for mobile computing.
• Components: Typically include integrated components like the CPU, RAM, storage,
and input devices (keyboard and touchpad) in one unit.
• Battery: Powered by rechargeable batteries, enabling on-the-go use without the need
for an electrical outlet.
8
• Uses: Laptops are ideal for both personal and professional use, supporting productivity
tasks, multimedia consumption, and gaming.
B. Desktops:
• Fixed Setup: Desktops are stationary and typically consist of separate components
(monitor, CPU, keyboard, mouse, etc.).
• Components: Desktops are often more powerful than laptops and offer better
customization options (e.g., upgrading RAM, storage, or graphics card).
• Uses: Desktops are suitable for intensive tasks such as gaming, professional
workstations, and server applications.
9
C. Mobile Devices:
• Smartphones and Tablets: Mobile devices are small, portable computing units with
integrated screens, processors, storage, and connectivity.
• Touch Interfaces: Most mobile devices feature touchscreens as their primary input
method.
• Uses: Mobile devices are used for communication, browsing, entertainment, gaming,
and productivity through dedicated apps.
10
Multiple Choice Questions (MCQs):
1. What is the primary function of the Control Unit (CU) in the CPU? a) Perform
arithmetic operations
b) Control the flow of data between components
c) Store data temporarily
d) Decode instructions
Answer: b) Control the flow of data between components
2. Which type of memory is volatile and loses its data when the computer is
powered off? a) ROM
b) RAM
c) SSD
d) HDD
Answer: b) RAM
3. Which of the following is NOT a type of ROM? a) PROM
b) EPROM
c) DRAM
d) EEPROM
Answer: c) DRAM
4. What is the primary advantage of an SSD over an HDD? a) Higher storage
capacity
b) Faster data access speeds
c) Lower cost
d) Longer lifespan
Answer: b) Faster data access speeds
5. Which of the following is an example of an input device? a) Monitor
b) Printer
c) Keyboard
d) Speaker
Answer: c) Keyboard
6. Which computing device is primarily designed for portable use and combines all
components in a single unit? a) Desktop
b) Laptop
c) Server
d) Mainframe
Answer: b) Laptop
7. Which storage device uses flash memory for storing data? a) Hard Disk Drive
b) Solid-State Drive
c) Optical Drive
11
d) Floppy Disk
Answer: b) Solid-State Drive
8. Which of the following is a key feature of mobile devices? a) Fixed setup
b) Large storage capacity
c) Portability and touch interface
d) Requires external power for operation
Answer: c) Portability and touch interface
9. Which component of the CPU is responsible for performing arithmetic and
logical operations? a) Control Unit
b) Arithmetic Logic Unit
c) Registers
d) Cache
Answer: b) Arithmetic Logic Unit
10. What is the main function of a monitor in a computer system? a) Input data
b) Output data visually
c) Store data
d) Control the CPU
Answer: b) Output data visually
Assignment Questions:
1. Describe the basic components of a computer system, including the CPU, memory,
storage devices, and input/output components. How do they interact to enable a
computer to function?
2. Compare and contrast laptops, desktops, and mobile devices. Discuss the strengths and
limitations of each type of computing device, and provide examples of tasks that are
best suited for each device.
3. Explain the importance of memory in a computer system. Discuss the difference
between RAM and ROM, and describe the role each plays in the operation of a
computer.
12