Operating Systems · Question 12 · Hard
Operating Systems question 12
A paged system has a page size of 4 KB, a logical address space of 64 pages and a physical memory of 32 frames. How many bits are in the logical and physical addresses, respectively?
- 16 and 17
- 18 and 17
- 18 and 15
- 17 and 18
Answer and explanation
Answer: B. 18 and 17
Explanation: The offset needs 12 bits (4 KB = 2^12). The logical address is 6 page bits (64 = 2^6) + 12 = 18 bits, and the physical address is 5 frame bits (32 = 2^5) + 12 = 17 bits.
Previous: In which memory-management scheme does internal fragmentation occur? · Next: A system has 3 page frames, all initially empty. For the page reference string…
Practise operating systems
Try a fresh set of operating systems questions with an explanation after every answer, free and without signing up: Operating Systems practice. Or sit a full placement mock test.
More operating systems questions
- A counting semaphore S is initialised to 8. Then 11 wait (P) operations and 5…
- How many times is "Hi" printed when this C program runs? Assume every fork()…
- In which memory-management scheme does internal fragmentation occur?
- A system has 3 page frames, all initially empty. For the page reference string…
- A TLB lookup takes 20 ns and a main-memory access takes 100 ns. On a TLB miss…
- Two processes enforce mutual exclusion using only a shared variable turn…
- The Banker's algorithm is used for which deadlock-handling strategy?
- Which of the following is NOT shared between threads of the same process?
- Which page-replacement algorithm gives the lowest possible number of page…
- Belady's anomaly, where giving a process more page frames can increase its…
More technical & programming practice
Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python
LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge