कम्प्युटर र सूचना प्रविधि (प्राविधिक)
कम्प्युटर र सूचना प्रविधि (प्राविधिक)
Computer & IT (Technical) · ५,०७६ प्रश्न
५,०७६ प्रश्न उपलब्ध। मोड छान्नुहोस्:
कम्प्युटर र IT: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
B+ trees are preferred over B-trees for range queries mainly because in a B+ tree:
सही उत्तर: ख) All keys are in leaf nodes, which are linked sequentially
Following the leaf-level links lets a range be scanned in order after locating its first key.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
An index in which an index entry appears for every search-key value (every record) in the data file is a:
सही उत्तर: क) Dense index
A sparse index has entries for only some records (e.g., one per block) and requires the file to be sorted on the search key.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In log-based recovery with immediate database modification, after a crash the system must:
सही उत्तर: घ) Redo committed transactions and undo uncommitted ones
Since uncommitted changes may already be on disk, they are undone using old values, and committed changes are redone using new values from the log.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In multiple-granularity locking, an 'IX' (intention-exclusive) lock on a table indicates that:
सही उत्तर: ग) The transaction intends to set exclusive locks on some rows within that table
Intention locks on higher levels signal finer-grained locks below, so conflicts can be detected without checking every row.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Optimistic concurrency control (validation-based protocol) is most suitable when:
सही उत्तर: ख) Conflicts between transactions are rare
Transactions run without locks and are checked only in a validation phase before commit, which is efficient when conflicts are uncommon.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
In timestamp-ordering concurrency control, each transaction is given a timestamp:
सही उत्तर: क) When it starts, and conflicting operations are executed in timestamp order
Older transactions (smaller timestamps) take precedence; an operation that would violate timestamp order causes the transaction to roll back.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Under strict two-phase locking (strict 2PL):
सही उत्तर: घ) Exclusive locks are held until the transaction commits or aborts
Holding exclusive (write) locks until commit/abort prevents others from reading uncommitted data, so schedules are recoverable and cascadeless.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
When the failure of one transaction forces several other transactions that read its uncommitted data to roll back as well, this is called:
सही उत्तर: ग) Cascading rollback
Cascading rollbacks are avoided by cascadeless schedules, in which transactions read only committed data (e.g., strict 2PL).
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Two transactions read the same balance and then both write updated values, so that the first update is overwritten by the second. This problem is called the:
सही उत्तर: ख) Lost update problem
In a lost update, one transaction's write is overwritten by another based on a stale read, so its effect disappears.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
After a transaction executes its final statement but before its changes are made permanent, it is in the:
सही उत्तर: क) Partially committed state
Transaction states are Active, Partially committed, Committed, Failed and Aborted; partially committed comes right after the last statement.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।