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 196

EN + हिं Medium
GB How many rotation types in AVL tree?
IN AVL ट्री में कितने रोटेशन प्रकार होते हैं?
2 2
3 3
4 4
5 5
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 4 rotations: LL, RR, LR, RL.
व्याख्या (हिन्दी) 4 रोटेशन: एलएल, आरआर, एलआर, आरएल।
🎯 Exam Perspective
Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 197

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 category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 198

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 की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 199

EN + हिं Medium
GB LR rotation is combination of?
IN एलआर रोटेशन किसका संयोजन है?
Two right rotations दो सही घुमाव
Two left rotations दो बाएँ घुमाव
Single left then single right rotation एक बाएँ और फिर एक दाएँ घुमाव
Single right then single left एक दाएँ फिर एक बाएँ
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) LR = single left rotation followed by single right rotation.
व्याख्या (हिन्दी) एलआर = एकल बाएँ घुमाव के बाद एकल दाएँ घुमाव।
🎯 Exam Perspective
Data Structures and Algorithms से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 200

EN + हिं Medium
GB RL rotation is combination of?
IN आरएल रोटेशन किसका संयोजन है?
Left then right rotation बाएँ फिर दाएँ घुमाव
Single right then single left rotation एक दाएँ फिर एक बाएँ घुमाव
Two right rotations दो सही घुमाव
Two left rotations दो बाएँ घुमाव
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) RL = single right rotation followed by single left rotation.
व्याख्या (हिन्दी) आरएल = एकल दाएं घुमाव के बाद एकल बाएं घुमाव।
🎯 Exam Perspective
UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 201

EN + हिं Medium
GB B-tree is?
IN बी-वृक्ष है?
Binary tree 2 children बाइनरी ट्री 2 बच्चे
Self-balancing, each node can have more than 2 children स्व-संतुलन, प्रत्येक नोड में 2 से अधिक बच्चे हो सकते हैं
Binary used only in DB बाइनरी का उपयोग केवल DB में किया जाता है
Exactly 3 children बिल्कुल 3 बच्चे
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) B-tree: self-balancing search tree with multiple keys/children per node.
व्याख्या (हिन्दी) बी-ट्री: प्रति नोड एकाधिक कुंजी/बच्चों के साथ स्व-संतुलन खोज ट्री।
🎯 Exam Perspective
अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 202

EN + हिं Medium
GB B-tree was invented to?
IN बी-ट्री का आविष्कार कहाँ हुआ था?
Handle in-memory sorting इन-मेमोरी सॉर्टिंग को संभालें
Minimize disk accesses in secondary storage सेकेंडरी स्टोरेज में डिस्क एक्सेस कम से कम करें
Replace arrays सरणियाँ बदलें
Support doubly linked lists दोहरी रूप से लिंक की गई सूचियों का समर्थन करें
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) B-trees minimize disk I/O — keep height low with more keys per node.
व्याख्या (हिन्दी) बी-ट्री डिस्क I/O को न्यूनतम करते हैं - प्रति नोड अधिक कुंजियों के साथ ऊंचाई कम रखते हैं।
🎯 Exam Perspective
Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 203

EN + हिं Medium
GB In B-tree of order m, each internal node has at most how many keys?
IN ऑर्डर एम के बी-ट्री में, प्रत्येक आंतरिक नोड में अधिकतम कितनी कुंजियाँ होती हैं?
m एम
m+1 एम+1
m-1 एम-1
2m 2मी
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) At most m-1 keys and m children per internal node.
व्याख्या (हिन्दी) अधिकतम एम-1 कुंजियाँ और प्रति आंतरिक नोड एम बच्चे।
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms category का है — difficulty level "Medium", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 204

EN + हिं Medium
GB B-tree: all leaves are at?
IN बी-वृक्ष: सभी पत्तियाँ कहाँ पर हैं?
Different levels अलग - अलग स्तर
Same level (same depth) समान स्तर (समान गहराई)
Level 0 स्तर 0
Level 1 स्तर 1
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) B-tree all leaves at same depth — height-balanced.
व्याख्या (हिन्दी) बी-वृक्ष की सभी पत्तियाँ समान गहराई पर - ऊँचाई-संतुलित।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।

Question 205

EN + हिं Hard
GB Key difference B-tree vs B+ tree?
IN बी-ट्री बनाम बी+ ट्री में मुख्य अंतर?
B+ always unbalanced B+ सदैव असंतुलित रहता है
B+ stores data only at leaves; B-tree at all nodes B+ डेटा को केवल पत्तों पर संग्रहीत करता है; सभी नोड्स पर बी-ट्री
B-tree uses more memory बी-ट्री अधिक मेमोरी का उपयोग करता है
B+ smaller order बी+ छोटा ऑर्डर
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) B+ tree: data pointers only at leaf nodes; B-tree: data at all levels.
व्याख्या (हिन्दी) बी+ ट्री: केवल लीफ नोड्स पर डेटा पॉइंटर्स; बी-ट्री: सभी स्तरों पर डेटा।
🎯 Exam Perspective
Data Structures and Algorithms से जुड़ा यह सवाल — difficulty level "Hard" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 206

EN + हिं Hard
GB B+ tree leaf nodes are connected as?
IN B+ ट्री लीफ नोड्स किस प्रकार जुड़े हुए हैं?
To root जड़ देना
Linked list of leaves पत्तों की लिंक्ड सूची
Randomly बेतरतीब
Nothing कुछ नहीं
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) B+ tree leaves are linked — enables efficient range queries.
व्याख्या (हिन्दी) बी+ पेड़ की पत्तियां जुड़ी हुई हैं - कुशल श्रेणी के प्रश्नों को सक्षम बनाती हैं।
🎯 Exam Perspective
SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Hard"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 207

EN + हिं Medium
GB Inorder traversal of BST gives?
IN BST का इनऑर्डर ट्रैवर्सल देता है?
Random sequence यादृच्छिक अनुक्रम
Sorted ascending order आरोही क्रम में क्रमबद्ध
Sorted descending order अवरोही क्रम में क्रमबद्ध
Reverse level order उलटा स्तर क्रम
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Inorder (Left-Root-Right) of BST always gives sorted ascending order.
व्याख्या (हिन्दी) बीएसटी का इनऑर्डर (बाएं-रूट-दाएं) हमेशा क्रमबद्ध आरोही क्रम देता है।
🎯 Exam Perspective
अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 208

EN + हिं Medium
GB Height of perfect binary tree with 15 nodes?
IN 15 नोड्स वाले पूर्ण बाइनरी ट्री की ऊंचाई?
2 2
3 3
4 4
5 5
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 2^(h+1)-1=15 → 2^(h+1)=16 → h+1=4 → h=3.
व्याख्या (हिन्दी) 2^(h+1)-1=15 → 2^(h+1)=16 → h+1=4 → h=3.
🎯 Exam Perspective
Data Structures and Algorithms के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 209

EN + हिं Medium
GB Maximum nodes in binary tree of height 4?
IN ऊंचाई 4 के बाइनरी ट्री में अधिकतम नोड्स?
15 15
31 31
16 16
8 8
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) 2^(4+1)-1=31.
व्याख्या (हिन्दी) 2^(4+1)-1=31.
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 210

EN + हिं Medium
GB Number of leaf nodes in perfect binary tree of height h?
IN ऊँचाई h के पूर्ण बाइनरी वृक्ष में पत्ती नोड्स की संख्या?
2h 2 एच
h+1 एच+1
2^h 2^एच
2^(h-1) 2^(एच-1)
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Leaf nodes in perfect binary tree of height h = 2^h.
व्याख्या (हिन्दी) ऊँचाई h = 2^h के पूर्ण बाइनरी ट्री में पत्ती नोड्स।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।