अपरेटिङ सिस्टम – Operating System MCQ
अपरेटिङ सिस्टम – कम्प्युटर र IT
Operating System · Computer & IT (Technical) · ४०४ प्रश्न
४०४ प्रश्न उपलब्ध। मोड छान्नुहोस्:
अपरेटिङ सिस्टम: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
Addresses generated by the CPU while a program is executing are called:
सही उत्तर: क) Logical (virtual) addresses
The CPU generates logical addresses, which the MMU translates into physical addresses in main memory.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In the Banker's algorithm, a process has Max = (7, 5, 3) and Allocation = (0, 1, 0) for resource types A, B and C. Its Need vector is:
सही उत्तर: ख) (7, 4, 3)
Need = Max - Allocation = (7 - 0, 5 - 1, 3 - 0) = (7, 4, 3).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Ignoring the deadlock problem altogether and assuming it never occurs, as most general-purpose operating systems do, is known as the:
सही उत्तर: घ) Ostrich algorithm
The ostrich approach accepts rare deadlocks because preventing or avoiding them would cost more than occasionally restarting.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Three processes share R identical units of a resource, and each process may need at most 4 units. What is the minimum value of R that guarantees deadlock cannot occur?
सही उत्तर: ग) 10
Deadlock-free condition: R ≥ n(m - 1) + 1 = 3 × (4 - 1) + 1 = 10.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The 'hold and wait' condition for deadlock can be prevented by:
सही उत्तर: क) Requiring each process to request all its resources before it starts
If a process must obtain everything it needs at once before starting, it never holds some resources while waiting for others.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
The atomic hardware instruction that reads a memory word and sets it to true in one indivisible step, used to build locks, is:
सही उत्तर: क) Test-and-Set
Test-and-Set returns the old value and sets the word to true atomically, so only one process can acquire the lock.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In the classic readers-writers problem, which kind of access to the shared data is allowed at the same time?
सही उत्तर: घ) Several readers reading together
Reading does not change data, so many readers may read at once, but a writer needs exclusive access.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In the semaphore solution of the bounded-buffer (producer-consumer) problem with n buffer slots, the semaphore 'empty' is initialised to:
सही उत्तर: ग) n
'empty' counts free slots, so it starts at n; 'full' starts at 0 and 'mutex' at 1.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A lock in which a waiting process keeps looping and repeatedly checks whether the lock has become free is called a:
सही उत्तर: ग) Spinlock
A spinlock uses busy waiting; it is useful on multiprocessors when locks are held for very short periods.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A high-level synchronization construct in which only one process can be active inside at a time, and which uses condition variables for waiting, is a:
सही उत्तर: घ) Monitor
A monitor encapsulates shared data and procedures and guarantees mutual exclusion automatically; condition variables (wait/signal) handle waiting.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।