☑ MCQ PRACTICE

Operating Systems Unit 4

Practice objective questions for quick revision and examination preparation. Try answering each question before revealing the answer.

📚 Operating Systems
📖 Unit 4
🎯 MCQs

Operating Systems - Unit-4

1
The address generated by the CPU is called the:
APhysical address
BLogical address
CAbsolute address
DMemory address register
Correct AnswerB. Logical address
2
The physical address refers to:
AAddress generated by CPU
BAddress in main memory
CAddress in cache memory
DAddress in secondary memory only
Correct AnswerB. Address in main memory
3
The set of addresses generated by a CPU is known as:
APhysical address space
BLogical address space
CVirtual disk space
DSecondary address space
Correct AnswerB. Logical address space
4
Swapping is a technique in which a process is temporarily moved between:
ACPU and cache
BMain memory and backing store
CCache and registers
DROM and RAM
Correct AnswerB. Main memory and backing store
5
In contiguous memory allocation, a process occupies:
AA single contiguous block of memory
BOnly non-contiguous blocks
COnly cache blocks
DOnly virtual pages
Correct AnswerA. A single contiguous block of memory
6
Which of the following is a contiguous memory allocation strategy?
AFirst-fit
BFIFO
CRound Robin
DBanker's algorithm
Correct AnswerA. First-fit
7
External fragmentation is mainly associated with:
AContiguous memory allocation
BPaging
CTLB
DPage table
Correct AnswerA. Contiguous memory allocation
8
Paging divides logical memory into fixed-size blocks called:
AFrames
BPages
CSegments
DBlocks
Correct AnswerB. Pages
9
Physical memory is divided into fixed-size blocks called:
APages
BSegments
CFrames
DFiles
Correct AnswerC. Frames
10
In paging, the page number is used to index the:
AFile table
BPage table
CDirectory table
DProcess table
Correct AnswerB. Page table
11
The offset in a paged address identifies the:
APage number
BFrame number
CLocation within the frame
DProcess number
Correct AnswerC. Location within the frame
12
A major advantage of paging is that it eliminates:
AInternal fragmentation
BExternal fragmentation
CPage faults
DPage tables
Correct AnswerB. External fragmentation
13
TLB is used to:
AStore files
BSpeed up address translation
CReplace main memory
DStore page files permanently
Correct AnswerB. Speed up address translation
14
Segmentation divides a program into:
AFixed-size pages
BLogical segments
CFixed-size frames
DDisk blocks only
Correct AnswerB. Logical segments
15
A logical address in segmentation consists of:
APage number and frame number
BSegment number and offset
CFrame number and offset
DBlock number and sector
Correct AnswerB. Segment number and offset
16
A segment table generally contains the:
ABase and limit
BPage and frame number
CFile name and size
DProcess and thread IDs
Correct AnswerA. Base and limit
17
If the offset exceeds the segment limit, it results in:
ASuccessful translation
BAddress violation
CPage replacement
DContext switching
Correct AnswerB. Address violation
18
Segmentation with paging combines:
ASegmentation and paging
BSwapping and scheduling
CPaging and file allocation
DCaching and swapping
Correct AnswerA. Segmentation and paging
19
In segmentation with paging, each segment is divided into:
AFrames
BPages
CDirectories
DFiles
Correct AnswerB. Pages
20
Demand paging loads a page into memory:
ABefore it is referenced
BOnly when it is needed
COnly after process termination
DOnly during system startup
Correct AnswerB. Only when it is needed
21
A page fault occurs when:
AA page is present in main memory
BA referenced page is not currently in main memory
CCPU becomes idle
DA process completes execution
Correct AnswerB. A referenced page is not currently in main memory
22
When a page fault occurs, the operating system normally:
ATerminates the process immediately
BBrings the required page into memory
CDeletes the page table
DDisables virtual memory
Correct AnswerB. Brings the required page into memory
23
The valid-invalid bit in a page table indicates whether:
AThe referenced page is valid and available to the process
BThe CPU is in kernel mode
CThe file is read-only
DThe process is waiting
Correct AnswerA. The referenced page is valid and available to the process
24
Which page replacement algorithm removes the page that has been in memory for the longest time?
ALRU
BFIFO
COptimal
DLFU
Correct AnswerB. FIFO
25
The page replacement algorithm that replaces the page that will not be used for the longest period in the future is:
AFIFO
BLRU
COptimal
DSecond Chance
Correct AnswerC. Optimal
26
LRU page replacement algorithm replaces the page that was:
ALoaded first
BLeast recently used
CMost frequently used
DLargest page number
Correct AnswerB. Least recently used
27
Belady's anomaly is commonly associated with:
AFIFO page replacement
BLRU page replacement
COptimal page replacement
DDemand segmentation
Correct AnswerA. FIFO page replacement
28
The optimal page replacement algorithm is difficult to implement because it requires knowledge of:
APast page references only
BFuture page references
CFile names
DCPU registers
Correct AnswerB. Future page references
29
The main objective of a page replacement algorithm is to:
AIncrease page size
BReduce the number of page faults
CIncrease external fragmentation
DRemove the page table
Correct AnswerB. Reduce the number of page faults
30
Thrashing occurs when a system spends excessive time in:
AExecuting arithmetic instructions
BPaging rather than executing processes
CFile allocation
DDirectory creation
Correct AnswerB. Paging rather than executing processes
← Back to All MCQs