Font size
WorksheetsOperating System Memory Management Worksheet
Total questions: 100
Worksheet time: 33mins
A system runs multiple applications simultaneously, and the OS ensures they don’t overwrite each other’s data in RAM. What concept does this describe?
Memory allocation
Memory protection
Paging
Fragmentation
An engineer designs an OS module that decides where in memory each process will run. What is this module’s role?
Device driver
Memory Management Unit
File Manager
I/O Controller
If the OS cannot allocate enough memory to a running program, what could happen?
The system automatically expands RAM
The process crashes
The OS ignores the request
The process pauses until more CPU is available
A developer notices that two programs modify the same memory address. Which OS feature failed?
Virtual memory
Memory protection
Address translation
Fragmentation control
During multitasking, the OS ensures each program uses only its assigned memory area. What is being managed?
Process scheduling
Memory allocation
File access
Data encryption
The OS assigns the first free partition large enough to fit a process. Which algorithm is used?
Best Fit
Worst Fit
First Fit
Random Fit
A process needs 220 KB. The OS finds partitions of 100 KB, 250 KB, and 400 KB. Using First Fit, which will it choose?
100 KB
250 KB
400 KB
None
Using Best Fit, which partition will be chosen for a 220 KB process?
250 KB
400 KB
100 KB
None
If Worst Fit is used, which partition from (100 KB, 250 KB, 400 KB) is assigned to a 220 KB process?
100 KB
250 KB
400 KB
None
Which allocation method is fastest but may lead to more fragmentation?
Best Fit
Worst Fit
First Fit
Dynamic Fit
Internal fragmentation happens when:
Memory is too small for a process
Unused space exists inside allocated blocks
Processes overlap memory areas
The hard drive is fragmented
External fragmentation occurs when:
Large free memory is divided into small holes
Process uses too much CPU
Data is stored in the cache
Page table overflows
A system has several small free blocks that cannot fit any process. What is the issue?
Paging
Internal fragmentation
External fragmentation
Address translation error
The Best Fit algorithm can minimize:
Internal fragmentation
External fragmentation
Process starvation
Disk thrashing
The Worst Fit algorithm can lead to:
Efficient memory use
Large leftover blocks
Reduced fragmentation
Compact memory layout
The MMU translates a virtual address into a physical address using:
Page table
Fragmentation table
Memory map
Cache buffer
A student wonders how their program accesses memory not in RAM. The OS uses:
Swapping
Compiling
Spooling
Pipelining
Virtual memory allows:
Access to physical devices directly
Programs to use more memory than physically installed
CPU to execute faster
Removal of RAM entirely
When the OS temporarily moves inactive data from RAM to disk, it performs:
Defragmentation
Paging
Compilation
Multiplexing
Virtual memory primarily helps to:
Increase disk speed
Allow multitasking with limited RAM
Prevent malware
Increase CPU clock rate
You are the OS manager. Given memory partitions: 100 KB, 500 KB, 200 KB, 300 KB, 600 KB and a 417 KB process, where will First Fit place it?
100 KB
500 KB
200 KB
300 KB
Using Best Fit, where will the 417 KB process go?
500 KB
600 KB
300 KB
200 KB
Using Worst Fit, where will it go?
100 KB
500 KB
600 KB
300 KB
After several processes finish, many small memory gaps appear. What must the OS perform to combine free spaces?
Paging
Compaction
Caching
Interrupt handling
A program crashes when accessing restricted memory. Which feature prevents this normally?
Memory protection
Virtual memory
Paging
Segmentation
Swapping allows:
Disk storage to act as temporary memory
CPU to allocate registers dynamically
Processors to share cache
Hardware to defragment disks
The OS moves data between RAM and the hard disk during:
(a)
If RAM is full and new processes need space, the OS uses:
Multiprocessing
Virtual memory
Booting
ROM allocation
A slow computer is constantly moving data between RAM and disk. This condition is known as:
Swapping
Thrashing
Fragmentation
Paging
Virtual memory benefits multitasking because:
It merges CPU cores
It shares physical memory efficiently
It reduces network traffic
It eliminates disk I/O
Which algorithm is most efficient if processes fit perfectly in smaller blocks?
Best Fit
Worst Fit
First Fit
Round Robin
Which algorithm is most likely to leave large free holes unused?
First Fit
Worst Fit
Best Fit
Dynamic Fit
If the OS allocates 450 KB to a process needing only 420 KB, what kind of fragmentation occurs?
External
Internal
Logical
Disk
Which scenario shows external fragmentation?
Many small free gaps totaling 2 MB but none big enough for a 1 MB process
A 256 KB process gets a 512 KB block
Which approach can reduce external fragmentation?
Compaction
Paging
Swapping
All of the above
You are running five processes with fixed memory partitions. Which allocation type is this?
Contiguous allocation
Non-contiguous allocation
Virtual paging
Dynamic segmentation
Paging divides memory into:
Frames and pages
Blocks and bytes
Sectors and clusters
Bits and nibbles
Segmentation allows memory to be divided based on:
Logical program parts
Equal-sized pages
Physical hardware limits
Cache levels
Which technique allows multiple programs to share memory without conflict?
Address translation
Paging
Virtual memory
All of the above
Which is NOT a function of memory management?
Allocating memory
Protecting memory
Translating addresses
Encrypting data
You are the OS engineer. The system constantly performs swapping. What could improve performance?
Increase RAM size
Use smaller partitions
The OS keeps track of free and used memory using:
Process table
Page table
Memory map
Disk scheduler
In paging, what identifies each process’s page-to-frame mapping?
MMU
Page table
Disk queue
Stack
Which is a disadvantage of Best Fit?
Causes large unused spaces
Slower search time
Inefficient use of memory
Overwrites memory
When the OS assigns memory dynamically during execution, it performs:
Static allocation
Dynamic allocation
Contiguous allocation
Address relocation
What problem does virtual memory mainly solve?
CPU overheating
Insufficient physical memory
Network delays
Disk fragmentation
Which algorithm provides the fastest allocation decision?
First Fit
Best Fit
Worst Fit
Equal Fit
Which situation best shows internal fragmentation?
Allocating 300 KB for a 270 KB process
Many small holes scattered in memory
Process swapped to disk
None of the above
What ensures one program cannot access another’s memory area?
Memory protection
Segmentation
Paging
Cache control
The OS allocates memory dynamically, translates addresses, and prevents overlap. What is this process called?
Memory management
Process scheduling
Device control
File handling
A company loses important data due to poor file organization. Which concept was neglected?
File sharing
File management
File encryption
File compression
A student organizes class notes into folders by subject. This is an example of:
File allocation
File management practice
File fragmentation
File access method
Why is file management essential for operating systems?
To reduce CPU speed
To organize, store, and retrieve data efficiently
To compress memory
To reduce software size
A system crash caused file corruption. Which part of file management can help prevent this?
File encryption
File backup and integrity management
File allocation
File deletion
A computer user can quickly find and open a file by double-clicking it. This action represents:
File creation
File execution
File opening
A user types a new report in Word and saves it for the first time. Which operation is performed?
Editing
Creating
Deleting
Opening
A student updates an essay and resaves it. What operation occurs?
Creating
Editing
Deleting
Copying
After finishing a project, a student deletes temporary files. This is an example of:
File creation
File editing
File deletion
File organization
When you right-click and choose Rename, you are:
Editing the file’s metadata
Creating a new file
Allocating memory
Modifying file contents
A programmer uses the command line rm filename.txt. This represents:
File creation
File editing
File opening
File deletion
A USB drive formatted with FAT32 cannot store a 10 GB file. Why?
FAT32 has a 4 GB file limit
The drive is full
The OS doesn’t support it
The file is read-only
A student wants to use the same flash drive for Windows and macOS. The best file system is:
NTFS
exFAT
ext4
A company secures sensitive files with encryption and permissions. Which file system supports this?
FAT
NTFS
exFAT
FAT32
NTFS provides which advantage over FAT32?
Faster copying on old systems
Larger file support and security
Simpler directory structure
Less space usage
Which file system is most compatible across devices (old and new)?
NTFS
FAT32
exFAT
APFS
A server administrator formats a drive using ext4. Why might this be done?
To use encryption
For performance and large volume support
For backward compatibility
For NTFS compatibility
A Linux system needs advanced features like snapshots and self-healing. The admin should use:
ext4
Btrfs
XFS
ZFS
An enterprise server prioritizes performance and journaling. Which file system is ideal?
FAT32
XFS
exFAT
APFS
A company prioritizes data reliability and storage capacity. Which should they use?
ZFS
NTFS
FAT32
A Linux user can’t access a drive formatted in NTFS without drivers. Why?
NTFS is proprietary to Windows
NTFS lacks journaling
NTFS is a cloud format
NTFS is encrypted
Apple replaced HFS+ with APFS. What’s the main reason?
To increase backward compatibility
To improve SSD performance and encryption
To use smaller clusters
To support FAT files
A MacBook user with an SSD benefits from:
FAT32
NTFS
APFS
ext4
APFS supports space sharing. This means:
Drives automatically compress
Multiple volumes share storage dynamically
All files are duplicated
Backups are deleted automatically
The HFS+ file system is considered outdated because:
It doesn’t support encryption or snapshots
It only works with Windows
It can’t store large files
It’s slower than FAT
A macOS user wants to share files with a Windows computer. Which format should they choose?
APFS
HFS+
exFAT
ZFS
A movie file is stored in one continuous block on the disk. What allocation is used?
Linked
Indexed
Contiguous
A file’s data is scattered across the disk, connected by pointers. Which allocation type is this?
Linked
Indexed
Contiguous
FAT-based
Which allocation scheme uses an index table to track file blocks?
Contiguous
Linked
Indexed
Sequential
Which method allows the fastest sequential access?
Linked
Indexed
Contiguous
Random
Which method reduces fragmentation but slows down random access?
Linked
Contiguous
Indexed
FAT
A large video project is slowing down because files are scattered on the disk. The issue is:
File corruption
Fragmentation
Insufficient RAM
Power failure
Which allocation method is most prone to fragmentation?
Linked
Indexed
Contiguous
FAT
A database requires direct access to any record. The best allocation method is:
Contiguous
Linked
Indexed
In linked allocation, what happens if a pointer is lost?
The file is completely inaccessible
The system crashes
Data is partially accessible
File becomes faster to read
A file stored using indexed allocation becomes slower for sequential reads because:
Index table must be read first
Pointers cause fragmentation
Files are contiguous
Disk cache interferes
A file system uses tables to map clusters to files. This resembles:
FAT system
Linked allocation
Indexed system
All of the above
A flash drive formatted in exFAT cannot be read on an old Windows 95 computer because:
exFAT is too new for that OS
It lacks encryption
It is too slow
It’s not large enough
A system admin prefers XFS for a web server because it:
Is lightweight but simple
Supports high-performance journaling
Is compatible with mobile devices
Uses contiguous blocks
A developer needs snapshot support for testing environments. Which file system is ideal?
FAT32
ext4
Btrfs
NTFS
An organization needs data recovery and permission control. Which file system should they use?
NTFS
FAT32
APFS
The OS determines where to place files on the disk. Which subsystem is responsible?
File allocation
Memory manager
Process scheduler
I/O handler
What problem can occur if too many small files are deleted and created over time?
Disk corruption
Fragmentation
File duplication
Cache overflow
Which file system would best handle very large data volumes on Linux servers?
ext2
ext4
FAT32
NTFS
Which system is not journaling-based?
XFS
ZFS
FAT32
ext4
A student deletes a file by mistake. Which file system offers recovery features?
NTFS
FAT32
exFAT
ext2
Which of the following represents good file management?
Saving all files on desktop
Organizing files into labeled folders
Using random file names
Keeping duplicates of everything
A system uses a file table to locate files. This helps in:
Faster file retrieval
Reducing CPU speed
Encrypting data
Slowing access
A file system that stores data in tree structures for efficiency is:
Btrfs
FAT32
NTFS
APFS
Why might a USB drive formatted with NTFS not work on macOS by default?
macOS doesn’t have NTFS write support
NTFS uses encryption
NTFS is fragmented
NTFS is outdated
Which of the following best summarizes file management’s purpose?
Organize and control data storage for easy access and reliability
Provide more CPU power to files
Reduce RAM usage
Encrypt all user data
