Operating systems exams - multiple choice questions (MCQ) and answers



Operating Systems MCQ questions and answers – Set 18

1. A memory management unit (MMU) is responsible for:

(a) Translating a process’ memory addresses to physical addresses
(b) Allocating kernel memory
(c) Allocating system memory to processes
(d) All of the above

Click here to view answer and explanation


2. A system uses 32-bit logical addresses, a 16K byte (214) page size, and 36-bit physical addresses (64 GB memory). What is the size of the page table?
(a) 218 page table entries
(b) 222 page table entries
(c) 214 page table entries
(d) 24 page table entries

Click here to view answer and explanation


3. During a context switch, the operating system ______

(a) Modifies some page table entries for the new process to reflect its memory map
(b) Switches a page table’s register to select a different page table
(c) Modifies the access permissions within the page table for the new process
(d) Leaves the page table untouched since it is a system-wide resource

Click here to view answer and explanation


4. Which one of the following is an example of a hardware solution to the critical section problem?

(a) Banker’s algorithm
(b) Compare and Shop
(c) Test and Set
(d) Peterson’s algorithm

Click here to view answer and explanation


5. When a process is created using the classical fork() system call, which of the following is NOT inherited by the child process?

(a) Process address space
(b) Process ID
(c) Open files
(d) Signal handlers

Click here to view answer and explanation



*********