What Is Hardware?
What Is Hardware?
io/ 2024-10-22
Download PDF
To access the updated handouts, please click on the following link:
https://yasirbhutta.github.io/computer-basics/docs/hardware.html
Computer Hardware
The physical parts of a computer are called hardware.
The user can see and touch hardware. computer is a collection of several different parts
computer
Image by wikimedia.org
Internal hardware: Internal hardware is the hardware that is located inside the computer case. It
includes the following components:
Motherboard: The motherboard is the main circuit board of a computer. It connects all of the
other internal components together.
CPU: The CPU is the brain of the computer. It is responsible for processing instructions and
performing calculations.
Memory: Memory is used to store data and programs that the CPU is currently using. There are
two main types of memory: random access memory (RAM) and read-only memory (ROM).
Storage devices: Storage devices are used to store data permanently. Common storage devices
include hard disk drives (HDDs), solid-state drives (SSDs), and optical drives (such as CD-ROM
and DVD drives).
Expansion cards: Expansion cards are used to add new features to a computer, such as a graphics
card, sound card, or network card.
External hardware: External hardware is the hardware that is connected to the computer but is located
outside of the computer case. It includes the following devices:
Input devices: Input devices are used to enter data into the computer. Common input devices
include keyboards, mice, trackpads, touchscreens, and scanners.
Output devices: Output devices are used to display or print data from the computer. Common
output devices include monitors, printers, and speakers.
Networking hardware: Networking hardware is used to connect a computer to a network.
Common networking devices include routers, switches, and modems.
Power supply unit (PSU): The PSU provides power to all of the other components in the computer.
Cooling system: The cooling system keeps the computer from overheating.
Case/System Unit: The case houses all of the internal components of the computer and protects them
from damage.
1
https://yasirbhutta.github.io/ 2024-10-22
See also:
Input Devices
A hardware component that is used to enter data and instruction into computer is called input device.
Keyboards
Pointing Devices
Mouse
Trackball
Touchpad
Touchscreen
Joystick
Webcam
Image scanner
Fingerprint scanner
Barcode Reader
Microphone
Keyboard
keyboard is used to type text and numbers into a word processor, text editor or other program[3]. It
contains alphabetic, numeric and other keys for entering different type of data.
Mouse
Trackball
A trackball is a pointing device consisting of a ball to move the cursor on the screen.
2
https://yasirbhutta.github.io/ 2024-10-22
Touchpad
Touchscreen
Touch screen is video display screen that receives input from the touch of finger.
Joystick
Web Cams
Image Scanner
In computing, a scanner is a device that optically scans images, printed text, handwriting, or an object,
and converts it to a digital image. [6]
How it works:
Light It Up: The scanner shines a light onto the document you placed on it. Capturing the Reflection: A
sensor captures the reflected light, which creates information about the colors and brightness of the image.
Building the Digital Image: This information is converted into a digital format, like a JPG or PDF file.
3
https://yasirbhutta.github.io/ 2024-10-22
Fingerprint Scanner
Barcode reader
A barcode reader (or barcode scanner) is an electronic device for reading barcodes printed on various
surfaces.
How it works:
Reading the Stripes: It uses a light source and sensor to scan the barcode. Decoding the Message: The
scanner translates the pattern of bars and spaces into electrical signals. Understanding the Code: A decoder
chip then figures out the data hidden in the barcode. Sending the Information: Finally, it sends this
information, like a product code, to a computer.
Microphone
A microphone is a piece of computer hardware that converts sound waves into electrical signals. These
electrical signals can then be used by the computer to record sound, or to use voice recognition
software.
Most computers have a built-in microphone, but you can also purchase external microphones that offer better
sound quality.
Output Devices
The hardware components that are used to receive information from the computer are called output
devices.
Output devices take information from the computer and convert it in a form that is understandable by
the users.
Soft Copy: technical information stored in a computer’s memory or shown on a screen rather than printed on
paper.
1. Monitor
4
https://yasirbhutta.github.io/ 2024-10-22
A computer monitor is an essential output device for a computer. It visually displays the information
processed by the computer, allowing you to see text, images, videos, and graphics.
Displays Information: Monitors translate the electronic signals from the computer's graphics card into
a visual format on the screen.
Types of Monitors: Modern monitors are typically flat-panel displays, using technologies like LCD
(Liquid Crystal Display) with LED backlight. Older monitors used CRT (Cathode Ray Tube) technology.
Connection to Computer: Monitors connect to the computer through various ports like HDMI,
DisplayPort, DVI, or VGA.
Resolution: Monitors come in various sizes and resolutions, which determine the sharpness and detail
of the displayed image.
LCD monitors are the most common type of monitor available today.
They are thin, lightweight, and energy-efficient.
LCD monitors use liquid crystals to create images on the screen.
LED monitors are a type of LCD monitor that uses light-emitting diodes (LEDs) as the backlight instead
of fluorescent lamps.
LEDs are more energy-efficient and have a longer lifespan than fluorescent lamps.
LED monitors also tend to have better image quality than LCD monitors, with higher contrast
ratios and brighter colors.
The contrast ratio (CR) is a property of a display system, defined as the ratio of the luminance of the brightest
shade (white) to that of the darkest shade (black) that the system is capable of producing. A high contrast
ratio is a desired aspect of any display. [^3]
2. Printer
A printer is an output device that prints characters, symbols and graphics on paper. The Printed output
is called hard copy.
Inkjet printers: Affordable and good for home use, offering decent print quality for documents and
photos.
5
https://yasirbhutta.github.io/ 2024-10-22
Laser printers: Laser printers use toner for fast prints at a lower cost per page, ideal for high-volume
black and white printing.
Dot-matrix printers: Less common today, they were known for their reliability and ability to print
multiple carbon copies, but with noisier operation and lower print quality.
3. Speakers
A computer speaker, also sometimes called a multimedia speaker, is a type of output device for your
computer.
Its main function is to convert electrical signals from your computer into audible sound waves that you
can hear.
There are different types of computer speakers available, each catering to various needs:
External speakers: These are the most common type. They come in various sizes and configurations,
from simple two-speaker stereo systems to surround sound setups for an immersive audio experience.
Built-in speakers: Many laptops and monitors have built-in speakers for basic audio output. While
convenient, they typically offer lower sound quality compared to external speakers.
4. Headphone
5. Data Projector
Input: Connects to your computer, laptop, smartphone, or other devices through various ports like HDMI,
VGA, or even wirelessly. Processing: Receives the digital data, which can be presentations, videos, images, or
even your computer screen itself. Projection: Uses a powerful light source and a lens system to project an
enlarged image of the received data onto the screen.
Presentations: Businesses and educators often use them to display presentations, charts, and other
visual aids for a larger audience.
Movies and entertainment: They can be used for home entertainment to watch movies or play video
games on a bigger screen.
Public displays: In some cases, they might be used for public displays of information or advertising in
spaces like airports or train stations.
CPU or Processor
6
https://yasirbhutta.github.io/ 2024-10-22
CPU continually receives instructions to execute. CPU performs all operations according to the given
instructions. It executes instructions and tells other parts of computer what to do.
The CPU (Central Processing Unit) performs a variety of operations, typically classified into several types:
1. Arithmetic Operations: These include basic mathematical operations such as addition, subtraction,
multiplication, and division. The Arithmetic Logic Unit (ALU) handles these tasks.
2. Logical Operations: The CPU performs logical operations like AND, OR, NOT, and XOR, used in decision-
making processes.
3. Data Transfer Operations: The CPU moves data from one location to another, such as from memory to
registers, registers to memory, or between different registers.
4. Control Operations: These involve decision-making instructions, such as comparing values and jumping
to different instructions based on conditions (e.g., branch instructions).
5. Input/Output Operations: The CPU manages communication with external devices, reading input from
devices like a keyboard or writing output to devices like a monitor or printer.
These operations are carried out through a series of instructions in the instruction cycle (fetch, decode,
execute, and store).
1. Fetch: The CPU retrieves an instruction from the computer's memory (RAM).
2. Decode: The CPU interprets (decodes) the fetched instruction to understand what needs to be done.
3. Execute: The CPU performs the operation specified by the instruction (e.g., arithmetic operations like
addition, multiplication, etc.).
4. Store: The CPU stores the result of the operation back into memory, registers, or sends it to an output
device. These steps are part of what’s called the instruction cycle or fetch-decode-execute cycle.
The performance of your CPU significantly impacts how fast your computer can run programs and perform
tasks. Here are some key factors that affect CPU performance:
Clock speed: Measured in Gigahertz (GHz), it indicates the number of cycles the CPU can perform per
second. Higher clock speeds generally mean faster performance.
Number of cores: Modern CPUs typically have multiple cores, allowing them to handle multiple tasks
simultaneously. More cores can improve performance for multitasking and programs that can leverage
multiple cores.
Cache: A small amount of high-speed memory built into the CPU that stores frequently accessed data
and instructions. Faster access to this data can improve processing speed.
ALU is a part of CPU. Actual execution of the instructions takes place in this part.
Arithmetic Unit : Arithmetic unit of the ALU performs basic arithmetic functions such as
additions, subtraction, multiplications and division.
7
https://yasirbhutta.github.io/ 2024-10-22
Logic Unit : Logic unit of the ALU performs logical operations like comparing two data items to
find which data item is greater than ,equal to or less than the other.
Control Unit
Motherboard
The motherboard is main circuit board of a computer, usually containing the central processing
unit and main system memory as well as circuitry that controls the disk drives, keyboard, monitor, and
other peripheral devices.
It is also known as a mainboard, baseboard, system board.
Connectivity: It provides sockets and slots for essential components like the CPU, RAM (memory),
graphics card, storage drives (hard drive or SSD), and other peripherals.
Communication: The motherboard has electrical pathways (buses) that enable all these components to
transfer data and instructions between each other.
Control Center: It houses the chipset, a group of specialized chips that manage communication
between different parts and control functions like USB ports, audio, and network connectivity.
Power Delivery: The motherboard distributes power from the power supply unit (PSU) to all the
connected components.
Image by macrovector on
Freepik
Buses: Buses on a motherboard are electrical pathways that allow different components on the motherboard
to communicate with each other.
Computer Peripherals
System Unit
8
https://yasirbhutta.github.io/ 2024-10-22
Desktop model
Tower model
Sound Card
A circuit board/Card that gives the computer the ability to accept audio input, play sound files, and
produce audio output through speakers or headphones.
A display screen must have a video display adapter attached with the computer to display graphics.
It is also called video graphics card.
Power Supply
Power supply is used to provide electric circuit to different computer hardware components. Like
Motherboard, Hard disk, CD Rom.
Ports
USB is a type of port that is used to connect a wide variety of devices to a computer, including external
hard drives, printers, scanners, and keyboards.
There are several types of USB ports available, including USB-A (Type A), USB-B (Type B), and USB-C
(Type C) but but the most common type is the USB Type-A port. [^1] [^2]
HDMI:
9
https://yasirbhutta.github.io/ 2024-10-22
HDMI (High-Definition Multimedia Interface) is a type of port that is used to connect high-definition
video and audio devices to a computer, such as monitors, televisions, and projectors.
HDMI ports are capable of carrying both high-definition video and audio signals over a single cable.
DisplayPort:
DisplayPort is another type of port that is used to connect high-definition video and audio devices to a
computer. DisplayPort ports are similar to HDMI ports, but they offer some additional features, such as the
ability to support multiple monitors over a single cable.
Ethernet:
Ethernet ports are used to connect computers to a network, such as a home network or a business
network.
Ethernet ports use a standard RJ-45 connector.
VGA:
VGA (Video Graphics Array) ports are used to connect analog monitors to a computer.
VGA ports are the oldest type of video port, but they are still commonly used on older computers and
monitors.
Audio ports:
1. False
10
https://yasirbhutta.github.io/ 2024-10-22
2. True
3. False
4. False
5. False
6. True
7. True
8. True
9. True
10. False
11. False
12. True
13. True
14. True
15. False
Multiple Choice
Which of the following is NOT a hardware component?
1. Word
2. CPU
3. Motherboard
4. RAM
1. CPU
2. Motherboard
3. RAM
4. Hard drive
Which of the following is used to connect input and output devices to the computer?
1. Ports
2. Buses
3. Expansion cards
4. All of the above
Ports are physical connectors on the computer that allow input and output devices to be connected.
Examples of ports include USB, HDMI, and Ethernet ports.
Buses are electrical pathways that allow data to be transferred between different components of the
computer, including input and output devices. Examples of buses include the PCI Express bus and the
USB bus.
11
https://yasirbhutta.github.io/ 2024-10-22
Expansion cards are circuit boards that can be installed in the computer to add new capabilities, such
as support for new input and output devices. Examples of expansion cards include graphics cards and
sound cards.
1. Keyboard
2. Mouse
3. Scanner
4. All of the above
Which of the following is used to store data and programs that the CPU is currently using?
1. RAM
2. ROM
3. Hard drive
4. Optical drive
1. CPU
2. RAM
3. PSU (Power Supply Unit)
4. GPU
1. Monitor
2. Keyboard
3. Printer
4. Speaker
1. USB
2. HDMI
3. Ethernet
4. VGA
1. Monitor
2. Printer
3. Speakers
12
https://yasirbhutta.github.io/ 2024-10-22
1. Storing data
2. Processing data
3. Connecting and coordinating hardware components
4. Displaying images on the screen
Which part of a computer is responsible for initializing the hardware and booting the operating
system?
1. CPU
2. RAM
3. BIOS
4. GPU
1. USB
2. HDMI
3. WiFi
4. Ethernet
13
https://yasirbhutta.github.io/ 2024-10-22
Review Questions
What are the different types of input and output devices?
What is the function of input devices? Give some examples.
What is the function of output devices? Give some examples.
Differentiate between a pointing device and a touchscreen.
What is the motherboard and what is its function?
Write note on input devices and output devices and examples of four devices with usage of each type?
Basics:
Answer:
A single-core CPU has only one processing unit, while a multi-core CPU has multiple processing units. In other
words, a single-core CPU can only execute one instruction at a time, while a multi-core CPU can execute
multiple instructions simultaneously. read more...
Answer:
The clock speed of a processor refers to the number of cycles it can execute per second, essentially acting like
its heartbeat. It's measured in hertz (Hz), with common units being:
MHz (megahertz): Millions of cycles per second. Used for older processors. GHz (gigahertz): Billions of
cycles per second. Standard for modern processors, ranging from around 2 GHz to 4 GHz or even higher.
Answer:
Data Handling:
32-bit CPU: Can process 32 bits of data at a time, which equals 4 bytes.
64-bit CPU: Can process 64 bits of data at a time, which equals 8 bytes. This allows them to handle
much larger numbers and complex calculations more efficiently.
Memory Access:
32-bit CPU: Can address a maximum of 4GB of RAM (random access memory). This means they can
only use up to 4GB of RAM at a time. 64-bit CPU: Can address a vast amount of RAM, theoretically up
14
https://yasirbhutta.github.io/ 2024-10-22
to 18 quintillion gigabytes. In practice, the actual limit depends on the specific CPU and operating
system, but it's significantly higher than 32-bit CPUs.
Motherboard:
Other Components:
http://en.wikipedia.org/wiki/Computer_keyboard
http://en.wikipedia.org/wiki/Touchscreen
http://en.wikipedia.org/wiki/Webcam
http://en.wikipedia.org/wiki/Image_scanner
http://www.southerncompany.com/learningpower/glossary.aspx
http://en.wikipedia.org/wiki/Line_printer
[^2] USB Explained: All the Different Types (and What They're Used for)
http://en.wikipedia.org/wiki/Pointing_device
15