Operating System MCQs with Answers
Practice important Operating System MCQs with answers and explanations.
Chapter: 34
Q921:
In a two-level paging system, how is the logical address divided?
A. Into an outer page table index and inner page table index
B. Into a page number and page offset
C. Into a process ID and page number
D. Into a physical address and a logical address
Correct Answer:
A
Chapter: 34
Q922:
Which paging system divides the page table into smaller pieces to manage large address spaces?
A. Hierarchical/Multilevel Paging
B. Hashed Page Table
C. Inverted Page Table
D. Direct Paging
Correct Answer:
A
Chapter: 34
Q923:
What happens if a write operation is attempted on a read-only page?
A. A hardware trap occurs
B. The operation is successful
C. The data is read instead of written
D. The page is modified without issue
Correct Answer:
A
Chapter: 34
Q924:
How is the page table structured for 32-bit address spaces?
A. It may become larger than a page and needs to be paged
B. It fits within a single page
C. It uses only one entry per page
D. It does not require any paging
Correct Answer:
A
Chapter: 34
Q925:
What is the purpose of a hashed page table?
A. To handle large address spaces with fewer memory references
B. To store page addresses in sequential order
C. To make it easier to find physical memory locations
D. To increase the speed of address translation
Correct Answer:
A
Chapter: 34
Q926:
What type of page table is used in systems with large address spaces (32-bit and above)?
A. Inverted Page Table
B. Standard Page Table
C. Direct Mapping Table
D. Single-level Page Table
Correct Answer:
A
Chapter: 34
Q927:
In a hierarchical paging system, what is the outer page table used for?
A. To index the inner page table
B. To store the actual data of the page
C. To map physical addresses to logical addresses
D. To store the page offsets
Correct Answer:
A
Chapter: 34
Q928:
What is the advantage of an inverted page table over a traditional page table?
A. It reduces memory usage by tracking physical memory
B. It stores more detailed information about processes
C. It improves the speed of address translation
D. It is easier to implement
Correct Answer:
A
Chapter: 34
Q929:
What does the size of a page table depend on in an inverted page table?
A. The number of frames in physical memory
B. The number of logical addresses
C. The number of processes in the system
D. The number of pages in the system
Correct Answer:
A
Chapter: 34
Q930:
In an inverted page table, where is the entry for a process’s page stored?
A. In the frame corresponding to the page in physical memory
B. In the page directory
C. In the process’s logical memory
D. In the page offset
Correct Answer:
A
Chapter: 34
Q931:
The DEC VAX system uses how many levels in its page table?
A. 3-level paging
B. 2-level paging
C. 4-level paging
D. 5-level paging
Correct Answer:
A
Chapter: 34
Q932:
What does a hashed page table use to handle larger address spaces?
A. Open hashing
B. Single-level paging
C. Hierarchical paging
D. Linked list indexing
Correct Answer:
A
Chapter: 34
Q933:
Which of the following is NOT a feature of a hashed page table?
A. Large address space handled efficiently
B. Smaller page tables
C. Faster access to page entries
D. Each entry contains the page’s physical address
Correct Answer:
D
Chapter: 34
Q934:
What kind of page table does a 64-bit UltraSPARC system support?
A. Inverted page table
B. Two-level paging
C. Three-level paging
D. Seven-level paging
Correct Answer:
D
Chapter: 34
Q935:
What happens when the operating system detects an illegal access to a page?
A. It traps the illegal access and handles it
B. The program is terminated immediately
C. The page is removed from memory
D. The data is corrupted
Correct Answer:
A
Chapter: 34
Q936:
Which of the following is TRUE about a multi-level paging system?
A. It helps manage large logical address spaces efficiently
B. It stores all page information in one single table
C. It does not require any division of logical addresses
D. It only supports small address spaces
Correct Answer:
A
Chapter: 34
Q937:
What is the purpose of the valid/invalid bit in a page table entry?
A. To indicate whether the page is part of the process's address space
B. To specify the read-write permissions of the page
C. To mark the page as reserved or unused
D. To store the physical address of the page
Correct Answer:
A
Chapter: 34
Q938:
A two-level paging system is often used to manage address spaces of size ________.
A. 32-bit or higher
B. 16-bit
C. 8-bit
D. 64-bit
Correct Answer:
A
Chapter: 34
Q939:
Which of the following is a disadvantage of using an inverted page table?
A. It requires more time to search for page entries
B. It increases the size of page tables significantly
C. It is less flexible than traditional page tables
D. It cannot handle large address spaces
Correct Answer:
A
Chapter: 34
Q940:
The term "hashed page table" refers to a page table that uses what method to find entries?
A. Hashing
B. Linear search
C. Direct mapping
D. Binary search
Correct Answer:
A