Virtual Memory
Virtual Memory
Virtual Memory
b. I/O Devices
c. Resources
d. I/O Modules
a. Segmentation
b. Swapping
c. Demand Paging
Answer: (c).Demand Paging
3. Virtual memory is __________.
4. _________ is a high speed cache used to hold recently referenced page table entries a part of paged virtual
memory .
b. Thrashing
c. Context Switch
Answer: (b).Thrashing
a. Virtual Memory
b. Interrupts
c. Main memory
d. Cache memory
Answer: (d).Cache memory
a. segmentation and page tables are stored in the cache and do not add any substantial overhead
a. Segmentation
b. Fragmentation
c. Demand Paging
d. Page Replacement
Answer: (c).Demand Paging
b. allows the virtual address space to be a multiple of the physical memory size
b. is a reference to a page
which is in another program
14. A program is executing in a pure demand paging system with 100 records per page with 1 free main memory
frame. The address sequence that is generated by tracing this program is recorded as follows,
0100, 0200, 0430, 0499, 0510, 0530, 0560, 0120, 0220, 0240, 0260, 0320, 0370
What are the number of page faults?
a. 8
b. 11
c. 7
d. 12
Answer: (c).7
15. If hardware does not support _________ then a multi - user and multi - processing operating system cannot be
implemented.
a. At least two modes of CPU execution
b. Demand paging
d. Address translation
Answer: (b).Demand paging
16. Consider a virtual memory system that uses First In First Out (FIFO) page replacement policy and it allocates a
fixed number of frames to a process. Consider the following two statements,
1: Sometimes the page fault rate is increased if the number of page frames allocated is increased.
2: Some programs do not exhibit Locality of reference.
17. Why do we translate a virtual address to physical address where a multilevel page table is preferred in
comparison to a single level page table?
b. It helps to reduce the memory access time to read or write a memory location
d. It helps to reduce the size of a page table needed to implement the virtual address space of a process
Answer: (d).It helps to reduce the size of a page table needed to implement the virtual address space of a process
20. Which of the following is not a key piece of information, stored in single page table entry, assuming pure paging
and virtual memory
a. Frame number
Answer: (c).A reference for the disk block that stores the page
21. A set of techniques that allow to execute a program which is not entirely in memory is called
a. demand paging
b. virtual memory
c. auxiliary memory
d. secondary memory
Answer: (b).virtual memory
a. Segmentation
b. Paging
24. A process that execute only in main memory is referred to as ……………… and that allocated in disk is referred to
a …………….
a. virtual memory, true memory
25. Thrashing
a. reenterable
b. non reusable
c. virtual memory
d. cache memory
Answer: (d).cache memory
29. Which of the following is not true about the memory management?
a. is a method of memory allocation by which the program is subdivided into equal portions, or pages and core is
subdivided into equal portions or blocks.
b. consists of those addresses that may be generated by a processor during execution of a computation.
Answer: (a).is a method of memory allocation by which the program is subdivided into equal portions, or pages and
core is subdivided into equal portions or blocks.
.
a. is a method of memory allocation by which the program is subdivided into equal portions, or pages and core is
subdivided into equal portions or blocks.
b. consists of those addresses that may be generated by a processor during execution of a computation.
Answer: (b).consists of those addresses that may be generated by a processor during execution of a computation.
a. Operating System
b. Hardware
c. Software
d. All of them
Answer: (b).Hardware
34. Page-Table length register (PTLR) indicates size of
a. Page Table
b. Paging File
c. Main Memory
d. Virtual Memory
Answer: (a).Page Table
a. Demand Memory
b. Demand Paging
c. Page Fault
d. Page Segmentation
Answer: (b).Demand Paging
36. Which of the following is not the approach to Handling Deadlocks
a. Deadlock Prevention
b. Deadlock Avoidance
d. Virtual Memory
Answer: (d).Virtual Memory
37. Which scheduler selects which processes should be brought into the ready queue?
a. Real-term
b. Long-term
c. Mid-term
d. Short-term
Answer: (b).Long-term
38. Dived logical memory into blocks with the same size as frames are called
a. Pages
b. Frames
c. Page Table
d. Segmentation
Answer: (a).Pages
39. Which memory allocation policy allocate the largest hole to the process?
a. Best-Fit
b. Worst-Fit
c. First-Fit
d. None of them
Answer: (b).Worst-Fit
40. When there is enough memory to fit a process in memory, but the space is not contiguous we need
a. Internal Fragmentation
b. Virtual Fragmentation
c. External Fragmentation
d. None of them
Answer: (c).External Fragmentation
41. Piece of code that only one thread can execute at a time is called
a. Mutual Exclusion
b. Critical Section
c. Synchronization
d. All of them
Answer: (b).Critical Section
42. When a thread waits indefinitely for some resource, but other threads are actually using it is called
a. Starvation
b. Demand Paging
c. Segmentation
d. None of them
Answer: (a).Starvation