डाटाबेस र DBMS – Database & DBMS MCQ
डाटाबेस र DBMS – कम्प्युटर र IT
Database & DBMS · Computer & IT (Technical) · ५६३ प्रश्न
५६३ प्रश्न उपलब्ध। मोड छान्नुहोस्:
डाटाबेस र DBMS: प्रश्न र उत्तर
सही लागेको विकल्पमा थिच्नुहोस्। सही भए हरियो, गलत भए रातो देखिन्छ; ३ सेकेन्डपछि सही उत्तर र व्याख्या देखिन्छ।
सही: ० / ०
-
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.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Deliberately adding redundancy to normalized tables to speed up read-heavy queries is called:
सही उत्तर: घ) Denormalization
Denormalization trades extra storage and update effort for fewer joins, and is common in reporting and data warehouses.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
Fifth Normal Form (5NF), also called Project-Join Normal Form, deals with:
सही उत्तर: ग) Join dependencies
5NF requires that every join dependency is implied by the candidate keys, so the relation cannot be decomposed further without loss.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
-
A decomposition of R into R1 and R2 is lossless-join if:
सही उत्तर: ख) The common attributes R1 ∩ R2 form a super key of R1 or of R2
If R1 ∩ R2 → R1 or R1 ∩ R2 → R2, joining R1 and R2 reproduces exactly the original relation without spurious tuples.
💬 टिप्पणी / गल्ती रिपोर्ट (०)
यी अभ्यास प्रश्न हुन्, आधिकारिक प्रश्न होइनन्। पाठ्यक्रम, विज्ञापन र नतिजाका लागि सम्बन्धित निकायको आधिकारिक वेबसाइट हेर्नुहोस्। उत्तरमा गल्ती भेटे प्रश्नमुनिको "टिप्पणी / गल्ती रिपोर्ट" मा लेख्नुहोस्।
नमस्ते! पाठ्यक्रम, सामान्य ज्ञान, भाषा परीक्षा वा कुनै प्रश्नको उत्तर बुझ्न सोध्नुहोस्।
AI ले गल्ती गर्न सक्छ। महत्वपूर्ण कुरा आधिकारिक स्रोतमा जाँच्नुहोस्।