Memory Management questions — page 2 of 2

Q10

GATE CS 2018 CSMemory ManagementMCQ1 mark−1/3 if wrong
Consider a process executing on an operating system that uses demand paging. The average time for a memory access in the system is MM units if the corresponding memory page is available in memory, and DD units if the memory access causes a page fault. It has been experimentally measured that the average time taken for a memory access in the process is XX units.

Which one of the following is the correct expression for the page fault rate experienced by the process?
Show answer without attempting

Answer: B

Q40

GATE CS 2017 CS-1Memory ManagementMCQ2 marks−2/3 if wrong
Recall that Belady's anomaly is that the page-fault rate may increase as the number of allocated frames increases. Now, consider the following statements:

S1: Random page replacement algorithm (where a page chosen at random is replaced) suffers from Belady's anomaly
S2: LRU page replacement algorithm suffers from Belady's anomaly

Which of the following is CORRECT?
Show answer without attempting

Answer: B

Q47

GATE CS 2016 CS-1Memory ManagementNAT2 marks
Consider a computer system with 40-bit virtual addressing and page size of sixteen kilobytes. If the computer system has a one-level page table per process and each page table entry requires 48 bits, then the size of the per-process page table is ________ megabytes.
Show answer without attempting

Answer: 384.0

Q49

GATE CS 2016 CS-1Memory ManagementNAT2 marks
Consider a computer system with ten physical page frames. The system is provided with an access sequence (a1,a2,…,a20,a1,a2,…,a20)(a_1, a_2, \dots, a_{20}, a_1, a_2, \dots, a_{20}), where each aia_i is a distinct virtual page number. The difference in the number of page faults between the last-in-first-out page replacement policy and the optimal page replacement policy is ________.
Show answer without attempting

Answer: 1.0

Q20

GATE CS 2016 CS-2Memory ManagementMCQ1 mark−1/3 if wrong
In which one of the following page replacement algorithms it is possible for the page fault rate to increase even when the number of allocated frames increases?
Show answer without attempting

Answer: D

Q29

GATE CS 2015 CS-1Memory ManagementNAT1 mark
Consider a system with byte-addressable memory, 32-bit logical addresses, 4 kilobyte page size and page table entries of 4 bytes each. The size of the page table in the system in megabytes is ________.
Show answer without attempting

Answer: 4

Q57

GATE CS 2015 CS-1Memory ManagementMCQ2 marks−2/3 if wrong
Consider a main memory with five page frames and the following sequence of page references: 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?
Show answer without attempting

Answer: A

Q19

GATE CS 2015 CS-2Memory ManagementNAT1 mark
A computer system implements a 40-bit virtual address, page size of 8 kilobytes, and a 128-entry translation look-aside buffer (TLB) organized into 32 sets each having four ways. Assume that the TLB tag does not store any process id. The minimum length of the TLB tag in bits is __________.
Show answer without attempting

Answer: 22

Q41

GATE CS 2015 CS-2Memory ManagementMCQ2 marks−2/3 if wrong
Consider six memory partitions of sizes 200 KB, 400 KB, 600 KB, 500 KB, 300 KB and 250 KB, where KB refers to kilobyte. These partitions need to be allotted to four processes of sizes 357 KB, 210 KB, 468 KB and 491 KB in that order. If the best fit algorithm is used, which partitions are NOT allotted to any process?
Show answer without attempting

Answer: A

Q43

GATE CS 2015 CS-2Memory ManagementNAT2 marks
A computer system implements 8 kilobyte pages and a 32-bit physical address space. Each page table entry contains a valid bit, a dirty bit, three permission bits, and the translation. If the maximum size of the page table of a process is 24 megabytes, the length of the virtual address supported by the system is _______________ bits.
Show answer without attempting

Answer: 36

Q33

GATE CS 2014 CS-2Memory ManagementMCQ2 marks−2/3 if wrong
A computer has twenty physical page frames which contain pages numbered 101 through 120. Now a program accesses the pages numbered 1, 2, …, 100 in that order, and repeats the access sequence THRICE. Which one of the following page replacement policies experiences the same number of page faults as the optimal page replacement policy for this program?
Show answer without attempting

Answer: D

Q20

GATE CS 2014 CS-3Memory ManagementNAT1 mark
A system uses 3 page frames for storing process pages in main memory. It uses the Least Recently Used (LRU) page replacement policy. Assume that all the page frames are initially empty. What is the total number of page faults that will occur while processing the page reference string given below?

4,7,6,1,7,6,1,2,7,24, 7, 6, 1, 7, 6, 1, 2, 7, 2
Show answer without attempting

Answer: 6

Q33

GATE CS 2014 CS-3Memory ManagementNAT2 marks
Consider a paging hardware with a TLB. Assume that the entire page table and all the pages are in the physical memory. It takes 10 milliseconds to search the TLB and 80 milliseconds to access the physical memory. If the TLB hit ratio is 0.6, the effective memory access time (in milliseconds) is _________.
Show answer without attempting

Answer: 122

Q33

GATE CS 2014 CS-1Memory ManagementNAT2 marks
Assume that there are 3 page frames which are initially empty. If the page reference string is 1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6, the number of page faults using the optimal replacement policy is__________.
Show answer without attempting

Answer: 7

Q53

GATE CS 2013 CSMemory ManagementMCQ2 marks
What is the minimum number of page colours needed to guarantee that no two synonyms map to different sets in the processor cache of this computer?
Show answer without attempting

Answer: C

Q42

GATE CS 2012 CSMemory ManagementMCQ2 marks−2/3 if wrong
Consider the virtual page reference string
1, 2, 3, 2, 4, 1, 3, 2, 4, 1
on a demand paged virtual memory system running on a computer system that has main memory size of 3 page frames which are initially empty. Let LRU, FIFO and OPTIMAL denote the number of page faults under the corresponding page replacement policy. Then
Show answer without attempting

Answer: B

0/170 correct0 marks

Related topics in Operating Systems