DBMS — MCQ Practice

Hindi aur English dono mein practice karo — click karo answer check karne ke liye

📚 127 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
127 questions
61
EN + हिं
GB A view of database that appears to an application program is known as:
IN किसी एप्लिकेशन प्रोग्राम में दिखाई देने वाले डेटाबेस का दृश्य कहलाता है:
A
Schema योजना
B
Subschema उपयोजना
C
virtual table आभासी तालिका
D
none of the above इनमे से कोई भी नहीं
✅ Correct Answer:
62
EN + हिं
GB Which of the following is not a relational algebraic operation that is not form the set theory?
IN निम्नलिखित में से कौन सा संबंधपरक बीजगणितीय ऑपरेशन नहीं है जो सेट सिद्धांत का निर्माण नहीं करता है?
A
UNION मिलन
B
INTERSECTION चौराहा
C
CARTESIAN PRODUCT कार्टेशियन उत्पाद
D
SELECT चुनना
✅ Correct Answer:
63
EN + हिं
GB Which of the following consists of a row of column headings, together with zero or more rows of data values?
IN निम्नलिखित में से किसमें डेटा मानों की शून्य या अधिक पंक्तियों के साथ कॉलम शीर्षकों की एक पंक्ति शामिल है?
A
COMPOSITE INDEX संयुक्त सूचकांक
B
UNIQUE INDEX अद्वितीय सूचकांक
C
TABLE मेज़
D
None of the above इनमे से कोई भी नहीं
✅ Correct Answer:
64
EN + हिं
GB Which one of the following cannot be taken as a primary key ?
IN निम्नलिखित में से किसे प्राथमिक कुंजी के रूप में नहीं लिया जा सकता है?
A
Id पहचान
B
Register number संख्या रजिस्टर
C
Dept_id विभाग_आईडी
D
Street गली
✅ Correct Answer:
65
EN + हिं
GB What does a COMMIT statement do to a CURSOR?
IN एक कमिट स्टेटमेंट कर्सर पर क्या करता है?
A
Open the Cursor कर्सर खोलें
B
Fetch the Cursor कर्सर लायें
C
Close the Cursor कर्सर बंद करें
D
None of the above इनमे से कोई भी नहीं
✅ Correct Answer:
66
EN + हिं
GB Which of the following command is used to delete a trigger?
IN ट्रिगर को हटाने के लिए निम्नलिखित में से किस कमांड का उपयोग किया जाता है?
A
DELETE TRIGGER ट्रिगर हटाएँ
B
REPLACE TRIGGER ट्रिगर बदलें
C
DROP TRIGGER ड्रॉप ट्रिगर
D
None of the above इनमे से कोई भी नहीं
✅ Correct Answer:
67
EN + हिं
GB Concurrency control is important for which of the following reasons?
IN निम्नलिखित में से किस कारण से समवर्ती नियंत्रण महत्वपूर्ण है?
A
To ensure data integrity when updates occur to the database in a multiuser environment बहुउपयोगकर्ता वातावरण में डेटाबेस में अद्यतन होने पर डेटा अखंडता सुनिश्चित करने के लिए
B
To ensure data integrity when updates occur to the database in a single-user environment एकल-उपयोगकर्ता वातावरण में डेटाबेस में अद्यतन होने पर डेटा अखंडता सुनिश्चित करने के लिए
C
To ensure data integrity while reading data occurs to the database in a multiuser environment बहुउपयोगकर्ता वातावरण में डेटाबेस में डेटा पढ़ते समय डेटा अखंडता सुनिश्चित करना
D
To ensure data integrity while reading data occurs to the database in a singleuser environment एकल उपयोगकर्ता वातावरण में डेटाबेस में डेटा पढ़ते समय डेटा अखंडता सुनिश्चित करना
✅ Correct Answer:
68
EN + हिं
GB A deadlock exists in the system if and only if the wait for graph:
IN सिस्टम में गतिरोध तभी मौजूद होता है जब ग्राफ़ के लिए प्रतीक्षा की जाती है:
A
has a cycle in it इसमें एक चक्र है
B
has a path from first node to last node पहले नोड से अंतिम नोड तक एक पथ है
C
is a tree एक पेड़ है
D
none of the above इनमे से कोई भी नहीं
✅ Correct Answer:
69
EN + हिं
GB In two-phase locking protocol.
IN दो-चरण लॉकिंग प्रोटोकॉल में।
A
All unlocking operations precede the first lock operation. सभी अनलॉकिंग ऑपरेशन पहले लॉक ऑपरेशन से पहले होते हैं।
B
All locking operations precede the first unlock operation. सभी लॉकिंग ऑपरेशन पहले अनलॉक ऑपरेशन से पहले होते हैं।
C
Locking and unlocking takes place simultaneously. लॉकिंग और अनलॉकिंग एक साथ होती है।
D
None of the above. इनमे से कोई भी नहीं।
✅ Correct Answer:
70
EN + हिं
GB BoyeCodd Normal Form (BCNF) is needed when
IN BoyeCodd नॉर्मल फॉर्म (BCNF) की जरूरत कब पड़ती है
A
two non-key attributes are dependent दो गैर-प्रमुख विशेषताएँ निर्भर हैं
B
there is more then one possible composite key एक से अधिक संभावित समग्र कुंजी हैं
C
there are two or more possible composite overlapping keys and one attributeof a composite key is dependent on an attribute of another composite key दो या दो से अधिक संभावित मिश्रित ओवरलैपिंग कुंजियाँ हैं और एक मिश्रित कुंजी की एक विशेषता दूसरी समग्र कुंजी की एक विशेषता पर निर्भर है
D
there are two possible keys and they are dependent on one another दो संभावित कुंजियाँ हैं और वे एक दूसरे पर निर्भर हैं
✅ Correct Answer:
71
EN + हिं
GB A (n) …………….. is an attribute in a relation that serves as a primary key of another relation in the same.
IN ए (एन) …………….. एक संबंध में एक विशेषता है जो उसी संबंध में दूसरे संबंध की प्राथमिक कुंजी के रूप में कार्य करती है।
A
Composite key समग्र कुंजी
B
Foreign key विदेशी कुंजी
C
Identifier key पहचानकर्ता कुंजी
D
Primary key प्राथमिक कुंजी
✅ Correct Answer:
72
EN + हिं
GB Relational Algebra is
IN संबंधपरक बीजगणित है
A
Data Definition Language . डेटा परिभाषा भाषा.
B
Meta Language मेटा भाषा
C
Procedural query Language प्रक्रियात्मक क्वेरी भाषा
D
None of the above इनमे से कोई भी नहीं
✅ Correct Answer:
73
EN + हिं Easy
GB What is the intention lock hierarchy (IS, IX, SIX locks) and what problem does it solve?
IN इरादा लॉक पदानुक्रम (IS, IX, SIX लॉक) क्या है और यह किस समस्या का समाधान करता है?
A
A hierarchical locking mechanism: Intention Shared (IS) and Intention Exclusive (IX) are set on higher-level objects (table page) to signal intent to lock rows within them - this avoids scanning all row-level locks to check table-level lock compatibility making table-level lock checks O(1) instead of O(rows) एक पदानुक्रमित लॉकिंग तंत्र: इंटेंट शेयर्ड (आईएस) और इंटेंट एक्सक्लूसिव (IX) को उनके भीतर पंक्तियों को लॉक करने के इरादे का संकेत देने के लिए उच्च-स्तरीय ऑब्जेक्ट (तालिका पृष्ठ) पर सेट किया जाता है - यह टेबल-स्तरीय लॉक संगतता की जांच करने के लिए सभी पंक्ति-स्तरीय लॉक को स्कैन करने से बचाता है, जिससे टेबल-स्तरीय लॉक ओ (पंक्तियों) के बजाय ओ (1) की जांच करता है।
B
Locks used to signal transaction priority लेन-देन की प्राथमिकता का संकेत देने के लिए ताले का उपयोग किया जाता है
C
Locks that create intentions for future queries ताले जो भविष्य के प्रश्नों के इरादे बनाते हैं
D
Locks that express intention to acquire more locks ताले जो अधिक ताले प्राप्त करने का इरादा व्यक्त करते हैं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Without intention locks: to lock a table, must check if any row in table is locked by another transaction (O(n) scan). With intention locks: before locking row X, first set IS/IX on containing table/page. Table-level lock check: just check table IS/IX locks - O(1). Hierarchy: database -> table -> page -> row.
व्याख्या (हिन्दी) इरादे के बिना लॉक: किसी तालिका को लॉक करने के लिए, यह जांचना होगा कि तालिका में कोई पंक्ति किसी अन्य लेनदेन (ओ (एन) स्कैन) द्वारा लॉक की गई है या नहीं। इरादे वाले लॉक के साथ: पंक्ति X को लॉक करने से पहले, पहले तालिका/पेज पर IS/IX सेट करें। टेबल-स्तरीय लॉक जांच: बस टेबल IS/IX लॉक की जांच करें - O(1)। पदानुक्रम: डेटाबेस -> तालिका -> पृष्ठ -> पंक्ति।
74
EN + हिं Easy
GB What is lock escalation and when does it trigger?
IN लॉक एस्केलेशन क्या है और यह कब ट्रिगर होता है?
A
A mechanism to extend lock timeout duration लॉक टाइमआउट अवधि बढ़ाने के लिए एक तंत्र
B
A mechanism to upgrade S-locks to X-locks एस-लॉक को एक्स-लॉक में अपग्रेड करने का एक तंत्र
C
A mechanism to transfer locks between transactions लेनदेन के बीच ताले स्थानांतरित करने के लिए एक तंत्र
D
When a transaction acquires too many fine-grained locks (row/page level) the DBMS automatically escalates to a coarser-grained lock (table level) to reduce lock management overhead - reduces memory used for lock structures at the cost of reduced concurrency जब कोई लेन-देन बहुत अधिक बारीक-बारीक ताले (पंक्ति/पृष्ठ स्तर) प्राप्त करता है, तो लॉक प्रबंधन ओवरहेड को कम करने के लिए डीबीएमएस स्वचालित रूप से एक मोटे-दाने वाले ताले (तालिका स्तर) तक बढ़ जाता है - कम संगामिति की कीमत पर लॉक संरचनाओं के लिए उपयोग की जाने वाली मेमोरी को कम कर देता है।
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Lock escalation: if T holds 5000 row locks on table T1, the lock manager escalates to a single TABLE-level S or X lock. Benefit: dramatically reduces lock memory (5000 locks to 1). Drawback: blocks all other transactions on the entire table. SQL Server escalates at ~5000 locks or when lock memory exceeds threshold.
व्याख्या (हिन्दी) लॉक एस्केलेशन: यदि T टेबल T1 पर 5000 पंक्ति लॉक रखता है, तो लॉक मैनेजर एकल टेबल-स्तर S या X लॉक पर बढ़ता है। लाभ: लॉक मेमोरी को नाटकीय रूप से कम कर देता है (5000 लॉक से 1)। दोष: संपूर्ण तालिका पर अन्य सभी लेनदेन को अवरुद्ध करता है। SQL सर्वर ~5000 लॉक पर या जब लॉक मेमोरी थ्रेशोल्ड से अधिक हो जाती है तो बढ़ जाती है।
75
EN + हिं Medium
GB What is deadlock detection using a wait-for graph and how does the DBMS resolve detected deadlocks?
IN वेट-फॉर ग्राफ़ का उपयोग करके गतिरोध का पता लगाना क्या है और डीबीएमएस पता लगाए गए गतिरोधों को कैसे हल करता है?
A
A wait-for graph has one node per transaction and a directed edge T1 to T2 if T1 is waiting for a lock held by T2; a cycle in this graph indicates a deadlock; DBMS resolves by selecting a victim transaction to abort (typically the youngest cheapest or least-work-done transaction) यदि T1, T2 द्वारा रखे गए लॉक की प्रतीक्षा कर रहा है, तो प्रतीक्षा-ग्राफ़ में प्रति लेनदेन एक नोड और T1 से T2 तक एक निर्देशित किनारा होता है; इस ग्राफ़ में एक चक्र गतिरोध को इंगित करता है; डीबीएमएस निरस्त करने के लिए पीड़ित लेनदेन का चयन करके समाधान करता है (आमतौर पर सबसे कम उम्र का सबसे सस्ता या कम से कम काम करने वाला लेनदेन)
B
A graph showing the order of lock acquisitions लॉक अधिग्रहण का क्रम दर्शाने वाला ग्राफ़
C
Deadlocks are prevented rather than detected गतिरोधों का पता लगाने के बजाय उन्हें रोका जाता है
D
A graph used to optimize lock ordering लॉक ऑर्डरिंग को अनुकूलित करने के लिए उपयोग किया जाने वाला ग्राफ़
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Wait-for graph: periodically built by scanning lock table. Cycle = deadlock. Victim selection criteria: minimize rollback cost (youngest transaction, fewest locks, smallest undo log). Victim is rolled back, releasing its locks, breaking the cycle. Surviving transactions proceed. Detection overhead: O(transactions + locks).
व्याख्या (हिन्दी) प्रतीक्षा-ग्राफ़: समय-समय पर लॉक टेबल को स्कैन करके बनाया जाता है। चक्र = गतिरोध. पीड़ित चयन मानदंड: रोलबैक लागत को कम करें (सबसे कम लेनदेन, सबसे कम लॉक, सबसे छोटा पूर्ववत लॉग)। पीड़ित को पीछे की ओर घुमाया जाता है, उसके ताले खोल दिए जाते हैं, जिससे साइकिल टूट जाती है। जीवित लेनदेन आगे बढ़ते हैं। डिटेक्शन ओवरहेड: O(लेन-देन + लॉक)।
61–75 of 127