Data Structures and Algorithms — MCQ Practice

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

📚 1018 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
1018 questions

Question 136

EN + हिं Medium
GB Which algorithm uses queue for level-order traversal?
IN कौन सा एल्गोरिदम लेवल-ऑर्डर ट्रैवर्सल के लिए कतार का उपयोग करता है?
DFS डीएफएस
Inorder क्रम में
BFS/Level-order बीएफएस/स्तर-आदेश
Postorder पोस्ट ऑर्डर
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) BFS/Level-order uses queue: root enqueued, children enqueued.
व्याख्या (हिन्दी) बीएफएस/लेवल-ऑर्डर कतार का उपयोग करता है: रूट कतारबद्ध, बच्चे कतारबद्ध।
🎯 Exam Perspective
Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 137

EN + हिं Medium
GB Printer spooling uses which data structure?
IN प्रिंटर स्पूलिंग किस डेटा संरचना का उपयोग करता है?
Stack ढेर
Queue कतार
Binary tree बाइनरी वृक्ष
Hash table हैश तालिका
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Printer spooling uses queue — print jobs in order of submission.
व्याख्या (हिन्दी) प्रिंटर स्पूलिंग सबमिशन के क्रम में क्यू - प्रिंट जॉब का उपयोग करता है।
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 138

EN + हिं Medium
GB Priority queue most efficiently implemented with?
IN प्राथमिकता कतार सबसे अधिक कुशलता से किसके साथ कार्यान्वित की जाती है?
Linked List O(n) लिंक्ड सूची ओ(एन)
Binary Heap O(log n) बाइनरी हीप ओ(लॉग एन)
Sorted Array O(n) क्रमबद्ध सरणी O(n)
Stack ढेर
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Binary heap gives O(log n) insert and delete-min/max.
व्याख्या (हिन्दी) बाइनरी हीप O(लॉग एन) इन्सर्ट और डिलीट-न्यूनतम/अधिकतम देता है।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 139

EN + हिं Medium
GB Circular queue IS_FULL when?
IN वृत्ताकार कतार कब IS_FULL है?
head==tail सिर==पूँछ
head==0 सिर==0
head==tail+1 सिर==पूंछ+1
tail==0 पूँछ==0
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) IS_FULL: Q.head==Q.tail+1.
व्याख्या (हिन्दी) IS_FULL: Q.head==Q.tail+1.
🎯 Exam Perspective
Data Structures and Algorithms से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 140

EN + हिं Medium
GB Call center uses which structure to hold waiting customers?
IN कॉल सेंटर प्रतीक्षारत ग्राहकों को रोकने के लिए किस संरचना का उपयोग करता है?
Stack ढेर
Queue कतार
BST बीएसटी
Hash table हैश तालिका
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Call centers use queues — customers served in arrival order.
व्याख्या (हिन्दी) कॉल सेंटर कतारों का उपयोग करते हैं - ग्राहकों को आगमन क्रम में सेवा दी जाती है।
🎯 Exam Perspective
UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 141

EN + हिं Medium
GB Minimum queues needed to implement a stack?
IN स्टैक को लागू करने के लिए न्यूनतम कतारों की आवश्यकता है?
1 1
2 2
3 3
4 4
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 2 queues needed to implement a stack.
व्याख्या (हिन्दी) एक स्टैक को लागू करने के लिए 2 कतारों की आवश्यकता है।
🎯 Exam Perspective
अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 142

EN + हिं Medium
GB Two parts of a node in singly linked list?
IN एकल लिंक्ड सूची में एक नोड के दो भाग?
key and value कुंजी और मूल्य
data and next pointer डेटा और अगला सूचक
head and tail सिर और पूंछ
data and previous डेटा और पिछला
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Each node has: data (value) and next (pointer to next node).
व्याख्या (हिन्दी) प्रत्येक नोड में: डेटा (मान) और अगला (अगले नोड का सूचक) होता है।
🎯 Exam Perspective
Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 143

EN + हिं Easy
GB What does 'head' pointer point to?
IN 'हेड' सूचक किस ओर इंगित करता है?
Last element अंतिम तत्व
First element पहला तत्व
Middle element मध्य तत्व
NULL व्यर्थ
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Head always points to the first node of the linked list.
व्याख्या (हिन्दी) हेड हमेशा लिंक की गई सूची के पहले नोड की ओर इशारा करता है।
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms category का है — difficulty level "Easy", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 144

EN + हिं Medium
GB Last node's 'next' in singly linked list points to?
IN एकल लिंक्ड सूची में अंतिम नोड का 'अगला' किसकी ओर इंगित करता है?
First node पहला नोड
Previous node पिछला नोड
NULL व्यर्थ
Head सिर
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Last node's next is NULL — marks end of list.
व्याख्या (हिन्दी) अंतिम नोड का अगला भाग NULL है - यह सूची के अंत का प्रतीक है।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 145

EN + हिं Medium
GB Advantage of linked list over arrays?
IN सरणियों की तुलना में लिंक्ड सूची का लाभ?
Faster random access तेज़ रैंडम एक्सेस
Fixed size निश्चित आकार
Dynamic size — no resizing needed गतिशील आकार - कोई आकार बदलने की आवश्यकता नहीं है
Less memory always हमेशा कम याददाश्त
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Linked lists are dynamic — grow/shrink at runtime without resizing.
व्याख्या (हिन्दी) लिंक की गई सूचियाँ गतिशील हैं - आकार बदलने के बिना रनटाइम पर बढ़ती/घटती हैं।
🎯 Exam Perspective
Data Structures and Algorithms से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 146

EN + हिं Medium
GB Doubly linked list node has how many fields?
IN डबल लिंक्ड सूची नोड में कितने फ़ील्ड हैं?
Two दो
Three (prev, data, next) तीन (पिछला, डेटा, अगला)
Four चार
One एक
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Doubly linked list node: previous, data, next — three fields.
व्याख्या (हिन्दी) दोगुनी लिंक की गई सूची नोड: पिछला, डेटा, अगला - तीन फ़ील्ड।
🎯 Exam Perspective
SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 147

EN + हिं Medium
GB Advantage of doubly over singly linked list?
IN एकल लिंक्ड सूची पर दोगुना का लाभ?
Less memory कम स्मृति
Traversal in both directions दोनों दिशाओं में ट्रैवर्सल
Faster head insertion तेज़ सिर सम्मिलन
Simpler implementation सरल कार्यान्वयन
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Doubly LL supports forward and backward traversal.
व्याख्या (हिन्दी) डबली एलएल आगे और पीछे ट्रैवर्सल का समर्थन करता है।
🎯 Exam Perspective
अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 148

EN + हिं Medium
GB Disadvantage of doubly over singly linked list?
IN एकल लिंक्ड सूची पर दोगुना का नुकसान?
Cannot traverse forward आगे नहीं बढ़ सकता
Cannot store data डेटा संग्रहीत नहीं किया जा सकता
Extra pointer increases memory एक्स्ट्रा पॉइंटर से मेमोरी बढ़ती है
Slower push धीमा धक्का
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Extra 'previous' pointer per node increases memory usage.
व्याख्या (हिन्दी) प्रति नोड अतिरिक्त 'पिछला' पॉइंटर मेमोरी उपयोग को बढ़ाता है।
🎯 Exam Perspective
Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 149

EN + हिं Medium
GB Circular linked list: tail node's 'next' points to?
IN सर्कुलर लिंक्ड सूची: टेल नोड का 'अगला' इंगित करता है?
NULL व्यर्थ
Previous node पिछला नोड
Head node सिर का नोड
Sentinel node प्रहरी नोड
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) In circular LL, tail's next points back to head — forms circle.
व्याख्या (हिन्दी) वृत्ताकार एलएल में, पूंछ का अगला भाग सिर की ओर वापस इंगित करता है - वृत्त बनाता है।
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 150

EN + हिं Medium
GB Previous pointer of head node in doubly linked list?
IN दोगुनी लिंक्ड सूची में हेड नोड का पिछला सूचक?
Points to tail पूँछ की ओर इशारा करता है
Points to None/NULL कोई नहीं/शून्य की ओर इंगित करता है
Points to itself खुद की ओर इशारा करता है
Points to next अगले की ओर इशारा करता है
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Head's previous is None/NULL — no node before head.
व्याख्या (हिन्दी) हेड का पिछला कोई नहीं/शून्य है - हेड से पहले कोई नोड नहीं।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।