Virtual Memory
Virtual Memory
1) allows the execution of processes that may not be completely in the memory
2) abstracts main memory as viewed by the user from physical memory.
3) allows processes to easily share files.
4) All the above Answer: 4
2) ________ holds those pages that are not present in main memory.
Answer: Secondary memory
3) A common approach for handling address spaces larger than 32 bits is to use a
hashed page table. True / False?Answer: True
True /False ?
Answer: True
5) Access to a page marked invalid causes a Page- fault trap. True/ False?
Answer: True
7) The minimum number of page frames that must be allocated to a running process in a
virtual memory environment is determined by
1) the instruction set architecture
2) page size
3) physical memory size
4) number of processes in memory
Answer: 4
4) None
Answer: 3
10) __________ is a policy that a page is not read into memory until it is requested, that is, until
there is a page fault for that page.
1) Demand paging
2) Paging
3) Thrashing
4)
Answer: 1
11) The problem of many page faults occurring in a short time is called _________.
1) Demand paging
2) Paging
3) Page Thrashing
4) None
Answer: 3
By def
7, 0, 1, 2, 0 ,3 ,0 , 4, 2, 3, 0, 3, 2, 1 ,2, 0, 1, 7, 0, 1
7, 0, 1
1, 0, 7
0, 1 , 7
0, 7, 1
Answer: 1
13) In Optimal Page replacement ( Page replacement algorithm) for the given
sequence
7, 0, 1, 2, 0 ,3 ,0 , 4, 2, 3, 0, 3, 2, 1 ,2, 0, 1, 7, 0, 1
There are only 3 pages what will be the ending sequence in the given three pages.
1) 7, 0, 1
2) 1, 0 , 7
3) 0, 1, 7
4) 0, 7, 1
Answer: 1
14) In Least recently used ( Page replacement algorithm) for the given sequence
7, 0, 1, 2, 0 ,3 ,0 , 4, 2, 3, 0, 3, 2, 1 ,2, 0, 1, 7, 0, 1
There are only 3 pages what will be the ending sequence in the given three pages.
1) 7, 0, 1
2) 1, 0, 7
3) 0, 1 , 7
4) 0, 7, 1
Answer: 2
7, 0, 1, 2, 0, 2, 0, 4, 2, 3, 0, 2, 3, 1, 2, 7, 1, 0, 0, 1
There are only 3 pages, what will be the ending sequence in the given 3 pages?
7, 0, 1
1, 0, 7
0, 1 , 7
0, 7, 1
Answer: 1
16) In Optimal Page replacement ( page replacement algorithm) for the given
sequence
7, 0, 1, 2, 0, 2, 0, 4, 2, 3, 0, 2, 3, 1, 2, 7, 1, 0, 0, 1
There are only 3 pages, what will be the ending sequence in the given 3 pages?
1) 7, 0, 1
2) 1, 0, 7
3) 0, 1 , 7
4) 0, 7, 1
Answer: 1
17) In Least Recently Used( page replacement algorithm) for the given sequence
7, 0, 1, 2, 0, 2, 0, 4, 2, 3, 0, 2, 3, 1, 2, 7, 1, 0, 0, 1
There are only 3 pages, what will be the ending sequence in the given 3 pages?
7, 0, 1
1, 0, 7
0, 1 , 7
0, 7, 1
Answer: 4
Answer: 4
2) Accounting
3) Compilation
4) I/O operations
Answer: 3
20) To increase CPU utilization and stop thrashing we must _______ the degree of
multiprogramming.
1) increase
2) decrease
3) optimize
4) None
Answer: 3
21) The page replacement algorithm which uses the recent history as an approximation of the near
future , then it replaces the page that has not been used for the longest period of time. This
algorithm is known as ___________.
1) FCFS
3) LRU Algorithm
4) None
Answer: 3
22) The page replacement algorithm which replaces the page that will not be used for the longest
period of time. This algorithm is known as __________.
1) FCFS
3) LRU Algorithm
4) None
Answer: 2
23) The page replacement algorithm which replaces the oldest page in the table. This page
replacement algorithm is known as _____________.
1) FCFS
3) LRU Algorithm
4) None
Answer: 1
Answer: True
25) Special relocation and linking algorithms are needed to construct overlays. True/False
Answer: True
26)Swapping of two processes can be done using a disk as a backing store. True/False
Answer: True
27) One solution to the problem of external fragmentation is Compaction. True/ False?
Answer: True
28) The First fit, Worst fit, Best fit algorithms suffer from the problem of external fragmentation?
True/ False
Answer: True
29) The percentage of times that a particular page number is found in the TLB ( Transfer Look-
aside Buffer) is called the Hit ratio. True/ False?
Answer: True
1) External fragmentation
2) Internal Fragmentation
3) Compaction
4) None
Answer: 2
32) In paging what is added to the logical address to generate physical address
1) stub
2) offset
3) frame number
4) None
Answer:2
1) page table
2) frame table
3) Address table
4) none
Answer: 1
1) page table
2) frame table
3) Address table
4) none
Answer: 2
1) paging
2) segmentation
3) demand paging
4) None
Answer: 3
37) A swapper never swaps a page into memory unless that page will be needed.
1) lazy swapper
2) paging
3) context switching
4) None
Answer:1
38) Allowing a part of the virtual address space to be logically associated with a file is known as
___________
1) Address mapping
2) Logical mapping
3) Memory mapping
4) None
Answer: 3
1) enhancement bit
2) update bit
3) dirty bit
4) address bit
Answer:3
41) __________ allows a process to select a replacement frame from the set of all frames, even
if that frame is currently allocated to some other process; one process can take a frame from
another.
1) Global Replacement
2) Local Replacement
3) Swapping
4) None
Answer:1
42) ________________ requires that each process select from only its own set of allocated
frames.
1) Global Replacement
2) Local Replacement
3) Swapping
4) None
Answer:2
1) page fault
2) thrashing
3) paging
4) swapping
Answer: 2
3) degree of multiprogramming
4) None
Answer:3
1) swapping
2) priority replacement
4) None
Answer:2
4) None
Answer: 2
47) Mechanism that brings a page into memory when needed, less i/o needed, less memory
needed, faster response, more users is called____
1) Segmentation
2) Fragmentation
3) Demand Paging
4) Page replacement
Answer: 3
48) As the number of frames allocated to a process increases, the page fault rate ____
1) Increases
2) No change
3) Decreases
4) None
Answer: 3
1) Compaction
2) Internal fragmentation
3) External fragmentation
4) Relocation
Answer: 3
1) Swapping
2) Buffering
3) Paging
4) Scheduling
Answer: 3
1) Disk
2) Files
3) Main memory
4) Tap
Answer: 3
1) Multiprogramming
2) Relocation
3) Virtual memory
4) Multitasking.
Answer: 3
53) ______ is the difference between the size of memory allocated to a process and the actual
size of the process.
1) External fragmentation
2) Internal fragmentation
3) Compaction
4) Contiguity
Answer: 2
54) A page and a page frame are related by the fact that they are ________
1) in main memory
3) in backing store
4) contiguous
Answer: 2
55) “Replace the page that will not be used for longest period of time “ is followed by _____
page replacement algorithm.
1) FIFO
2) Optimal page
3) LRU
4) None
Answer: 2
1) Segmentation
2) Demand paging
3) Swapping
4) Al the above
Answer: 2
Answer: 3
58) If a process is spending more time paging than executing it is called _____
1) Starvation
2) Paging
3) Thrashing
4) Blocking
Answer: 1
59) A virtual memory system generates a logical address that includes a 10 bit offset. The size
of the page is _____.
1) 1k
2) 10k
3) 256 bytes
4) 4k
Answer: 1
1) 10
2) 7
3) 8
4) 9
Ans: - 4
63) Replace the page that will not be used for the longest period of time. This principle is adopted
by ____________.
1) Segmentation
2) Swapping
3) Demand Paging
4) None of the above
Ans: - 3
65) _______ is a high speed cache used to hold recently referenced page table entries a part of
paged virtual memory
1) segmentation and page tables are stored in the cache and do not add any substantial
overhead
2) slow down the computer system considerable
3) segmentation and page tables are stored in the RAM
4) none of the above
Ans: - 3
1) 50%
2) 40%
3) 25%
4) 0%
Answer: 4
74) Which of the following could be considered an advantage of Virtual Memory Management?
1) Job size is no longer restricted to the size of main memory
2) Thrashing may occur when a program requires two or more pages
3) Only a part of each page needs to be loaded into memory
4) All of these
Answer:1
76) In the fixed-partition memory management scheme, a job might not be able to run because no
free partition is large enough for it, even though the total unused space in all partitions was more
than what was needed for the job. This is an example of:
1) Dynamic partitions
2) Re-locatable dynamic partitions
3) Internal fragmentation
4) External fragmentation
Answer:4