wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Memory Management Quiz

Total questions: 45

Worksheet time: 23mins

Name
Class
Date
1.

What is the term used for allocating memory in a single continuous block?

a)

Paging

b)

Contiguous Memory Allocation

c)

Swapping

d)

Structure of the Page Table

2.

Which memory management technique involves dividing memory into fixed-size pages?

a)

Contiguous Memory Allocation

b)

Swapping

c)

Paging

d)

Structure of the Page Table

3.

What is the purpose of the page table in memory management?

a)

To allocate memory in a continuous block

b)

To manage swapping between memory and disk

c)

To map virtual addresses to physical addresses

d)

To divide memory into pages

4.

Which memory management technique involves moving processes between main memory and secondary storage?

a)

Paging

b)

Contiguous Memory Allocation

c)

Swapping

d)

Structure of the Page Table

5.

What is the purpose of the base register in a computer system?

a)

To hold the largest legal physical memory address

b)

To hold the smallest legal physical memory address

c)

To specify the size of the range of memory addresses

d)

To store the logical address space of a process

6.

Which component ensures that a process can access only those addresses within its address space?

a)

Cache memory

b)

Base and limit registers

c)

Virtual memory

d)

Secondary storage

7.

What does the limit register specify in a computer system?

a)

The smallest legal physical memory address

b)

The size of the range of memory addresses

c)

The logical address space of a process

d)

The total number of processes in the system

8.

Why must a program be brought into memory from disk before it can be run?

a)

To ensure the program is stored permanently

b)

To allow the CPU to access the program directly

c)

To define the logical address space of the program

d)

To protect the program from unauthorized access

9.

Diagram showing the memory layout with operating system, processes, and base + limit registers.

a)

Diagram showing the memory layout with operating system, processes, and base + limit registers.

b)

Diagram showing only the processes and their memory usage.

c)

Diagram showing the CPU registers and cache memory.

d)

Diagram showing the file system structure and directories.

10.

What must the CPU check for every memory access generated in user mode?

a)

If the address is between the base and limit for the user

b)

If the address is equal to the base value

c)

If the address is greater than the limit value

d)

If the address is less than the base value

11.

What happens if a memory address generated in user mode is outside the base and limit range?

a)

The CPU allows access to the memory

b)

The CPU traps to the operating system for illegal addressing error

c)

The CPU ignores the memory access request

d)

The CPU resets the base and limit registers

12.

What type of instructions are required to load the base and limit registers?

a)

User mode instructions

b)

Privileged instructions

c)

General-purpose instructions

d)

Debugging instructions

13.

Which component is responsible for checking the memory address against the base and limit values?

a)

Operating system

b)

Memory

c)

CPU

d)

Hard drive

14.

What is a logical address in the context of memory management?

a)

An address generated by the CPU, also referred to as a virtual address

b)

An address seen by the memory hardware, computed by MMU

c)

An address used for physical storage in the hard drive

d)

An address used for network communication

15.

What is a physical address in the context of memory management?

a)

An address generated by the CPU, also referred to as a virtual address

b)

An address actually seen by the memory hardware, computed by MMU

c)

An address used for logical storage in the CPU

d)

An address used for network communication

16.

When are logical and physical addresses the same?

a)

During execution-time address-binding schemes

b)

During compile-time and load-time address-binding schemes

c)

During memory hardware computation

d)

During virtual address generation

17.

How do logical and physical addresses differ in execution-time address-binding schemes?

a)

Logical addresses are generated by the CPU, while physical addresses are computed by MMU

b)

Logical addresses are used for network communication, while physical addresses are used for storage

c)

Logical addresses are the same as physical addresses during execution-time

d)

Logical addresses are stored in the hard drive, while physical addresses are stored in RAM

18.

What is the primary function of the Memory-Management Unit (MMU)?

a)

To execute user programs directly on the hardware

b)

To map virtual addresses to physical addresses at runtime

c)

To store user data permanently

d)

To manage the CPU clock speed

19.

What is the role of the relocation register in the MMU?

a)

It stores the logical address of the user program

b)

It adds a value to every address generated by a user process before sending it to memory

c)

It converts physical addresses to logical addresses

d)

It manages the CPU's processing speed

20.

What type of address does the user program deal with in the MMU system?

a)

Physical address

b)

Logical address

c)

Relocation address

d)

Virtual address

21.

What happens to the logical address in the MMU system?

a)

It is directly used by the memory

b)

It is bound to a physical address

c)

It is discarded by the CPU

d)

It is converted into a virtual address

22.

What is the purpose of variable-partition sizes in dynamic storage allocation?

a)

To allocate memory blocks of fixed sizes

b)

To ensure memory blocks are scattered throughout memory

c)

To size memory blocks according to a given process's needs

d)

To allocate the largest memory block available

23.

What does the term "hole" refer to in dynamic storage allocation?

a)

A fixed-size memory block

b)

A block of available memory scattered throughout memory

c)

A memory block reserved for the operating system

d)

A memory block that cannot be allocated

24.

Which allocation strategy selects the first hole that is big enough to satisfy a request?

a)

Best-fit

b)

Worst-fit

c)

First-fit

d)

Largest-fit

25.

Which allocation strategy produces the smallest leftover hole?

a)

First-fit

b)

Best-fit

c)

Worst-fit

d)

Random-fit

26.

Which allocation strategy selects the largest hole to satisfy a request?

a)

First-fit

b)

Best-fit

c)

Worst-fit

d)

Largest-fit

27.

Why are first-fit and best-fit strategies considered better than worst-fit in dynamic storage allocation?

a)

They produce larger leftover holes

b)

They are faster and utilize storage more efficiently

c)

They allocate memory blocks randomly

d)

They require less searching through the list of holes

28.

What is external fragmentation in memory management?

a)

Memory space exists to satisfy a request, but it is not contiguous.

b)

Allocated memory is larger than requested memory.

c)

Memory is divided into fixed-size partitions.

d)

Memory is allocated dynamically without fragmentation.

29.

How can external fragmentation be reduced?

a)

By increasing the size of memory partitions.

b)

By using compaction to shuffle memory contents into one large block.

c)

By allocating memory dynamically.

d)

By estimating memory requirements accurately.

30.

What is internal fragmentation in memory management?

a)

Memory space exists to satisfy a request, but it is not contiguous.

b)

Allocated memory is slightly larger than requested memory, leaving unused space.

c)

Memory is divided into fixed-size partitions.

d)

Memory is allocated dynamically without fragmentation.

31.

Why does internal fragmentation occur?

a)

Because memory is allocated dynamically.

b)

Because the kernel cannot accurately estimate the memory requirement of a process.

c)

Because memory space is not contiguous.

d)

Because memory partitions are too small.

32.

What is the key difference between external and internal fragmentation?

a)

External fragmentation occurs due to contiguous memory allocation, while internal fragmentation occurs due to dynamic allocation.

b)

External fragmentation occurs when memory space exists but is not contiguous, while internal fragmentation occurs when allocated memory is larger than requested memory.

c)

External fragmentation occurs due to fixed-size partitions, while internal fragmentation occurs due to variable-size partitions.

d)

External fragmentation occurs when memory is allocated dynamically, while internal fragmentation occurs when memory is allocated statically.

33.

What is the physical address space of a process in paging?

a)

Contiguous memory allocation

b)

Noncontiguous memory allocation

c)

Sequential memory allocation

d)

Random memory allocation

34.

What are fixed-sized blocks in physical memory called in paging?

a)

Pages

b)

Frames

c)

Segments

d)

Blocks

35.

What are blocks of the same size in logical memory called in paging?

a)

Frames

b)

Pages

c)

Segments

d)

Blocks

36.

What is the purpose of a page table in paging?

a)

To allocate memory

b)

To translate logical addresses to physical addresses

c)

To divide memory into pages

d)

To store data

37.

What does the page table keep track of in paging?

a)

All allocated pages

b)

All free frames

c)

All used frames

d)

All logical addresses

38.

What is the purpose of address translation in a computer system?

a)

To convert a physical address into a logical address

b)

To translate the logical address into a physical address and create an entry into the page table

c)

To store data in the CPU

d)

To manage the memory allocation for the operating system

39.

What are the two components of a logical address generated by the CPU?

a)

Page number (p) and frame number (f)

b)

Page offset (d) and frame offset (f)

c)

Page number (p) and page offset (d)

d)

Frame number (f) and logical address (l)

40.

What does the page number (p) represent in a logical address?

a)

The offset from the beginning of the page

b)

The physical address of the page

c)

The page number in which the address resides

d)

The frame number in physical memory

41.

What does the page offset (d) represent in a logical address?

a)

The page number in which the address resides

b)

The offset from the beginning of the page

c)

The physical address of the page

d)

The frame number in physical memory

42.

Which component of the logical address is used to determine the specific location within a page?

a)

Page number (p)

b)

Frame number (f)

c)

Page offset (d)

d)

Physical address

43.

What is required for a process to execute in a computer system?

a)

It must be loaded into memory.

b)

It must be stored in the backing store.

c)

It must be swapped out of memory.

d)

It must be prioritized by the operating system.

44.

What happens when there is not enough memory available to keep all running processes in memory?

a)

Processes are terminated.

b)

Processes are swapped temporarily out of memory to a backing store.

c)

Processes are duplicated in the memory.

d)

Processes are compressed to save space.

45.

What is the purpose of the "roll out, roll in" swapping variant in priority-based scheduling algorithms?

a)

To terminate lower-priority processes.

b)

To swap out lower-priority processes so higher-priority processes can be loaded and executed.

c)

To duplicate higher-priority processes in memory.

d)

To compress lower-priority processes to save space.