Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

OperatingSystemPart3

Total questions: 75

Worksheet time: 25mins

Name
Class
Date
1.

The addresses generated by a user program during execution are known as which type of addresses?

a)

Physical addresses

b)

MMU addresses

c)

Logical addresses

d)

BIOS addresses

2.

Which component is primarily responsible for translating logical addresses generated by the CPU into physical addresses in main memory?

a)

The Hard Disk Drive (HDD)

b)

The Memory Management Unit (MMU)

c)

The CPU's Control Unit

d)

The Operating System Kernel

3.

In Fixed Memory Partitioning (FMP), what type of fragmentation is the primary problem?

a)

Total Fragmentation

b)

Virtual Fragmentation

c)

Internal Fragmentation

d)

External Fragmentation

4.

Which memory management technique requires the program to be manually split into sections (overlays) to run programs larger than the available physical memory?

a)

Paging and Segmentation

b)

Single Tasking with Overlay

c)

Variable Memory Partitioning (VMP)

d)

Fixed Memory Partitioning (FMP)

5.

What is the primary method used to eliminate External Fragmentation in Variable Memory Partitioning?

a)

Swapping

b)

Segmentation

c)

Paging

d)

Compaction

6.

The operating system's Memory Management function ensures which fundamental principle between concurrently running processes?

a)

Resource Compaction

b)

Simultaneous Access

c)

Protection and Isolation

d)

Mutual Exclusion

7.

What occurs when the total available free memory is sufficient to load a new process, but that free memory is scattered in non-contiguous chunks?

a)

Overlay Conflict

b)

External Fragmentation

c)

Partition Overflow

d)

Internal Fragmentation

8.

In the context of memory management, what does the term RAM stand for?

a)

Random Access Memory

b)

Random Access Mainframe

c)

Resource Allocation Module

d)

Read-Access Memory

9.

Which memory management technique involves partitioning memory into contiguous blocks where the size of each block is determined by the size of the process being loaded?

a)

Fixed Memory Partitioning (FMP)

b)

Overlay

c)

Paging

d)

Variable Memory Partitioning (VMP)

10.

The address space viewed by the hardware and organized into physical addresses is referred to as:

a)

Physical Memory

b)

Logical Memory

c)

Virtual Memory

d)

MMU Cache

11.

If a system uses Fixed Memory Partitioning with 1MB partitions, and a 100KB process is loaded, and then a 900KB process is loaded into two separate partitions, what is the total Internal Fragmentation in KB?

a)

800 KB

b)

0 KB

c)

1048 KB

d)

1000 KB

12.

The primary disadvantage of the Single Tasking with Overlay technique is that:

a)

The entire program must be able to fit in memory before it can run.

b)

It requires significant programmer effort to manually manage overlay sections and dependencies.

c)

It suffers heavily from external fragmentation.

d)

It requires dynamic compaction to manage memory holes.

13.

Why does Fixed Memory Partitioning typically result in lower CPU utilization compared to Variable Memory Partitioning in a multi-tasking environment?

a)

FMP uses logical addressing, which is slower to translate.

b)

FMP often wastes large blocks of memory (internal fragmentation) that could otherwise hold more processes.

c)

FMP allows only one process to run at a time.

d)

FMP requires continuous compaction, wasting CPU cycles.

14.

A system implements Variable Memory Partitioning. After several hours, memory is highly fragmented externally. A new process of 500KB arrives. Which scenario prevents the process from loading?

a)

Total free memory is 500KB in three separate blocks of 100KB, 100KB, and 300KB.

b)

A process of 600KB is currently running in a fixed partition.

c)

Total free memory is 600KB in a single, contiguous block.

d)

Total free memory is 490KB in a single block.

15.

In the scenario provided in the notes, calculate the Internal Fragmentation if the partition size was changed from 400KB to 500KB (and the 450KB process could now be loaded). The processes loaded are 350KB, 200KB, 150KB, 450KB , 300KB , and 100KB.

a)

900KB

b)

1450KB

c)

1550KB

d)

1150KB

16.

Which statement best describes the primary job of the Memory Management Unit (MMU) in the context of memory protection?

a)

The MMU checks if the logical address attempts to access a physical address space outside the process's allocated limits during translation.

b)

The MMU allocates memory dynamically based on the process's needs.

c)

The MMU ensures that the logical addresses generated by the CPU exceed the physical address space.

d)

The MMU ensures that the physical memory is always larger than the logical memory.

17.

Why is Variable Memory Partitioning generally more efficient in terms of memory utilization compared to Fixed Memory Partitioning?

a)

VMP restricts programs to the size of the smallest partition.

b)

VMP eliminates the need for any memory translation.

c)

VMP eliminates internal fragmentation by allocating exactly the size a process needs.

d)

VMP uses compaction to reduce internal fragmentation.

18.

Which memory management approach is characterized by the need for memory to be treated as a single, contiguous block for the entire program, even if using the overlay technique?

a)

Fixed Partitioning

b)

Single Tasking with Overlay

c)

Variable Partitioning

d)

Segmentation

19.

If an OS needs to maintain accurate information about which areas of memory are free and which are occupied, this is fulfilling the MM role of:

a)

Ensuring program size limitations.

b)

Keeping track of memory usage.

c)

Preventing external fragmentation.

d)

Translating logical addresses.

20.

Compaction is computationally expensive because it requires the operating system to:

a)

Shine off memory contents to disk storage.

b)

Reset the physical addresses to zero.

c)

Dynamically re-create all the logical addresses used by the processes.

d)

Physically relocate occupied memory blocks and update the base addresses of processes.

21.

An OS supporting multiprogramming aims to maximize the number of processes in memory. Which memory management technique is inherently limited in this goal due to its design?

a)

Fixed Memory Partitioning

b)

Variable Memory Partitioning

c)

Paging

d)

Segmentation

22.

What would be the total KB of Internal Fragmentation in a FMP system with two 100KB partitions if one partition holds a 90KB process and the other partition is empty?

a)

100KB

b)

110KB

c)

10KB

d)

20KB

23.

If a logical address is 1024 and the base address of the process is 2048, what is the corresponding physical address?

a)

3072

b)

Cannot be determined without the limit register.

c)

1024

d)

2048

24.


Which scenario is not a direct responsibility of the operating system's Memory Management component?

a)

Allocating and de-allocating memory space to processes.

b)

Keeping track of which portions of memory are free and which are occupied.

c)

Determining the priority of a process for CPU scheduling.

d)

Deciding where processes should reside in main memory.

25.

The primary requirement for the Compaction technique to be effective in eliminating External Fragmentation is the ability to:

a)

Translate physical addresses into logical addresses.

b)

Relocate running programs without interrupting their execution.

c)

Convert all non-contiguous free spaces into internal fragmentation.

d)

Dynamically re-run the program's initialization phase.

26.

Which memory management technique allows the execution of processes that are not completely in physical memory?

a)

Overlay

b)

Fixed Memory Partitioning

c)

Virtual Memory

d)

External Fragmentation

27.

In Demand Paging, what does an 'i' (Invalid) setting in the Valid-Invalid bit of the Page Table indicate?

a)

The page is read-only and cannot be modified.

b)

The page is not in physical memory

c)

The page is currently in physical memory.

d)

The page is corrupt or damaged.

28.

What is the primary goal of the Optimal (OPT) Page Replacement Algorithm?

a)

To guarantee the lowest page fault rate for a fixed number of frames.

b)

To use only pages that belong to the operating system kernel.

c)

To replace the page that was used the longest time ago.

d)

To replace the page that has been in memory the longest (FIFO).

29.

A Page Fault is an interrupt that signals which event during the process's execution?

a)

The process has finished its execution successfully.

b)

The requested page is not currently resident in physical memory (RAM).

c)

A request for a page located on a remote network drive.

d)

The requested page is not found in the Translation Lookaside Buffer (TLB).

30.

Which of the following is a key characteristic of the Demand Segmentation approach compared to Demand Paging?

a)

The logical blocks (segments) are visible and meaningful to the user/programmer.

b)

It uses fixed-size blocks for memory allocation.

c)

It eliminates the problem of external fragmentation.

d)

It uses the entire program as the minimum swap unit.

31.

The primary benefit of Virtual Memory that relates to the separation of logical and physical address spaces is the ability to:

a)

Increase the speed of the CPU's clock cycle.

b)

Execute a process whose total logical address space is larger than the total physical memory.

c)

Eliminate all forms of fragmentation.

d)

Force all pages to be resident in memory at all times.

32.

Which page replacement algorithm is used as a benchmark for comparison but is impossible to implement in a general OS due to its reliance on future knowledge?

a)

First-In, First-Out (FIFO)

b)

Optimal (OPT)

c)

Least Recently Used (LRU)

d)

Least Frequently Used (LFU)

33.

In the process of handling a Page Fault, what action must the OS take if no free physical memory frame is available?

a)

Perform a Page Replacement Algorithm to select a victim frame.

b)

Re-run the previous instruction repeatedly until a frame becomes free.

c)

Convert the invalid bit to 'v' without loading the page.

d)

Terminate the entire process.

34.

A key advantage of Virtual Memory is that it improves CPU utilization by supporting a higher degree of:

a)

Multiprogramming

b)

External Fragmentation

c)

Mutual Exclusion

d)

Resource Compaction

35.

The page replacement algorithm that is an effective practical approximation of the Optimal algorithm is:

a)

First-In, First-Out (FIFO)

b)

Belady's Anomaly (BA)

c)

Least Recently Used (LRU)

d)

Optimal (OPT)

36.

A system implements Demand Paging. An address generated by the CPU is checked in the Page Table, and the Valid-Invalid bit is 'v'. The resulting physical memory access is classified as:

a)

A Page Fault, requiring disk I/O.

b)

A Disk Swapping Operation, requiring a victim page.

c)

A Segmentation Fault, requiring the OS to update the Segment Table.

d)

A Page Hit, resulting in fast, direct memory access.

37.

If a memory management scheme swaps entire segments (variable size) to and from the disk, which fragmentation issue is a key concern for this scheme?

a)

Internal Fragmentation

b)

External Fragmentation

c)

Page Fault Fragmentation

d)

No fragmentation (perfect fit)

38.

Belady's Anomaly demonstrates a flaw in the FIFO algorithm. This anomaly is characterized by:

a)

The page fault rate increasing as the number of available frames increases.

b)

Pages remaining in memory indefinitely.

c)

The page fault rate decreasing as the number of available frames increases.

d)

The LRU algorithm outperforming the Optimal algorithm.

39.

When handling a Page Fault, the OS must restart the instruction that caused the fault. This necessity implies that the MMU must have recorded:

a)

The entire program's logical address space.

b)

The average page access time.

c)

The disk location of the victim page.

d)

The state of the instruction's execution before the trap occurred.

40.

In the comparison between Demand Paging and Demand Segmentation, which factor contributes to the simpler address translation in Demand Paging?

a)

Paging uses variable-size blocks (pages).

b)

Paging allows the user to see the logical program units.

c)

Paging uses fixed-size blocks (pages).

d)

Paging requires a longer page table lookup time.

41.

Which of the following is a direct consequence of using Virtual Memory to support a high degree of multiprogramming?

a)

Higher risk of thrashing.

b)

Elimination of all page faults.

c)

Increased overall physical memory size.

d)

Reduced need for a Page Table.

42.

The fact that Demand Paging eliminates the need for the user program to concern itself with the physical memory limits is a demonstration of which core Virtual Memory concept?

a)

Internal fragmentation reduction.

b)

The separation of logical and physical address spaces.

c)

Program relocation complexity.

d)

Program relocation complexity.

43.

If a page replacement algorithm consistently chooses a victim page that will be accessed again almost immediately, the system will experience a high rate of:

a)

CPU Hitting

b)

Page Faults

c)

External Fragmentation

d)

Context Switching

44.

Why is the Least Recently Used (LRU) algorithm often implemented using approximations (like the clock algorithm) rather than precise time-stamping?

a)

Because precise time-stamping is only possible in Optimal replacement.

b)

Because LRU must use variable-size pages.

c)

Because the overhead of continuously updating and maintaining a perfect usage order is too high.

d)

Because LRU suffers from Belady's Anomaly.

45.

What happens to the Valid-Invalid bit of the required page entry in the Page Table immediately after the page is read from the disk into the free frame during a Page Fault handler routine?

a)

It is used to select the next victim page.

b)

It is reset to 'i' to signal the disk transfer is complete.

c)

It is set to 'v' to indicate the page is now resident and accessible.

d)

It remains 'i' until the entire process completes.

46.

Which fragmentation problem is the main drawback of Demand Paging, potentially leading to wasted space in memory?

a)

Demand Fragmentation

b)

External Fragmentation (between pages)

c)

Thrashing

d)

Internal Fragmentation (within the last page)

47.

A system is using Demand Paging with a 4KB page size. A process needs 10KB of logical memory. How many pages will this process occupy, and what is the internal fragmentation?

a)

2 pages; 0 KB fragmentation.

b)

3 pages; 6 KB fragmentation.

c)

2 pages; 6 KB fragmentation.

d)

3 pages; 2 KB fragmentation.

48.

The primary disadvantage of the Demand Segmentation approach is its susceptibility to external fragmentation, which requires the OS to implement the complex procedure of:

a)

Paging

b)

Compaction

c)

Swapping

d)

Belady's Anomaly

49.

If a single process has pages scattered across multiple non-contiguous frames in physical memory, which technique makes this possible?

a)

Demand Paging

b)

Contiguous memory allocation

c)

Fixed Memory Partitioning

d)

Overlay

50.

In the LRU (Least Recently Used) algorithm, what data must the operating system maintain or approximate for every page currently in memory?

a)

The exact physical location of all pages belonging to the process.

b)

The next instruction that will access the page.

c)

The time or sequence of the page's last reference.

d)

The total number of times the page has been swapped out.

51.

Which hardware component generates the interrupt (trap) when a process attempts to access a page marked with an 'i' (Invalid) bit?

a)

Central Processing Unit (CPU)

b)

Operating System (OS)

c)

Memory Management Unit (MMU)

d)

Disk Controller

52.

In the Page Table, what does the Valid-Invalid bit of 'v' (Valid) indicate?

a)

The page is currently resident in a physical memory frame.

b)

The page is on disk and ready to be loaded.

c)

The page has been modified (is 'dirty').

d)

The page belongs to the operating system kernel.

53.

The primary cause of the high cost associated with handling a Page Fault is the required process of:

a)

Reading the required page from the slow secondary storage (disk I/O).

b)

Restarting the instruction that caused the fault.

c)

Executing the Page Replacement Algorithm.

d)

Saving the state of the user process.

54.

Which page replacement algorithm is impractical to implement because it requires knowledge of the page reference string's future accesses?

a)

Second Chance

b)

Optimal (OPT)

c)

Least Recently Used (LRU)

d)

First-In, First-Out (FIFO)

55.

The general formula for calculating the Effective Access Time (EAT) is

EAT = (1 - p) x (A) + p x (F), where p is the page fault rate. What does A represent?

a)

Total process execution time.

b)

Disk I/O latency.

c)

Memory Access Time (Page Hit Time).

d)

Average time to find a free frame.

56.

After the required page is loaded from disk during a Page Fault, what is the final action the OS performs before returning control to the user process?

a)

Restoring the CPU state and restarting the faulted instruction.

b)

Saving the new victim page to the disk.

c)

Terminating the process that caused the fault.

d)

Running the Page Replacement Algorithm again.

57.

The Dirty Bit (or Modified Bit) associated with a page indicates that:

a)

The page is currently being accessed by the CPU.

b)

The page has been written to since it was loaded into memory.

c)

The page is a high-priority victim candidate.

d)

The page is corrupt and must be replaced.

58.

The LRU (Least Recently Used) page replacement algorithm chooses a victim page based on what criterion?

a)

The page that will be used furthest in the future.

b)

The page with the largest size in memory.

c)

The page that has been loaded into memory the longest.

d)

The page that has not been referenced for the longest period of time.

59.

What is the consequence of a victim page being 'dirty' during the Page Replacement process?

a)

It can be removed immediately without disk I/O.

b)

It must be written back to the disk before the new page can be loaded.

c)

The process is immediately terminated.

d)

The Page Table entry remains unchanged.

60.

What is the final step in the OS handler routine concerning the Page Table before the instruction is restarted?

a)

Deleting the entire page table entry for the process.

b)

Marking the victim page's entry as 'dirty'.

c)

Resetting all frame numbers to zero.

d)

Setting the Valid-Invalid bit of the required page's entry to 'v'.

61.

In a Demand Paging system, the memory access time is 200 nanoseconds, and the Page Fault handling time is 10 milliseconds. If the page fault rate is 0.0001 (0.01%), what is the Effective Access Time (EAT)?

a)

200 nanoseconds

b)

10.0001 milliseconds

c)

1000 nanoseconds

d)

10000 nanoseconds

62.

If the Page Fault rate p increases from 0.0001 to 0.0002 (a 0.01% increase), why does the Effective Access Time (EAT) more than double, despite the change in p being small?

a)

The OS must restart the instruction twice for every fault.

b)

The Memory Access Time component triples.

c)

The Page Replacement Algorithm becomes infinitely complex.

d)

The Page Fault Time component remains the same, but its contribution is doubled by the rate p.

63.

Which crucial step, required by the OS to handle a Page Fault, is completely avoided if the system uses Demand Segmentation instead of Paging?

a)

Finding the disk location of the data.

b)

Trapping to the operating system.

c)

Restarting the instruction.

d)

Translating the logical address using fixed block sizes.

64.

The Belady's Anomaly, demonstrated by the FIFO algorithm, is used to illustrate which principle regarding replacement algorithms?

a)

That the Page Fault handling time is negligible.

b)

That LRU is the best practical algorithm.

c)

That the Optimal algorithm is impossible to implement.

d)

That increasing the number of physical memory frames can increase the page fault rate.

65.

The operating system chooses to save the state of the user process (CPU registers, Program Counter) immediately upon trapping a Page Fault. This is necessary primarily to ensure:

a)

The Page Fault is not mistaken for a segmentation fault.

b)

A clean restart of the instruction from the exact point of failure.

c)

The Disk I/O operation is protected from interruption.

d)

The required page is not modified by another process.

66.

If the OS uses the Least Recently Used (LRU) algorithm, what implementation overhead is typically incurred for every successful memory access (Page Hit)?

a)

Updating a timer or stack position to mark the accessed page as most recently used.

b)

A full disk I/O operation.

c)

Calculating the effective access time.

d)

Executing the Page Replacement routine.

67.

The instruction that caused the Page Fault is restarted rather than continued. This implies the instruction must be one that:

a)

Is part of the operating system kernel.

b)

Does not use the CPU.

c)

Cannot be completed partially and then resumed.

d)

Only accesses the system's hard drive.

68.

What is the consequence of selecting a page replacement algorithm (like FIFO) that has a high potential for Belady's Anomaly?

a)

The Valid-Invalid bit is automatically set to 'v'.

b)

The OS wastes resources by potentially allocating more frames that worsen performance.

c)

The memory access time decreases sharply.

d)

It guarantees the lowest possible page fault rate.

69.

The Page-Fault Handler routine is designed to confirm whether the access was valid before proceeding. If the access is deemed invalid, the OS action is to:

a)

Update the Page Table with a new frame number.

b)

Immediately search for a victim page.

c)

Load the page from disk and continue.

d)

Terminate the process.

70.

A system has a memory access time of 50 ns and a Page Fault time of 8 ms. To keep the EAT below 100 ns, the maximum tolerable page fault rate p must be less than approximately:

a)

0.00000625

b)

0.00005

c)

0.0000125

d)

0.00625

71.

When handling a Page Fault, why must the OS ensure that the victim page is written back to the disk only if its Dirty Bit is set?

a)

The victim page might be needed by another running process.

b)

Writing a clean page back to disk causes a system crash.

c)

To save I/O time, as a clean page already exists on the disk and does not need to be saved.

d)

Only dirty pages are eligible for replacement by the LRU algorithm.

72.

In the process of handling a page fault, the required page is read from the disk into the newly acquired frame. Which key step must occur immediately before the transfer can begin?

a)

The Page Table must be reset to the initial state.

b)

The OS must convert all logical addresses to physical addresses.

c)

The CPU must switch to user mode.

d)

The OS must acquire a free frame, possibly by running the Page Replacement Algorithm.

73.

The First-In, First-Out (FIFO) page replacement algorithm's primary advantage is negated by its vulnerability to Belady's Anomaly and its poor performance because:

a)


It often replaces pages that are frequently used (hot pages) simply because they were loaded first.

b)

It only works if the page fault rate is zero.

c)

It requires expensive hardware to track page load times.

d)

It requires the user to manually set the victim page.

74.

Which scenario best justifies the use of the Least Recently Used (LRU) algorithm despite its high implementation overhead?

a)

In systems where the high cost of a page fault outweighs the high cost of maintenance.

b)

In systems where the exact load time of pages is unknown.

c)

In systems that must suffer from Belady's Anomaly.

d)

In systems where the entire logical address space is always resident in memory.

75.

The fact that a Page Fault requires the OS to intervene and perform I/O operations from secondary storage means that the entire handling routine must execute in which privileged CPU mode?

a)

System call mode

b)

User mode

c)

Kernel (Supervisor) mode

d)

Instruction restart mode