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.

1
Which register pair works together during memory access — one holding the address and one holding the data?
Hard 3 Marks
One register holds where to look the other holds what is found there.
A PC and IR
B ACC and PC
C MAR and MDR
D IR and ACC
2
A program instruction says: add two numbers and store the result. Which sequence of CPU components is involved?
Hard 3 Marks
Trace the instruction through each CPU component in order.
A CU fetches then IR decodes then MAR executes
B PC provides address CU fetches and decodes ALU adds ACC stores result
C MDR fetches ALU decodes CU executes
D IR fetches MAR decodes MDR executes
3
Which of the following correctly identifies all three main CPU components and their roles?
Hard 3 Marks
Match each component to its specific role — control calculate or store.
A CU performs calculations ALU controls data flow Registers store programs permanently
B CU controls and coordinates ALU performs arithmetic and logic Registers provide fast temporary storage
C CU stores data ALU fetches instructions Registers decode operations
D CU manages secondary storage ALU manages primary memory Registers manage I/O devices
4
If the Program Counter currently holds address 100 and an instruction is fetched what value will the PC most likely hold next?
Hard 3 Marks
The PC must always point to the NEXT instruction — what address comes after 100?
A Still 100
B 99 (decremented by 1)
C 101 (address of the next instruction)
D 0 (reset after each fetch)
5
What is the Central Processing Unit (CPU)?
Easy 1 Mark
The CPU is often called the brain of the computer.
A The screen that displays output to the user
B The main processing component of a computer that executes instructions and controls all hardware
C The storage device used to save permanent files
D The component that supplies power to the computer
6
Why is the CPU often called the brain of the computer?
Easy 1 Mark
Think about what role the brain plays in a human body.
A Because it stores all data permanently
B Because it is the largest component inside a computer
C Because it performs most processing tasks and controls all other hardware components
D Because it generates power for all other components
7
Which of the following tasks does the CPU perform?
Easy 1 Mark
Think about the core jobs a processor does every second.
A Displaying graphics on the monitor only
B Storing data permanently on the hard disk
C Executing instructions performing calculations and managing data flow
D Supplying electricity to input and output devices
8
The CPU communicates with which of the following to perform its tasks?
Medium 2 Marks
What other parts of a computer does the CPU need to interact with?
A Only the monitor and keyboard
B Memory devices input devices and output devices
C Only secondary storage devices
D Only the power supply unit
9
What are the three main components of the CPU?
Easy 1 Mark
Think about the units that control calculate and temporarily store data inside the CPU.
A RAM ROM and Cache
B Hard disk SSD and USB
C Control Unit ALU and Registers
D Monitor Keyboard and Mouse
10
What is the role of the Control Unit (CU) in the CPU?
Easy 1 Mark
The CU does not process data — it manages and directs everything.
A To perform arithmetic calculations on data
B To store large amounts of data permanently
C To control and coordinate all operations of the computer and direct data movement
D To supply power to the CPU components
11
Does the Control Unit perform actual data processing?
Easy 1 Mark
The CU is like a manager — it tells others what to do but does not do the work itself.
A Yes it performs all arithmetic operations
B Yes it performs logical comparisons
C No it only manages and supervises how instructions are executed
D Yes it stores all intermediate results
12
What does the Control Unit generate to instruct other components?
Medium 2 Marks
Think about how a conductor uses signals to direct an orchestra.
A Electrical power signals
B Control signals
C Binary data packets
D Arithmetic results
13
Which of the following is a function of the Control Unit?
Medium 2 Marks
What happens if instructions are executed out of order?
A Performing addition and subtraction of numbers
B Storing data in secondary storage devices
C Ensuring instructions are executed in the correct order (instruction sequencing)
D Refreshing RAM contents periodically
14
The Control Unit manages data transfer between which components?
Medium 2 Marks
The CU oversees all data movement — not just inside the CPU.
A Only between RAM and ROM
B CPU memory and input/output devices
C Only between the ALU and registers
D Only between the monitor and keyboard
15
Why is the Control Unit essential to a computer system?
Medium 2 Marks
Imagine a construction site without a foreman — what would happen?
A Because it performs all mathematical calculations
B Because without it different parts of a computer would not know when or how to perform their tasks
C Because it stores the operating system permanently
D Because it provides electricity to all components
16
What does the ALU stand for?
Easy 1 Mark
Break it down: Arithmetic + Logic + Unit.
A Arithmetic Loading Unit
B Arithmetic Logic Unit
C Automated Logic Unit
D Advanced Loading Utility
17
What is the main function of the ALU?
Easy 1 Mark
ALU = Arithmetic + Logic — what two types of operations does it do?
A To store data permanently in the hard disk
B To control the flow of data between CPU and memory
C To perform mathematical calculations and logical operations
D To supply power to the CPU
18
Which of the following is an arithmetic operation performed by the ALU?
Easy 1 Mark
Arithmetic means mathematical calculations — which option is a calculation?
A AND operation
B Greater than comparison
C Subtraction
D NOT operation
19
Which of the following is a logical operation performed by the ALU?
Easy 1 Mark
Logical operations involve true/false decisions — not pure calculations.
A Addition
B Division
C Multiplication
D AND operation
20
Which of the following lists contains ONLY arithmetic operations?
Medium 2 Marks
Arithmetic involves numbers and calculations — identify the purely numerical operations.
A AND OR NOT
B Addition Subtraction Division
C Greater than Less than Equal to
D AND Addition NOT
Question Palette
0/49 Answered
Showing 1 - 20 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 10
Medium 6
Hard 4