Programming C 1.2
Programming C 1.2
The physical parts of a computer system are known as computer hardware, which include the
following units:
1. Input Unit
2. Memory Unit
5. Output Unit
Understanding computer hardware involves examining various components that work together to
make a computer functional. Each component plays a unique role in the system.
• Role: The CPU is often referred to as the "brain" of the computer. It executes instructions and
performs calculations.
• Advancements: Over time, CPUs have improved in speed, architecture, and efficiency.
2. Memory
• RAM (Random Access Memory): Provides temporary storage for data actively used by the
CPU. Enhances speed and responsiveness.
3. Motherboard
• Expansion: Expansion slots allow for adding components like graphics cards, sound cards, and
networking cards.
• Uses: Initially for graphic-intensive tasks; now also used in parallel computing for AI and
scientific simulations.
o Keyboard o Mouse
o Monitor o Printer
6. Networking Components
• Network Interface Cards (NICs): Facilitate wired or wireless connectivity, allowing data
exchange over a network.
• Role: Converts electrical power from an outlet into a form usable by the computer.
8. Cooling Systems
• Components: Includes fans and heat sinks to dissipate excess heat generated during
operation.
• Mouse: Moves a cursor on the screen. It has two buttons and a scroll ball for navigation and
selection.
• Joystick: Used primarily for gaming, allowing movement within the screen's environment.
• Light Pen: A pointing device modeled like a pen, detecting light from the screen to identify its
location.
• Scanner: Converts images or text into digital data. Types include flatbed and hand-held
scanners.
• Bar Code Reader: Reads patterns of lines of varying widths, commonly used for tracking
product sales.
2. Memory Unit
Memory in computers stores data and instructions needed for processing. It is categorized into:
o RAM (Random Access Memory): Volatile memory that loses data when power is off.
Types:
▪ Static RAM (SRAM): Faster and more expensive, retains data without
refreshing.
▪ PROM (Programmable ROM): Data can be written once and read many
times.
o Hard Disks: Magnetic storage with larger capacity and permanent storage.
o Optical Storage Devices: Includes CD-ROM, DVD-ROM, and CD-RW, using laser
technology for reading and writing data.
o Solid State Drives (SSD): Replace hard disks with faster, semiconductor-based
storage.
3. Processor Registers
Registers in the CPU are the fastest storage components, used for temporary data holding. Common
registers include:
Register Symbol Number of Bits Function
Cache memory is a faster, smaller memory that stores copies of data from main memory. It is
categorized into:
• L2 Cache: Secondary cache, larger than L1, may be on the CPU or a separate chip.
5. Control Unit
The Control Unit of the CPU directs how the processor interacts with memory, input, and output
devices. It processes internal program instructions and manages the execution of commands.
Output Devices
An output device is computer hardware that receives data from a computer and translates that data
into text, audio, video, or hard copy, such as a printed document.
The key difference between an input device and an output device is that an input device takes data
from the user, while an output device delivers output either on a monitor, printer, or other devices.
1. Monitor:
3. Speakers:
4. Headphones:
5. Projector:
o Takes video or images from a computer and displays them on a screen, wall, or other
surfaces.
Software
Software can be defined as a set of instructions or programs that helps a computer to accomplish a
particular task.
Key Points:
• It can be categorized into system software (like operating systems) and application software
(like word processors and games).