Central Processing Unit (CPU)

30 minutes Intermediate 49 Questions
Topic Overview

7. Central Processing Unit (CPU) Control Unit, Arithmetic Logic Unit (ALU), Registers, Instruction Cycle,

Complete Topic Overview

7. Central Processing Unit (CPU)


Introduction to CPU


The Central Processing Unit (CPU) is the main processing component of a computer system. It is often referred to as the "brain of the computer" because it performs most of the processing tasks and controls the operations of all other hardware components.

The CPU executes instructions given by programs, processes data, performs calculations, and manages the flow of information within the computer system.

Every program that runs on a computer—whether it is opening a file, performing a calculation, or browsing the internet—requires the CPU to execute a sequence of instructions.

The CPU communicates with memory devices, input devices, and output devices to perform its tasks efficiently.


Components of the CPU


The CPU consists of several internal components that work together to process instructions and data. The main components include:

  • Control Unit (CU)
  • Arithmetic Logic Unit (ALU)
  • Registers

Each of these components has a specific role in the operation of the CPU.


Control Unit (CU)


Definition

The Control Unit (CU) is responsible for controlling and coordinating all operations of the computer system. It directs the movement of data between the CPU, memory, and input/output devices.

The control unit does not perform actual data processing but manages and supervises how instructions are executed.


Functions of the Control Unit

Instruction Interpretation

The control unit reads instructions from memory and determines what actions must be performed.

Control Signals

It generates control signals that instruct other components of the computer on what operations to perform.

Data Flow Management

The control unit manages the transfer of data between:

  • CPU
  • Memory
  • Input/Output devices

Instruction Sequencing

It ensures that instructions are executed in the correct order.


Importance of the Control Unit

The control unit ensures that the entire computer system operates in a coordinated and organized manner. Without the control unit, the different parts of a computer would not know when or how to perform their tasks.


Arithmetic Logic Unit (ALU)


Definition

The Arithmetic Logic Unit (ALU) is the part of the CPU responsible for performing mathematical calculations and logical operations.

It processes numerical data and makes logical comparisons between values.


Arithmetic Operations

Arithmetic operations include basic mathematical calculations such as:

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Increment
  • Decrement

These operations are essential for performing numerical computations in programs.


Logical Operations

Logical operations involve comparing values and making decisions based on conditions. These include:

  • AND
  • OR
  • NOT
  • Greater than
  • Less than
  • Equal to

Logical operations are widely used in programming and decision-making processes.


Role of ALU in the CPU

Whenever a program requires a calculation or comparison, the data is sent to the ALU. The ALU processes the data and sends the result back to the CPU or memory.

Because of this, the ALU is considered the core computational component of the processor.


Registers


Definition

Registers are small, high-speed storage locations located inside the CPU. They are used to temporarily store data, instructions, and memory addresses that the CPU needs during processing.

Registers are much faster than RAM because they are located directly inside the processor.


Characteristics of Registers

Very Fast Access

Registers provide extremely fast data access compared to other types of memory.

Small Capacity

Registers can hold only a small amount of data.

Temporary Storage

They store data temporarily during instruction execution.


Types of Registers

Accumulator (ACC)

The accumulator is used to store intermediate results during arithmetic and logical operations performed by the ALU.

Program Counter (PC)

The program counter holds the address of the next instruction to be executed by the CPU.

As each instruction is executed, the program counter updates to point to the next instruction.

Instruction Register (IR)

The instruction register stores the current instruction that is being executed by the CPU.

Memory Address Register (MAR)

The memory address register stores the address of the memory location that the CPU wants to read from or write to.

Memory Data Register (MDR)

The memory data register temporarily stores the data being transferred between memory and the CPU.


Instruction Cycle


Definition

The Instruction Cycle is the process through which the CPU retrieves and executes instructions from memory.

Every program consists of a series of instructions, and the CPU performs these instructions one by one using the instruction cycle.

The instruction cycle is also known as the Fetch-Decode-Execute cycle.


Stages of the Instruction Cycle

1. Fetch Stage

In the fetch stage, the CPU retrieves the next instruction from the main memory.

The program counter (PC) provides the memory address of the instruction that needs to be fetched.

The instruction is then placed in the instruction register (IR).

2. Decode Stage

In the decode stage, the control unit analyzes the instruction to determine what operation needs to be performed.

The instruction may involve:

  • Arithmetic calculations
  • Logical comparisons
  • Data transfer operations
  • Input or output operations

The control unit determines which components of the CPU should perform the required operation.

3. Execute Stage

In the execute stage, the CPU performs the required operation.

This may involve:

  • Performing calculations in the ALU
  • Moving data between registers and memory
  • Interacting with input/output devices

Once the operation is completed, the result is stored in a register or memory location.


Continuous Operation

After completing one instruction cycle, the CPU immediately begins the next cycle by fetching another instruction from memory.

This continuous repetition of the instruction cycle allows the CPU to process programs efficiently.


Importance of the CPU

The CPU is essential to the functioning of a computer system because it performs the following tasks:

  • Executes program instructions
  • Performs arithmetic and logical operations
  • Controls data flow within the computer
  • Coordinates hardware components
  • Processes user commands

All computing devices—including personal computers, smartphones, servers, and embedded systems—rely on the CPU to perform processing tasks.


The Central Processing Unit (CPU) is the core component responsible for executing instructions and controlling the operation of a computer system. Its main components—Control Unit, Arithmetic Logic Unit, and Registers—work together during the instruction cycle to fetch, decode, and execute instructions. This coordinated process enables computers to perform calculations, process data, and run software applications efficiently.

21
Which of the following lists contains ONLY logical operations?
Medium 2 Marks
Logical operations deal with conditions and comparisons not pure calculations.
A Addition Subtraction Multiplication
B AND OR NOT Greater than
C Increment Decrement Division
D Multiplication AND Addition
22
What happens to data after the ALU processes it?
Medium 2 Marks
Results must go somewhere after processing — where do they go?
A It is permanently deleted from the system
B It is sent back to the CPU or stored in a memory location
C It is immediately displayed on the monitor
D It is transferred directly to the hard disk
23
Why is the ALU considered the core computational component of the processor?
Medium 2 Marks
Every mathematical and logical task in a program goes through the ALU.
A Because it controls all other hardware devices
B Because it stores permanent instructions for booting
C Because every program calculation or comparison is processed by the ALU
D Because it manages data transfer between memory and I/O devices
24
What are registers in the CPU?
Easy 1 Mark
Registers are inside the CPU itself — the fastest and smallest storage.
A Large storage areas on the hard disk
B Small high-speed storage locations inside the CPU for temporary data storage
C A type of cache memory shared between CPU cores
D External memory cards connected to the motherboard
25
Why are registers faster than RAM?
Easy 1 Mark
Speed depends on distance — registers are inside the CPU itself.
A Because registers use optical technology
B Because registers are located directly inside the processor
C Because registers have a larger storage capacity
D Because registers use magnetic disks
26
What is the Accumulator (ACC) register used for?
Medium 2 Marks
After the ALU calculates something where does the result go temporarily?
A Storing the address of the next instruction to execute
B Holding the current instruction being decoded
C Storing intermediate results during arithmetic and logical operations
D Holding the address of the memory location being accessed
27
What does the Program Counter (PC) hold?
Medium 2 Marks
The PC keeps the CPU on track — it always points to what comes next.
A The result of the most recent calculation
B The current instruction being decoded by the control unit
C The address of the next instruction to be executed by the CPU
D The data being transferred between memory and the CPU
28
What is the Instruction Register (IR) used for?
Medium 2 Marks
IR holds the instruction the CPU is working on right now.
A Storing the address of the next instruction
B Storing the current instruction being executed by the CPU
C Holding intermediate arithmetic results
D Storing the memory address the CPU wants to access
29
What is the Memory Address Register (MAR) used for?
Medium 2 Marks
MAR stores an address — not data itself. Where does the CPU need to look?
A Storing data transferred between memory and the CPU
B Holding the current instruction being executed
C Storing the address of the memory location the CPU wants to read from or write to
D Keeping track of the next instruction address
30
What is the Memory Data Register (MDR) used for?
Medium 2 Marks
MDR holds data in transit between CPU and memory.
A Storing the address of the next instruction
B Temporarily storing data being transferred between memory and the CPU
C Storing the result of the most recent ALU calculation
D Holding control signals sent to other components
31
A student asks: which register always points to the NEXT instruction? The answer is:
Medium 2 Marks
Which register keeps the CPU moving forward through a program?
A Accumulator (ACC)
B Instruction Register (IR)
C Memory Address Register (MAR)
D Program Counter (PC)
32
Which register stores the ADDRESS of the memory location being accessed?
Medium 2 Marks
MAR holds an address not data — think of it like a house number.
A Program Counter (PC)
B Accumulator (ACC)
C Memory Address Register (MAR)
D Instruction Register (IR)
33
What is the Instruction Cycle?
Easy 1 Mark
The CPU repeats this cycle continuously for every instruction in a program.
A The time it takes to start a computer
B The process through which the CPU retrieves and executes instructions from memory
C The cycle of refreshing RAM contents
D The process of saving data to secondary storage
34
The Instruction Cycle is also known as:
Easy 1 Mark
Name the three stages of the instruction cycle.
A The Boot-Load-Run cycle
B The Read-Write-Store cycle
C The Fetch-Decode-Execute cycle
D The Input-Process-Output cycle
35
What are the three stages of the Instruction Cycle in correct order?
Easy 1 Mark
The CPU cannot decode before fetching or execute before decoding.
A Execute then Decode then Fetch
B Fetch then Execute then Decode
C Decode then Fetch then Execute
D Fetch then Decode then Execute
36
What happens during the Fetch stage of the Instruction Cycle?
Medium 2 Marks
Fetch means retrieve — which register points to where the instruction is?
A The CPU performs the required arithmetic or logical operation
B The control unit analyses the instruction to determine what to do
C The CPU retrieves the next instruction from main memory using the Program Counter
D The result is stored in a register or memory location
37
Which register provides the memory address during the Fetch stage?
Medium 2 Marks
The PC always points to the next instruction — it guides the fetch.
A Accumulator (ACC)
B Instruction Register (IR)
C Memory Data Register (MDR)
D Program Counter (PC)
38
Where is the fetched instruction placed after the Fetch stage?
Medium 2 Marks
The IR holds the instruction currently being processed.
A Accumulator (ACC)
B Instruction Register (IR)
C Memory Address Register (MAR)
D Program Counter (PC)
39
What happens during the Decode stage of the Instruction Cycle?
Medium 2 Marks
Decode means understand — the CU reads the instruction and decides what to do.
A The CPU fetches the instruction from memory
B The result is stored back in memory
C The control unit analyses the instruction to determine what operation must be performed
D The ALU performs arithmetic calculations
40
Which component of the CPU performs the Decode stage?
Medium 2 Marks
The CU is in charge of understanding and directing — which stage needs that?
A ALU
B Accumulator register
C Control Unit (CU)
D Program Counter
Question Palette
0/49 Answered
Showing 21 - 40 of 49
Instructions:
  • Click on an option to select your answer
  • Use the hint button if you need help
  • Track your progress with the question palette
  • Submit your answers to see results
Difficulty Distribution
Easy 5
Medium 15
Hard 0