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
2611
EN + हिं Hard
GB Why is sequential disk access faster than random?
IN अनुक्रमिक डिस्क एक्सेस रैंडम की तुलना में तेज़ क्यों है?
A
Data is cached डेटा कैश किया गया है
B
No seek time or rotational latency between consecutive blocks लगातार ब्लॉकों के बीच कोई खोज समय या घूर्णी विलंबता नहीं
C
Data is compressed डेटा संपीड़ित है
D
Sequential data is smaller अनुक्रमिक डेटा छोटा है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Sequential: after reading one block, next block immediately available - no additional seek/rotation.
व्याख्या (हिन्दी) अनुक्रमिक: एक ब्लॉक को पढ़ने के बाद, अगला ब्लॉक तुरंत उपलब्ध होता है - कोई अतिरिक्त खोज/रोटेशन नहीं।
2612
EN + हिं Hard
GB Primary key in MySQL InnoDB automatically creates
IN MySQL InnoDB में प्राथमिक कुंजी स्वचालित रूप से बनती है
A
Non-clustered index गैर-संकुलित सूचकांक
B
No index कोई सूचकांक नहीं
C
Bitmap index बिटमैप सूचकांक
D
Clustered index संकुल सूचकांक
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) MySQL InnoDB: PRIMARY KEY automatically creates a CLUSTERED index - data stored in PK order.
व्याख्या (हिन्दी) MySQL InnoDB: प्राथमिक कुंजी स्वचालित रूप से एक क्लस्टर इंडेक्स बनाती है - डेटा PK क्रम में संग्रहीत होता है।
2613
EN + हिं Hard
GB Index seek vs index scan: index SEEK
IN इंडेक्स सीक बनाम इंडेक्स स्कैन: इंडेक्स सीक
A
Scans all leaf nodes सभी पत्ती नोड्स को स्कैन करता है
B
Is equivalent to scan स्कैन के बराबर है
C
Traverses B+tree to find specific key (fast for selective queries) विशिष्ट कुंजी खोजने के लिए बी+ट्री को ट्रैवर्स करता है (चयनात्मक प्रश्नों के लिए तेज़)
D
Always slower हमेशा धीमा
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Index SEEK: traverses B+tree root-to-leaf to find specific key - very fast for selective predicates.
व्याख्या (हिन्दी) इंडेक्स सीक: विशिष्ट कुंजी खोजने के लिए बी+पेड़ की जड़ से पत्ती तक का पता लगाता है - चयनात्मक विधेय के लिए बहुत तेज़।
2614
EN + हिं Hard
GB Fill factor in index creation specifies
IN सूचकांक निर्माण में भरण कारक निर्दिष्ट करता है
A
Number of indexes allowed अनुमत अनुक्रमणिका की संख्या
B
Percentage of each index page to fill leaving space for future inserts भावी प्रविष्टियों के लिए स्थान छोड़कर भरने हेतु प्रत्येक अनुक्रमणिका पृष्ठ का प्रतिशत
C
Size of each page प्रत्येक पृष्ठ का आकार
D
Maximum rows indexed अधिकतम पंक्तियाँ अनुक्रमित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Fill factor (e.g., 80%): leaves empty space in index pages for future inserts, reducing page splits.
व्याख्या (हिन्दी) भरण कारक (उदाहरण के लिए, 80%): भविष्य में प्रविष्टियों के लिए सूचकांक पृष्ठों में खाली स्थान छोड़ता है, जिससे पृष्ठ विभाजन कम हो जाता है।
2615
EN + हिं Hard
GB Linear hashing
IN रैखिक हैशिंग
A
Doubles hash table suddenly हैश तालिका अचानक दोगुनी हो गई
B
Splits buckets incrementally in linear order without sudden doubling अचानक दोहरीकरण के बिना, रैखिक क्रम में बाल्टियों को क्रमिक रूप से विभाजित करता है
C
Uses fixed buckets स्थिर बाल्टियों का उपयोग करता है
D
Requires sorted input क्रमबद्ध इनपुट की आवश्यकता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Linear hashing: incrementally splits one bucket at a time - grows gradually without large reorganizations.
व्याख्या (हिन्दी) रैखिक हैशिंग: एक समय में एक बाल्टी को क्रमिक रूप से विभाजित करता है - बड़े पुनर्गठन के बिना धीरे-धीरे बढ़ता है।
2616
EN + हिं Hard
GB Extendible hashing solves static hashing by
IN विस्तार योग्य हैशिंग स्थैतिक हैशिंग को हल करता है
A
Using larger fixed buckets बड़ी स्थिर बाल्टियों का उपयोग करना
B
Dynamically doubling directory size and splitting buckets as needed आवश्यकतानुसार निर्देशिका आकार को गतिशील रूप से दोगुना करना और बकेट को विभाजित करना
C
Removing overflow records अतिप्रवाह रिकॉर्ड हटा रहा है
D
Using B+ trees for overflow अतिप्रवाह के लिए B+ पेड़ों का उपयोग करना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Extendible hashing: dynamically adjusts directory size and splits individual buckets when they overflow.
व्याख्या (हिन्दी) विस्तार योग्य हैशिंग: निर्देशिका आकार को गतिशील रूप से समायोजित करता है और अतिप्रवाह होने पर अलग-अलग बकेट को विभाजित करता है।
2617
EN + हिं Hard
GB Double buffering allows
IN डबल बफ़रिंग की अनुमति देता है
A
Twice the storage भंडारण से दोगुना
B
I/O of next block to overlap with CPU processing of current block अगले ब्लॉक का I/O वर्तमान ब्लॉक की सीपीयू प्रोसेसिंग के साथ ओवरलैप होगा
C
Reading each page twice प्रत्येक पृष्ठ को दो बार पढ़ना
D
Pinning pages twice पेजों को दो बार पिन करना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Double buffering: two buffer frames for same file so I/O and CPU processing can overlap.
व्याख्या (हिन्दी) डबल बफ़रिंग: एक ही फ़ाइल के लिए दो बफ़र फ़्रेम ताकि I/O और CPU प्रोसेसिंग ओवरलैप हो सकें।
2618
EN + हिं Hard
GB The Selinger optimizer uses
IN सेलिंगर ऑप्टिमाइज़र का उपयोग करता है
A
Greedy join ordering लालची आदेश देने में शामिल हों
B
Dynamic programming to find optimal join ordering with estimated costs अनुमानित लागत के साथ इष्टतम जॉइन ऑर्डर खोजने के लिए गतिशील प्रोग्रामिंग
C
Random join ordering रैंडम जॉइन ऑर्डरिंग
D
Only left-deep trees केवल बायीं ओर गहरे पेड़
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Selinger's algorithm (System R): uses dynamic programming with estimated costs for optimal join order.
व्याख्या (हिन्दी) सेलिंगर का एल्गोरिदम (सिस्टम आर): इष्टतम जुड़ाव क्रम के लिए अनुमानित लागत के साथ गतिशील प्रोग्रामिंग का उपयोग करता है।
2619
EN + हिं Medium
GB Laravel Eloquent is
IN लारवेल एलोक्वेंट है
A
Raw SQL library कच्ची SQL लाइब्रेरी
B
ORM using Active Record pattern mapping tables to PHP classes ORM PHP कक्षाओं में सक्रिय रिकॉर्ड पैटर्न मैपिंग तालिकाओं का उपयोग कर रहा है
C
Migration tool only केवल माइग्रेशन उपकरण
D
Query optimizer क्वेरी अनुकूलक
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Eloquent ORM: maps database tables to PHP classes. Each model=table, each instance=row.
व्याख्या (हिन्दी) सुवक्ता ORM: डेटाबेस तालिकाओं को PHP कक्षाओं में मैप करता है। प्रत्येक मॉडल=तालिका, प्रत्येक उदाहरण=पंक्ति।
2620
EN + हिं Medium
GB php artisan make:model Question creates
IN php कारीगर बनाता है: मॉडल प्रश्न बनाता है
A
Migration file माइग्रेशन फ़ाइल
B
New Eloquent model class in app/Models ऐप/मॉडल में नया एलोकेंट मॉडल वर्ग
C
Seeder बोने की मशीन
D
Controller नियंत्रक
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) make:model creates a new Eloquent model class file in the app/Models directory.
व्याख्या (हिन्दी) मेक:मॉडल ऐप/मॉडल निर्देशिका में एक नई एलोक्वेंट मॉडल क्लास फ़ाइल बनाता है।
2621
EN + हिं Medium
GB Eloquent assumes table name is
IN एलोक्वेंट मानता है कि तालिका का नाम है
A
Same as model name मॉडल नाम के समान
B
Singular of model name मॉडल नाम का एकवचन
C
Plural snake_case of model (User→users, Question→questions) मॉडल का बहुवचन साँप_केस (उपयोगकर्ता→उपयोगकर्ता, प्रश्न→प्रश्न)
D
Always 'data' हमेशा 'डेटा'
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Eloquent convention: model name pluralized and snake_cased = table name. Question→questions.
व्याख्या (हिन्दी) सुवक्ता परिपाटी: मॉडल का नाम बहुवचन और साँप_केस = तालिका का नाम। प्रश्न→प्रश्न.
2622
EN + हिं Medium
GB To override Eloquent table name
IN एलोक्वेंट तालिका नाम को ओवरराइड करने के लिए
A
Change model file name मॉडल फ़ाइल नाम बदलें
B
Set protected $table = 'custom_name' संरक्षित $टेबल = 'कस्टम_नाम' सेट करें
C
Use @table annotation @टेबल एनोटेशन का प्रयोग करें
D
Cannot be overridden ओवरराइड नहीं किया जा सकता
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) protected $table = 'table_name' overrides Eloquent's automatic plural snake_case convention.
व्याख्या (हिन्दी) संरक्षित $table = 'table_name' एलोक्वेंट के स्वचालित बहुवचन स्नेक_केस कन्वेंशन को ओवरराइड करता है।
2623
EN + हिं Medium
GB Question::all() returns
IN प्रश्न::सभी() रिटर्न
A
First record only केवल पहला रिकॉर्ड
B
Collection of all Question model instances सभी प्रश्न मॉडल उदाहरणों का संग्रह
C
Count of questions प्रश्नों की संख्या
D
NULL व्यर्थ
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Model::all(): retrieves ALL rows from table as a Collection of model instances.
व्याख्या (हिन्दी) मॉडल::सभी(): मॉडल उदाहरणों के संग्रह के रूप में तालिका से सभी पंक्तियों को पुनर्प्राप्त करता है।
2624
EN + हिं Medium
GB Question::find(1) returns
IN प्रश्न::(1) रिटर्न खोजें
A
All questions सभी प्रश्न
B
Question with PK=1 or NULL if not found यदि नहीं मिला तो PK=1 या NULL वाला प्रश्न
C
Questions where id>1 प्रश्न जहां आईडी>1
D
First question only केवल पहला प्रश्न
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) find($id): retrieves model with that primary key value, or NULL if not found.
व्याख्या (हिन्दी) ढूंढें($id): उस प्राथमिक कुंजी मान के साथ मॉडल पुनर्प्राप्त करता है, या नहीं मिलने पर NULL प्राप्त करता है।
2625
EN + हिं Medium
GB findOrFail($id) when ID not found
IN जब आईडी नहीं मिली तो findOrFair($id)।
A
Returns NULL शून्य लौटाता है
B
Returns empty collection खाली संग्रह लौटाता है
C
Throws ModelNotFoundException मॉडलनॉटफाउंडएक्सेप्शन फेंकता है
D
Creates new record नया रिकॉर्ड बनाया
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) findOrFail: throws ModelNotFoundException (404 in web context) if record not found.
व्याख्या (हिन्दी) findOrFair: यदि रिकॉर्ड नहीं मिला तो मॉडलनॉटफाउंडएक्सेप्शन (वेब ​​​​संदर्भ में 404) फेंकता है।
2611–2625 of 2982