Introduction
The Central Processing Unit (CPU) and memory are fundamental components of a computer system. The CPU executes instructions and processes data, while memory stores data and instructions temporarily or permanently. For SSC CGL Tier-II, understanding their types, functions, and interactions is crucial.
CPU: Components and Functions
The CPU is the brain of the computer. It consists of three main parts: Arithmetic Logic Unit (ALU), Control Unit (CU), and registers. The ALU performs arithmetic and logical operations. The CU directs operations by decoding instructions and controlling data flow. Registers are high-speed storage locations inside the CPU used to hold data and instructions temporarily during processing. The CPU follows the fetch-decode-execute cycle to process instructions.
Key Points
- ALU performs arithmetic (+, -, *, /) and logical (AND, OR, NOT) operations.
- Control Unit fetches, decodes, and controls execution of instructions.
- Registers are the fastest memory in a computer, directly accessible by the CPU.
Solved Example 1
Question: Which part of the CPU performs arithmetic and logical operations?
Solution: Arithmetic Logic Unit (ALU)
Explanation: The ALU is specifically designed to carry out arithmetic and logical operations, while the Control Unit manages instruction flow and registers hold data temporarily.
Memory: Types and Hierarchy
Computer memory is organized in a hierarchy based on speed, size, and cost. Primary memory (main memory) is directly accessible by the CPU and includes RAM (Random Access Memory) and ROM (Read Only Memory). RAM is volatile (loses data when power off) and holds currently running programs and data. ROM is non-volatile and stores firmware like BIOS. Secondary memory (e.g., hard disk, SSD, pen drive) is non-volatile, larger, and slower, used for permanent storage. Cache memory is a small, high-speed memory between CPU and RAM that stores frequently used data to reduce access time.
Key Points
- RAM is volatile; ROM is non-volatile.
- Cache memory is faster than RAM but smaller and more expensive.
- Secondary storage is non-volatile and used for long-term data storage.
Solved Example 1
Question: Which type of memory loses its contents when the computer is turned off?
Solution: RAM (Random Access Memory)
Explanation: RAM is volatile memory, meaning it requires power to maintain stored information. ROM, secondary storage, and cache (though cache is also volatile) are not the primary example of volatile memory in basic exams; RAM is the standard answer.
Practice Questions
Q1. Which of the following is NOT a part of the CPU?
Answer: RAM
Explanation: RAM is a type of primary memory, not a component of the CPU. The CPU consists of ALU, Control Unit, and registers.
Q2. What is the full form of ROM?
Answer: Read Only Memory
Explanation: ROM stands for Read Only Memory. It is non-volatile memory used to store firmware.
Q3. Which memory is the fastest?
Answer: Registers
Explanation: Registers are located inside the CPU and are the fastest memory in a computer, followed by cache, RAM, and secondary storage.
Common Mistakes
- Confusing RAM with ROM: RAM is volatile and temporary, ROM is non-volatile and permanent.
- Thinking cache memory is larger than RAM: Cache is smaller but faster than RAM.
- Assuming CPU includes memory: CPU does not include main memory; it only contains registers.
Quick Revision
- CPU = ALU + Control Unit + Registers.
- RAM is volatile, ROM is non-volatile.
- Memory hierarchy: Registers > Cache > RAM > Secondary Storage (in terms of speed).