Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Chapter: 35
Q961:
What is one benefit of sharing code in paging and segmentation?
A. It saves physical memory space
B. It reduces the need for memory allocation
C. It increases the execution speed
D. It prevents memory errors
Correct Answer: A
Chapter: 35
Q962:
Which type of memory management system might cause compaction to eliminate external fragmentation?
A. Segmentation
B. Paging
C. Virtual memory
D. Fixed-size partitioning
Correct Answer: A
Chapter: 35
Q963:
In a segmented memory system, how is protection handled for an array in a segment?
A. The hardware checks if array indexes are legal
B. The array is automatically checked for errors
C. The segment is made read-only
D. The segment is divided into fixed sizes
Correct Answer: A
Chapter: 35
Q964:
Which memory management technique involves dividing memory into equal-sized blocks called pages?
A. Paging
B. Segmentation
C. Virtual memory
D. Dynamic partitioning
Correct Answer: A
Chapter: 35
Q965:
What happens when a segment is marked as "read-only"?
A. The segment cannot be modified
B. The segment cannot be executed
C. The segment can be shared
D. The segment is discarded
Correct Answer: A
Chapter: 35
Q966:
What is the main difference between paging and segmentation?
A. Paging divides memory into equal-sized blocks, while segmentation uses variable-sized blocks
B. Paging requires physical memory, while segmentation does not
C. Segmentation is a dynamic system, while paging is static
D. Paging uses larger memory blocks than segmentation
Correct Answer: A
Chapter: 35
Q967:
What does the term "reentrant code" refer to?
A. Code that can be shared between multiple processes
B. Code that cannot be executed
C. Code that modifies itself during execution
D. Code that runs only once
Correct Answer: A
Chapter: 35
Q968:
What happens when the segment base and limit in the hardware are used together in segmentation?
A. The logical address is translated to a physical address
B. The segment size is modified
C. The memory is allocated dynamically
D. The segment is split into smaller parts
Correct Answer: A
Chapter: 36
Q969:
In paged segmentation, what is used to index the page table?
A. Segment number
B. Offset
C. Page size
D. Page table
Correct Answer: A
Chapter: 36
Q970:
What is the primary advantage of using paged segmentation in memory management?
A. Fixed segment sizes
B. Sharing of code
C. Memory fragmentation
D. External fragmentation
Correct Answer: B
Chapter: 36
Q971:
The largest segment size supported by MULTICS is _______.
A. 1 KB
B. 16 KB
C. 2^16 bytes
D. 2^18 bytes
Correct Answer: C
Chapter: 36
Q972:
In the GE 345 processor, how many pages can a segment have if the page size is 1 KB and the segment is 5096 bytes?
A. 3
B. 5
C. 64
D. 2
Correct Answer: B
Chapter: 36
Q973:
MULTICS used a CPU with a 34-bit logical address. How many bits were used for the segment number?
A. 16 bits
B. 18 bits
C. 32 bits
D. 34 bits
Correct Answer: B
Chapter: 36
Q974:
The MULTICS system used a page size of _______.
A. 512 bytes
B. 1 KB
C. 2 KB
D. 4 KB
Correct Answer: B
Chapter: 36
Q975:
In paged segmentation, what does the segment table entry contain?
A. Segment number and offset
B. Segment length and page-table base
C. Page size and frame number
D. Page table and segment offset
Correct Answer: B
Chapter: 36
Q976:
The hardware support needed for logical to physical address translation in paged segmentation involves the use of which two values?
A. Segment base and limit
B. Page number and offset
C. Segment number and offset
D. Frame number and offset
Correct Answer: C
Chapter: 36
Q977:
A logical address in paged segmentation is divided into _______.
A. Segment number and offset
B. Page number and offset
C. Frame number and segment number
D. Page number and segment number
Correct Answer: B
Chapter: 36
Q978:
What does the segment-table base register (STBR) point to?
A. The segment length
B. The page table location in memory
C. The process table location
D. The segment table's location in memory
Correct Answer: D
Chapter: 36
Q979:
In paged segmentation, the offset d is divided into two parts: _______ and _______.
A. p and d'
B. s and d
C. s and p
D. d and f
Correct Answer: A
Chapter: 36
Q980:
The Intel 80386 uses _______ for paged segmentation with two-level paging.
A. 64-bit logical address
B. 48-bit logical address
C. 32-bit address with selector
D. 16-bit address
Correct Answer: B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now