Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Part I: Select the one correct answer (10 points): 1. In a virtual memory scenar

ID: 3702874 • Letter: P

Question

Part I: Select the one correct answer (10 points): 1. In a virtual memory scenario, which is true: (a) When all frames are occupied, no new pages can be brought in until a program finishes (b) If the dirty bit is set to "Y", a page cannot be swapped out (c) The entire program must be loaded into memory at once (d) Only those pages which are needed for execution are loaded into frames (e) Each frame can have its own unique size 2. In a variable partition multiprogramming environment: (a) There is a pre-defined size which no program can exceed (b) When memory becomes fragmented, it is impossible to run any programs (c) When memory becomes fragmented, the operating system regains space via compaction (d) If there are three partitions of 2 KiB each, it is not possible to run a 5 K?B program (e) Only the necessary pages for execution are loaded into memory 3. Deadlocks: (a) Need to always be prevented by the operating system (b) Always occur when there is a cycle in a resource allocation graph (c) Are also referred to as page faults (d) Can be prevented between two programs if they each code a special entry and exit section before their critical update section (e) Never occur in multiprogramming environments 4. Which statement is true regarding parity bits: (a) If I want to be able to correct 2 errors, I would need to have 5 parity bits (b) If I want to be able to detect, but not correct 2 errors, I would need to have 1 parity bit

Explanation / Answer

1(d)
Explanation: That is the concept of VM, Each frame will be loaded on demand

2(c)
Explanation: Compaction occupies a big role in variable size parition as memory will be compacted to find spaces

3(b)
If there is a Cycle which means there is a DEADLOCK

4(b)


5(c)
Explanation : NAND = AND + NOT

Thanks, let me know if there is any concern. PLEASE RATE if helpful