A computer is a machine designed to process data and perform tasks according to instructions called programs. To understand how a computer works, it is essential to know about its components. These components are the physical parts of a computer, known as hardware, which work together to carry out computing tasks.
It is important to distinguish between hardware and software. Hardware refers to the tangible parts you can touch, like the keyboard or the processor chip. Software, on the other hand, is the set of instructions or programs that tell the hardware what to do. Without hardware, software cannot run; without software, hardware is useless. Both are necessary, but this section focuses on the hardware components that make a computer function.
Understanding these components helps you grasp how data flows inside a computer, how tasks are executed, and how information is stored and retrieved. This knowledge is fundamental for anyone preparing for competitive exams in Information and Communication Technology (ICT).
Hardware components can be broadly classified into five main categories:
Let's look at each category with examples and their roles.
Input Devices: These are the tools we use to send data and commands to the computer. For example, a keyboard lets you type letters and numbers, while a mouse helps you point and click on items on the screen.
Output Devices: After processing data, the computer needs to show results. Monitors display images and text, and printers produce physical copies on paper.
Storage Devices: These hold data and programs. Hard disks and solid-state drives (SSD) store information even when the computer is turned off, unlike memory which is usually temporary.
Processing Unit: This is the brain of the computer, where all calculations and decisions happen. It interprets instructions and processes data.
Memory: Memory temporarily holds data and instructions that the CPU needs quickly. It includes types like RAM and ROM, which we will explore in detail later.
The Central Processing Unit (CPU) is the core component responsible for executing instructions and processing data. It can be thought of as the "brain" of the computer because it controls all operations.
The CPU has two main parts:
These parts work together in a cycle called the fetch-decode-execute cycle:
graph TD Fetch[Fetch Instruction from Memory] Decode[Decode Instruction] Execute[Execute Instruction] Store[Store Result] Fetch --> Decode Decode --> Execute Execute --> Store Store --> Fetch
Step 1: Fetch - The CPU retrieves an instruction from the memory.
Step 2: Decode - The Control Unit interprets what the instruction means.
Step 3: Execute - The ALU performs the required operation.
Step 4: Store - The result is saved back to memory or sent to an output device.
This cycle repeats continuously while the computer is on, enabling it to perform complex tasks quickly.
Memory in a computer stores data and instructions. It is classified based on speed, volatility (whether data is lost when power is off), and capacity. The main types are:
| Memory Type | Speed | Volatility | Capacity | Usage |
|---|---|---|---|---|
| RAM (Random Access Memory) | Fast | Volatile (data lost when power off) | Medium to Large | Temporary storage for running programs and data |
| ROM (Read-Only Memory) | Slow | Non-volatile (data retained) | Small | Stores firmware and startup instructions |
| Cache Memory | Very Fast | Volatile | Very Small | Stores frequently used data for quick access by CPU |
| Secondary Memory | Slow | Non-volatile | Large | Long-term data storage (e.g., hard disk, SSD) |
Why different types? The CPU needs data fast, so RAM and cache are very quick but usually smaller and volatile. ROM holds essential instructions that must not change and must be available even when the computer is off. Secondary memory stores large amounts of data permanently but is slower to access.
Step 1: Identify the role of each device.
Answer:
Step 1: The keyboard (input device) sends the typed letter as data to the CPU.
Step 2: The CPU processes this data using the ALU and Control Unit.
Step 3: The data is temporarily stored in RAM (memory) for quick access.
Step 4: The CPU sends the processed data to the monitor (output device) to display the letter.
Answer: Data flows from keyboard -> CPU -> RAM -> CPU -> Monitor.
Answer: RAM, ROM, Cache, Secondary Memory respectively.
Step 1: Calculate total size in MB:
500 files x 2 MB/file = 1000 MB
Step 2: Convert MB to GB using the metric conversion:
1 GB = 1024 MB
Total size in GB = \(\frac{1000}{1024} \approx 0.9766\) GB
Answer: Approximately 0.98 GB of storage is required.
Answer: ALU - processing; Hard Disk - storage; Monitor - output; Control Unit - CPU control; Keyboard - input.
When to use: When trying to recall the role of the processing unit quickly.
When to use: To remember the sequence of computer operations.
When to use: During storage size calculations.
When to use: When differentiating memory types.
When to use: To understand component interconnections.
Progress tracking is paywalled — subscribe to mark subtopics as understood and save your streak.
Go to practice →