Data Structures and Algorithms — MCQ Practice

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

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

Question 76

EN + हिं Easy
GB What is self.tail.next set to after adding node at end of doubly LL?
IN डबली एलएल के अंत में नोड जोड़ने के बाद self.tail.next को किस पर सेट किया जाता है?
New node नया नोड
NULL/None शून्य/कोई नहीं
Head सिर
Previous tail पिछली पूँछ
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) self.tail=newNode; self.tail.next=None.
व्याख्या (हिन्दी) self.tail=newNode; self.tail.next=कोई नहीं.
🎯 Exam Perspective
Data Structures and Algorithms ("Introduction to DSA" sub-topic) के इस प्रश्न को — difficulty level "Easy" कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 77

EN + हिं Medium
GB In circular LL add() when empty, newNode.next=?
IN सर्कुलर एलएल में खाली होने पर() जोड़ें, newNode.next=?
None कोई नहीं
head सिर
newNode itself न्यूनोड स्वयं
tail पूँछ
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Empty: self.head=newNode; self.tail=newNode; newNode.next=self.head.
व्याख्या (हिन्दी) खाली: self.head=newNode; self.tail=newNode; newNode.next=self.head.
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms ("Introduction to DSA" sub-topic) category का है — difficulty level "Medium", और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 78

EN + हिं Medium
GB Circular LL display() while loop stops when?
IN सर्कुलर एलएल डिस्प्ले() जबकि लूप कब रुकता है?
current.next!=None current.next!=कोई नहीं
current.next!=self.head current.next!=self.head
current==self.tail वर्तमान==स्वयं.पूंछ
current.data==0 वर्तमान.डेटा==0
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Stop when current.next==self.head (completed the circle).
व्याख्या (हिन्दी) जब current.next==self.head (सर्कल पूरा हो जाए) रुकें।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 79

EN + हिं Medium
GB Doubly LL display() after adding 1,2,3,4,5?
IN 1,2,3,4,5 जोड़ने के बाद दोगुना एलएल डिस्प्ले()?
5 4 3 2 1 5 4 3 2 1
1 2 3 4 5 1 2 3 4 5
Random यादृच्छिक
Error गलती
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Nodes appended in order; display starts from head: 1 2 3 4 5.
व्याख्या (हिन्दी) क्रम में जोड़े गए नोड्स; डिस्प्ले सिर से शुरू होता है: 1 2 3 4 5।
🎯 Exam Perspective
Data Structures and Algorithms ("Introduction to DSA" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 80

EN + हिं Medium
GB Circular LL advantage over singly LL?
IN एकल एलएल पर सर्कुलर एलएल का लाभ?
Less memory कम स्मृति
Traverse entire list from any node किसी भी नोड से पूरी सूची को ट्रैवर्स करें
Bidirectional traversal द्विदिशीय ट्रैवर्सल
O(1) random access ओ(1) यादृच्छिक अभिगम
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Circular LL: any node can be starting point to visit all nodes.
व्याख्या (हिन्दी) सर्कुलर एलएल: कोई भी नोड सभी नोड्स पर जाने के लिए शुरुआती बिंदु हो सकता है।
🎯 Exam Perspective
UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 81

EN + हिं Medium
GB Floyd's cycle detection uses?
IN फ्लोयड के चक्र का पता लगाने का उपयोग करता है?
Two queues दो कतारें
Binary search द्विआधारी खोज
Slow and fast pointer धीमा और तेज़ सूचक
Stack ढेर
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Floyd's: slow moves 1 step, fast moves 2. If they meet = cycle.
व्याख्या (हिन्दी) फ्लोयड: धीमी चाल 1 कदम, तेज़ चाल 2। यदि वे मिलते हैं = साइकिल।
🎯 Exam Perspective
अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 82

EN + हिं Medium
GB In circular LL with 4 nodes A,B,C,D starting at A, node after 5 steps?
IN वृत्ताकार एलएल में 4 नोड्स ए, बी, सी, डी के साथ ए से शुरू होकर, 5 चरणों के बाद नोड?
A
B बी
C सी
D डी
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) A(0)→B(1)→C(2)→D(3)→A(4)→B(5). B after 5 steps.
व्याख्या (हिन्दी) A(0)→B(1)→C(2)→D(3)→A(4)→B(5). 5 चरणों के बाद बी.
🎯 Exam Perspective
Data Structures and Algorithms ("Introduction to DSA" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 83

EN + हिं Medium
GB Topmost node of a tree?
IN पेड़ का सबसे ऊपरी नोड?
Child बच्चा
Leaf पत्ता
Root जड़
Sibling भाई बहन
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Root is the topmost node with no parent.
व्याख्या (हिन्दी) रूट सबसे ऊपरी नोड है जिसका कोई पेरेंट नहीं है।
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms ("Introduction to DSA" sub-topic) category का है — difficulty level "Medium", और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 84

EN + हिं Medium
GB Nodes with no children are called?
IN बिना संतान वाले नोड्स को क्या कहा जाता है?
Root nodes रूट नोड्स
Internal nodes आंतरिक नोड्स
Parent nodes मूल नोड्स
Leaf nodes पत्ती की गांठे
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Leaf nodes (external nodes) have no children.
व्याख्या (हिन्दी) लीफ नोड्स (बाहरी नोड्स) की कोई संतान नहीं है।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 85

EN + हिं Medium
GB Degree of a node?
IN एक नोड की डिग्री?
Depth of node नोड की गहराई
Edges connected किनारे जुड़े हुए हैं
Maximum number of children बच्चों की अधिकतम संख्या
Level स्तर
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Node degree = maximum number of children a node has.
व्याख्या (हिन्दी) नोड डिग्री = एक नोड में बच्चों की अधिकतम संख्या।
🎯 Exam Perspective
Data Structures and Algorithms ("Introduction to DSA" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 86

EN + हिं Medium
GB Level of root node?
IN रूट नोड का स्तर?
1 1
-1 -1
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Root is at level 0; its children at level 1, etc.
व्याख्या (हिन्दी) रूट 0 स्तर पर है; इसके बच्चे स्तर 1 आदि पर हैं।
🎯 Exam Perspective
SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 87

EN + हिं Medium
GB Inorder predecessor is?
IN इनऑर्डर पूर्ववर्ती है?
Smallest in right child दाएं बच्चे में सबसे छोटा
Largest in left child बाएं बच्चे में सबसे बड़ा
Parent node मूल नोड
Rightmost leaf सबसे दाहिना पत्ता
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Inorder predecessor = largest key in left child subtree.
व्याख्या (हिन्दी) इनऑर्डर पूर्ववर्ती = बाएं चाइल्ड सबट्री में सबसे बड़ी कुंजी।
🎯 Exam Perspective
अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 88

EN + हिं Medium
GB Inorder successor is?
IN इनऑर्डर उत्तराधिकारी है?
Largest in right child सही बच्चे में सबसे बड़ा
Parent माता-पिता
Smallest in right child subtree दाएँ चाइल्ड उपवृक्ष में सबसे छोटा
Leftmost leaf सबसे बायाँ पत्ता
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Inorder successor = smallest key in right child subtree.
व्याख्या (हिन्दी) इनऑर्डर उत्तराधिकारी = दाएं चाइल्ड सबट्री में सबसे छोटी कुंजी।
🎯 Exam Perspective
Data Structures and Algorithms ("Introduction to DSA" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 89

EN + हिं Medium
GB LL rotation: every node moves?
IN एलएल रोटेशन: हर नोड चलता है?
One position right एक स्थिति सही है
One position left एक पद बाकी है
Two positions right दो स्थान सही
No movement कोई संचलन नहीं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) LL rotation: every node moves one position to the left.
व्याख्या (हिन्दी) एलएल रोटेशन: प्रत्येक नोड एक स्थान बाईं ओर चलता है।
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms ("Introduction to DSA" sub-topic) category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 90

EN + हिं Medium
GB RR rotation: every node moves?
IN आरआर रोटेशन: हर नोड चलता है?
One position left एक पद बाकी है
One position right एक स्थिति सही है
Two positions left दो पद बचे हैं
Two positions right दो स्थान सही
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) RR rotation: every node moves one position to the right.
व्याख्या (हिन्दी) आरआर रोटेशन: प्रत्येक नोड एक स्थान दाईं ओर बढ़ता है।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।