Virtual Memory: A) Processes A) Oldest Page Is Chosen
Virtual Memory: A) Processes A) Oldest Page Is Chosen
Virtual Memory: A) Processes A) Oldest Page Is Chosen
9. A process is thrashing if
a) it is spending more time paging than
executing
b) it is spending less time paging than
executing
c) page fault occurs
d) swapping can not take place
10. Working set model for page
replacement is based on the assumption of
a) modularity
b) locality
c) globalization
d) random access
Demand Paging
1. Virtual memory allows:
a) execution of a process that may not be
completely in memory
b) a program to be larger than the
physical memory
c) a program to be larger than the secondary
storage
d) execution of a process without being in
physical memory
2) The instruction being executed, must be
in :
a) physical memory
b) logical memory
c) None of these
3) Error handler codes, to
handle unusual errors are :
a) almost never executed
b) executed very often
c) executed periodically
d) None of these
.
4) The ability to execute a program that is
only partially in memory has benefits like :
(choose all that apply)
a) the amount of physical memory cannot
put a constraint on the program
b) programs for an extremely large virtual
space can be created
c) CPU utilization decreases
d) Throughput increases
e) response time is not affected
f) turnaround time increases
g) less I/O will be needed to load or swap
each user program in memory
h) All of these
Answer: a, b, d, e, g
5) In virtual memory. the programmer
__________ of overlays.
a) has to take care
b) does not have to take care
c) None of these
Answer: b
6) Virtual memory is normally implemented
by ________.
a) demand paging
b) buses
c) virtualization
d) All of these
Answer: a
7) Segment replacement algorithms are
more complex than page replacement
algorithms because :
a) Segments are better than pages
b) Pages are better than segments
c) Segments have variable sizes
d) Segments have fixed sizes
Answer: c
8) A swapper manipulates ___________,
whereas the pager is concerned with
individual _______ of a process.
a) the entire process, parts
b) all the pages of a process, segments
c) the entire process, pages
d) None of these
Answer: c
9) Using a pager :
a) increases the swap time
b) decreases the swap time
c) decreases the amount of
physical memory needed
d) increases the amount of
physical memory needed
Answer: b and c
10) The valid invalid bit, in this case,
when valid indicates :
a) the page is legal
b) the page is illegal
c) the page is in memory
d) the page is not in memory
Answer: a and c
.11) A page fault occurs when :
a) a page gives inconsistent data
b) a page cannot be accesses due to its
absence from memory
c) a page is invisible
d) All of these
Answer: b
12) When a page fault occurs, the state of
the interrupted process is :
a) disrupted
b) invalid
c) saved
d) None of these
Answer: c
13) When a process begins execution with
no pages in memory :
a) process execution becomes impossible
b) a page fault occurs for every page
brought into memory
c) process causes system crash
d) None of these
Answer: b
14) If the memory access time is denoted by
ma and p is the probability of a page fault
a) Counters
b) RAM
c) Stack
d) Registers
Answer: a and c
b) page size
c) physical memory size
d) number of processes in memory
Answer: a
8) The reason for using the LFU page
replacement algorithm is :
a) an actively used page should have a
large reference count
b) a less used page has more chances to be
used again
c) it is extremely efficient and optimal
d) All of the mentioned
Answer: a
9) The reason for using the MFU page
replacement algorithm is :
a) an actively used page should have a
large reference count
b) a less used page has more chances to be
used again
c) it is extremely efficient and optimal
d) All of the mentioned
Answer: b
10) The implementation of the LFU and
the MFU algorithm is very uncommon
because :
a) they are too complicated
b) they are optimal
c) they are expensive
d) All of the mentioned
Answer: c