December2015 Cs Q26

0. A virtual memory has a page size of 1K words. There are eight pages and four blocks. The associative memory page table contains the following entries:

       PageBlock
        03
        21
        5 2
        70

Which of the following list of virtual addresses (in decimal) will not cause any page fault if referenced by the CPU ?

  • Option : C
  • Explanation : We have 8 pages in the memory and 4 blocks: 0-1023 (0) 1024-2047 (1) 2048-3071 (2) 3072-4095 (3) 4096-5119 (4) 5120-6143 (5) 6144-7167 (6) 7168-8191 (7) option (A) will string 1,3,4,6 so page fault will occur. option (B) will string 1,3,4,6 so page fault will occur. option (C) will string 0,2,5,7 so page fault will occur. option (D) will string 1,3,4,6 so page fault will occur. So, option (C) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *