0
0
Operating Systemsknowledge~20 mins

Paging concept and page tables in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Paging Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the purpose of paging

What is the main purpose of using paging in an operating system?

ATo divide physical memory into fixed-size blocks called frames and map them to pages in virtual memory
BTo increase the size of the CPU cache for faster processing
CTo encrypt data stored in memory for security
DTo allow direct access to hardware devices without OS intervention
Attempts:
2 left
💡 Hint

Think about how memory is managed to avoid fragmentation and simplify allocation.

📋 Factual
intermediate
2:00remaining
Page table entry contents

Which of the following is NOT typically stored in a page table entry?

AFrame number where the page is stored
BValidity bit indicating if the page is in physical memory
CProcess ID of the owner process
DAccess permissions like read or write
Attempts:
2 left
💡 Hint

Consider what information is needed to translate virtual addresses to physical addresses.

🔍 Analysis
advanced
2:00remaining
Calculating page table size

An operating system uses 32-bit virtual addresses and a page size of 4 KB. How many entries does a single-level page table have?

A65,536 entries
B1,048,576 entries
C262,144 entries
D4,096 entries
Attempts:
2 left
💡 Hint

Calculate the number of pages by dividing the virtual address space by the page size.

Comparison
advanced
2:00remaining
Difference between internal and external fragmentation

Which statement correctly distinguishes internal fragmentation from external fragmentation in memory management?

AExternal fragmentation occurs only in virtual memory; internal fragmentation occurs only in physical memory.
BExternal fragmentation happens inside allocated blocks; internal fragmentation is caused by scattered free blocks.
CInternal fragmentation is caused by paging; external fragmentation is caused by segmentation only.
DInternal fragmentation occurs when allocated memory blocks have unused space; external fragmentation is free memory scattered in small blocks.
Attempts:
2 left
💡 Hint

Think about wasted space inside allocated blocks versus scattered free space outside allocated blocks.

Reasoning
expert
2:00remaining
Effect of page size on page table size and fragmentation

How does increasing the page size affect the size of the page table and the amount of internal fragmentation?

APage table size decreases and internal fragmentation increases
BPage table size increases and internal fragmentation decreases
CBoth page table size and internal fragmentation increase
DBoth page table size and internal fragmentation decrease
Attempts:
2 left
💡 Hint

Consider how page size affects the number of pages and leftover space inside pages.