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?

  1. 16 and 17
  2. 18 and 17
  3. 18 and 15
  4. 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

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