DBMS — MCQ Practice

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

📚 2982 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
2982 questions
2716
EN + हिं Hard
GB Materialized view differs from regular view because
IN भौतिकीकृत दृश्य नियमित दृश्य से भिन्न होता है क्योंकि
A
It is read-only यह केवल पढ़ने योग्य है
B
It cannot be queried directly इस पर सीधे सवाल नहीं उठाया जा सकता
C
It is same as regular view यह नियमित दृश्य के समान ही है
D
It physically stores query results and can be refreshed periodically यह क्वेरी परिणामों को भौतिक रूप से संग्रहीत करता है और समय-समय पर ताज़ा किया जा सकता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Materialized view: physically stores result set; must be refreshed (REFRESH MATERIALIZED VIEW) for updates.
व्याख्या (हिन्दी) भौतिकीकृत दृश्य: परिणाम सेट को भौतिक रूप से संग्रहीत करता है; अद्यतनों के लिए ताज़ा किया जाना चाहिए (ताज़ा सामग्री दृश्य)।
2717
EN + हिं Hard
GB INSTEAD OF trigger on a view
IN किसी दृश्य पर ट्रिगर के बजाय
A
Fires after DML डीएमएल के बाद आग
B
Intercepts DML on views and executes custom logic replacing the standard DML दृश्यों पर डीएमएल को रोकता है और मानक डीएमएल की जगह कस्टम तर्क निष्पादित करता है
C
Fires before DML on tables मेजों पर डीएमएल से पहले आग
D
Fires on DDL events डीडीएल आयोजनों पर आग
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) INSTEAD OF triggers: allow DML on non-updatable views by replacing default action with custom code.
व्याख्या (हिन्दी) ट्रिगर्स के बजाय: कस्टम कोड के साथ डिफ़ॉल्ट कार्रवाई को प्रतिस्थापित करके गैर-अद्यतन योग्य दृश्यों पर डीएमएल की अनुमति दें।
2718
EN + हिं Hard
GB Stored procedures improve security by
IN संग्रहीत प्रक्रियाओं से सुरक्षा में सुधार होता है
A
Encrypting all data सभी डेटा एन्क्रिप्ट करना
B
Removing audit logs ऑडिट लॉग हटाना
C
Bypassing constraints बाधाओं को दरकिनार करना
D
Allowing users to call procedure without direct table access (execute-only permission) उपयोगकर्ताओं को सीधे टेबल एक्सेस के बिना प्रक्रिया को कॉल करने की अनुमति देना (केवल निष्पादन की अनुमति)
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Stored procedures: users can be granted EXECUTE without granting direct SELECT/INSERT/UPDATE on tables.
व्याख्या (हिन्दी) संग्रहित प्रक्रियाएँ: उपयोगकर्ताओं को तालिकाओं पर सीधे SELECT/INSERT/UPDATE दिए बिना निष्पादन की अनुमति दी जा सकती है।
2719
EN + हिं Hard
GB WITH CHECK OPTION on updatable view ensures
IN अद्यतन योग्य दृश्य पर चेक विकल्प के साथ सुनिश्चित करता है
A
All updates prevented सभी अपडेट रोके गए
B
Updates through view MUST satisfy view's WHERE condition दृश्य के माध्यम से अपडेट को दृश्य की WHERE शर्त को पूरा करना होगा
C
View becomes read-only दृश्य केवल पढ़ने योग्य हो जाता है
D
Updates cascade अद्यतन कैस्केड
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) WITH CHECK OPTION: INSERT/UPDATE through view rejected if resulting row wouldn't satisfy view filter.
व्याख्या (हिन्दी) चेक विकल्प के साथ: यदि परिणामी पंक्ति दृश्य फ़िल्टर को संतुष्ट नहीं करती है तो दृश्य के माध्यम से सम्मिलित/अद्यतन अस्वीकार कर दिया जाता है।
2720
EN + हिं Hard
GB Recursive CTE requires
IN पुनरावर्ती CTE की आवश्यकता है
A
Only the recursive part केवल पुनरावर्ती भाग
B
Only a base case केवल एक आधार मामला
C
No WITH clause नहीं साथ खंड
D
BASE CASE (anchor member) AND RECURSIVE CASE आधार मामला (एंकर सदस्य) और पुनरावर्ती मामला
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Recursive CTE: needs anchor member (base result) + recursive member (references the CTE itself).
व्याख्या (हिन्दी) पुनरावर्ती सीटीई: एंकर सदस्य (आधार परिणाम) + पुनरावर्ती सदस्य (सीटीई का ही संदर्भ) की आवश्यकता है।
2721
EN + हिं Hard
GB ROLLUP in GROUP BY
IN ग्रुप बाय में रोलअप
A
Groups by one column only केवल एक कॉलम द्वारा समूहित करें
B
Generates subtotals and grand total across hierarchy levels पदानुक्रम स्तरों पर उप-योग और कुल योग उत्पन्न करता है
C
Removes grouping समूहीकरण हटाता है
D
Is same as CUBE CUBE के समान है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) ROLLUP: generates progressive subtotals from most to least detailed, plus a grand total.
व्याख्या (हिन्दी) रोलअप: सबसे अधिक से लेकर कम से कम विस्तृत तक प्रगतिशील उप-योग, साथ ही एक भव्य कुल उत्पन्न करता है।
2722
EN + हिं Hard
GB CUBE in GROUP BY
IN ग्रुप बाय में क्यूब
A
Same as ROLLUP रोलअप के समान
B
Groups by one column only केवल एक कॉलम द्वारा समूहित करें
C
Removes aggregation एकत्रीकरण हटाता है
D
Generates subtotals for ALL possible combinations of specified grouping columns निर्दिष्ट समूहीकरण स्तंभों के सभी संभावित संयोजनों के लिए उप-योग उत्पन्न करता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) CUBE: generates subtotals for ALL possible combinations of specified grouping columns.
व्याख्या (हिन्दी) CUBE: निर्दिष्ट समूहीकरण स्तंभों के सभी संभावित संयोजनों के लिए उप-योग उत्पन्न करता है।
2723
EN + हिं Hard
GB PERCENT_RANK() of highest-ranked row is
IN उच्चतम रैंक वाली पंक्ति का PERCENT_RANK() है
A
1.0 1.0
B
0.5 0.5
C
NULL व्यर्थ
D
0.0 0.0
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) PERCENT_RANK = (rank-1)/(N-1). For rank=1: (1-1)/(N-1) = 0.0.
व्याख्या (हिन्दी) PERCENT_RANK = (रैंक-1)/(एन-1)। रैंक=1 के लिए: (1-1)/(एन-1) = 0.0.
2724
EN + हिं Hard
GB NTILE(4) OVER(ORDER BY salary) divides
IN NTILE(4) ओवर(वेतन के अनुसार क्रम) विभाजित करता है
A
Rows into 4% groups 4% समूहों में पंक्तियाँ
B
Salary into 4 ranges वेतन को 4 श्रेणियों में बांटा गया है
C
Only 4 rows केवल 4 पंक्तियाँ
D
Ordered rows into 4 approximately equal-sized buckets पंक्तियों को लगभग 4 समान आकार की बाल्टियों में क्रमबद्ध किया गया
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) NTILE(n): divides ordered rows into n approximately equal-sized buckets (numbered 1 to n).
व्याख्या (हिन्दी) NTILE(n): क्रमित पंक्तियों को n लगभग समान आकार की बाल्टियों (1 से n क्रमांकित) में विभाजित करता है।
2725
EN + हिं Hard
GB SUM(salary) OVER(ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) computes
IN योग (वेतन) ओवर (अनबाउंड पूर्ववर्ती और वर्तमान पंक्ति के बीच की पंक्तियाँ) की गणना करता है
A
Total salary only केवल कुल वेतन
B
Average salary औसत वेतन
C
Partition sum विभाजन योग
D
Running cumulative total of salary वेतन का संचयी योग चल रहा है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) SUM() OVER(ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW): cumulative running total.
व्याख्या (हिन्दी) SUM() ओवर (अनबाउंड पूर्ववर्ती और वर्तमान पंक्ति के बीच की पंक्तियाँ): संचयी रनिंग कुल।
2726
EN + हिं Hard
GB CUME_DIST() computes
IN CUME_DIST() गणना करता है
A
Cumulative standard deviation संचयी मानक विचलन
B
Percentage rank प्रतिशत रैंक
C
Row number as fraction भिन्न के रूप में पंक्ति संख्या
D
Cumulative distribution: fraction of rows ≤ current row value संचयी वितरण: पंक्तियों का अंश ≤ वर्तमान पंक्ति मान
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) CUME_DIST() = (rows ≤ current row value) / (total rows in partition).
व्याख्या (हिन्दी) CUME_DIST() = (पंक्तियाँ ≤ वर्तमान पंक्ति मान) / (विभाजन में कुल पंक्तियाँ)।
2727
EN + हिं Hard
GB ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING includes
IN 1 पूर्ववर्ती और 1 निम्नलिखित के बीच की पंक्तियाँ शामिल हैं
A
Only current row केवल वर्तमान पंक्ति
B
All preceding rows सभी पूर्ववर्ती पंक्तियाँ
C
All following rows निम्नलिखित सभी पंक्तियाँ
D
Previous row + current row + next row (3-row window) पिछली पंक्ति + वर्तमान पंक्ति + अगली पंक्ति (3-पंक्ति विंडो)
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING: sliding window of previous + current + next row.
व्याख्या (हिन्दी) 1 पूर्ववर्ती और 1 निम्नलिखित के बीच की पंक्तियाँ: पिछली + वर्तमान + अगली पंक्ति की स्लाइडिंग विंडो।
2728
EN + हिं Hard
GB Two-Phase Commit (2PC) is used for
IN टू-फ़ेज़ कमिट (2PC) का उपयोग किसके लिए किया जाता है?
A
Single-node transactions एकल-नोड लेनदेन
B
B+tree insertions बी+वृक्ष सम्मिलन
C
Index creation अनुक्रमणिका निर्माण
D
Distributed database transactions across multiple nodes एकाधिक नोड्स में वितरित डेटाबेस लेनदेन
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 2PC: ensures atomicity across multiple nodes in a distributed database system.
व्याख्या (हिन्दी) 2पीसी: वितरित डेटाबेस सिस्टम में कई नोड्स में परमाणुता सुनिश्चित करता है।
2729
EN + हिं Hard
GB PAXOS consensus protocol is used in
IN PAXOS सर्वसम्मति प्रोटोकॉल का उपयोग किया जाता है
A
Single-node databases एकल-नोड डेटाबेस
B
Only file systems केवल फ़ाइल सिस्टम
C
Only two-node systems केवल दो-नोड सिस्टम
D
Distributed systems for fault-tolerant consensus among multiple nodes अनेक नोड्स के बीच दोष-सहिष्णु सर्वसम्मति के लिए वितरित प्रणालियाँ
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Paxos: achieves consensus in distributed systems even with node failures.
व्याख्या (हिन्दी) पैक्सोस: नोड विफलताओं के साथ भी वितरित प्रणालियों में सर्वसम्मति प्राप्त करता है।
2730
EN + हिं Hard
GB Base property of NoSQL - Eventually consistent means
IN NoSQL की आधार संपत्ति - अंततः सुसंगत साधन
A
Data always consistent डेटा हमेशा सुसंगत
B
Data is never consistent डेटा कभी भी सुसंगत नहीं होता है
C
Only primary has correct data केवल प्राइमरी में ही सही डेटा है
D
Given enough time (no updates) all replicas will converge to same value पर्याप्त समय दिए जाने पर (कोई अपडेट नहीं) सभी प्रतिकृतियां समान मूल्य पर एकत्रित हो जाएंगी
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Eventual consistency: after updates stop, all replicas eventually become consistent - not immediate.
व्याख्या (हिन्दी) अंतिम स्थिरता: अपडेट बंद होने के बाद, सभी प्रतिकृतियां अंततः सुसंगत हो जाती हैं - तत्काल नहीं।
2716–2730 of 2982