GATE 2008 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2008

185 questions

MCQ 1851-mark 52 · 2-mark 133

Questions 146–150 of 185

Q146Memory Management2 marksMCQ−0.67 if wrong
Match the following flag bits used in the context of virtual memory management on the left side with the different purposes on the right side of the table below.
 Name of the bit  Purpose  I.  Dirty  a.  Page initialization  II.  R/W  b.  Write-back policy  III.  Reference  c.  Page protection  IV.  Valid  d.  Page replacement policy \begin{array}{l|ll} \text { Name of the bit } & \text { Purpose } \\ \hline \text { I. } \text { Dirty } & \text { a. } \text { Page initialization } \\ \text { II. } \text { R/W } & \text { b. } \text { Write-back policy } \\ \text { III. } \text { Reference } & \text { c. } \text { Page protection } \\ \text { IV. } \text { Valid } & \text { d. } \text { Page replacement policy } \end{array}

Q147Memory Management2 marksMCQ−0.67 if wrong
Assume that a main memory with only 4 pages, each of 16 bytes, is initially empty. The CPU generates the following sequence of virtual addresses and uses the Least Recently Used (LRU) page replacement policy.
0, 4, 8, 20, 24, 36, 44, 12, 68, 72, 80, 84, 28, 32, 88, 92
How many page faults does this sequence cause? What are the page numbers of the pages present in the main memory at the end of the sequence?

Q148Memory Management1 markMCQ−0.33 if wrong
A paging scheme uses a Translation Look-aside Buffer (TLB). A TLB-access takes 10 ns and the main memory access takes 50 ns. What is the effective access time(in ns) if the TLB hit ratio is 90% and there is no page-fault?

Q149Memory Management2 marksMCQ−0.67 if wrong
A processor uses 36 bit physical addresses and 32 bit virtual addresses, with a page frame size of 4 Kbytes. Each page table entry is of size 4 bytes. A three level page table is used for virtual to physical address translation, where the virtual address is used as follows

Bits 30-31 are used to index into the first level page table
Bits 21-29 are used to index into the second level page table
Bits 12-20 are used to index into the third level page table, and
Bits 0-11 are used as offset within the page

The number of bits required for addressing the next level page table (or page frame) in the page table entry of the first, second and third level page tables are respectively

Q150File Systems1 markMCQ−0.33 if wrong
The data blocks of a very large file in the Unix file system are allocated using