wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Chapter 8 - Memory Management Strategies

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

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

a)

Temporarily store data in main memory

b)

Map logical addresses to physical addresses at runtime

c)

Manage the CPU task scheduling table

d)

Ensure memory security against intrusions

2.

What is the primary difference between a logical address and a physical address?

a)

A logical address is generated by the CPU, while a physical address is seen by the memory unit.

b)

A logical address is only used for input/output operations.

c)

Physical addresses are always smaller than logical addresses.

d)

Logical addresses are used only in specific operating systems.

3.

Which of the following memory allocation strategies highly vulnerable to large size of internal fragmentation?

a)

Paging

b)

Fixed partition allocation

c)

Dynamic partition allocation

d)

Segmentation

4.

What does external fragmentation refer to in memory management?

a)

Wasted memory within a partition

b)

Unused memory scattered across the system but not contiguous

c)

Overhead caused by memory translation

d)

Memory errors due to invalid accesses

5.

In swapping, what is the backing store?

a)

High-speed storage to hold temporary data

b)

A fast disk large enough to store memory images of all processes

c)

A section of RAM reserved for swapping

d)

A type of virtual memory for high-priority tasks

6.

Which of the following placement algorithms allocates the smallest hole that fits a process?

a)

First-fit

b)

Best-fit

c)

Worst-fit

d)

Next-fit

7.

What is a major disadvantage of dynamic partition allocation?

a)

Internal fragmentation

b)

External fragmentation

c)

Limited memory space

d)

Fixed memory size for partitions

8.

What is the purpose of a segment table in segmentation?

a)

Translate logical addresses into physical addresses

b)

Store details about allocated and free partitions

c)

Indicate valid or invalid segments in memory

d)

Manage swapping of processes

9.

In paging, what is the relationship between page size and frame size?

a)

Frame size must always be larger than page size.

b)

Frame size must always be smaller than page size.

c)

Page size and frame size must be equal.

d)

There is no specific relationship between them

10.

What is a disadvantage of segmentation?

a)

Simplified address translation

b)

Avoidance of internal fragmentation

c)

Memory allocation based on logical modules

d)

external fragmentation

11.

What happens during a context switch when swapping is involved?

a)

The process memory is freed and reallocated.

b)

Processes are swapped out and in, potentially increasing the context switch time.

c)

The CPU allocates a dedicated memory area for each process.

d)

The CPU allocates a dedicated memory area for each process.

12.

The CPU allocates a dedicated memory area for each process.

a)

Stores the number of pages in the memory

b)

Points to the location of the page table in memory

c)

Calculates offsets for logical addresses

d)

Stores frame numbers for physical memory

13.

Which of the following is a disadvantage of paging?

a)

External fragmentation

b)

Internal fragmentation

c)

Limited address space

d)

Inability to handle large processes

14.

What does the "valid-invalid" bit in a page table signify?

a)

Whether the frame is read-only or read-write

b)

Whether a page is in the process's address space or not

c)

The current execution state of the process

d)

The type of memory allocated to the page

15.

What does "compaction" in memory management involve?

a)

Merging free partitions into a single large block of memory

b)

Dividing memory into smaller blocks for efficient use

c)

Swapping processes in and out of memory

d)

Allocating memory using the worst-fit algorithm