Data Structures and Algorithms — MCQ Practice

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

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

Question 1

EN + हिं Easy
GB What is linear search also called?
IN रैखिक खोज को क्या कहा जाता है?
Binary search द्विआधारी खोज
Sequential search अनुक्रमिक खोज
Hash search हैश खोज
Jump search कूदो खोज
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Linear search = sequential search (checks elements one by one).
व्याख्या (हिन्दी) रैखिक खोज = अनुक्रमिक खोज (एक-एक करके तत्वों की जाँच करता है)।
🎯 Exam Perspective
Data Structures and Algorithms ("Searching Algorithms" sub-topic) से जुड़ा यह सवाल — difficulty level "Easy" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो।

Question 2

EN + हिं Hard
GB Best case time complexity of linear search?
IN रैखिक खोज का सर्वोत्तम मामला समय जटिलता?
O(n) पर)
O(log n) ओ(लॉग एन)
O(1) हे(1)
O(n²) ओ(एन²)
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) O(1) when desired element is at first position.
व्याख्या (हिन्दी) O(1) जब वांछित तत्व पहले स्थान पर हो।
🎯 Exam Perspective
UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms ("Searching Algorithms" sub-topic) से सवाल अक्सर पूछे जाते हैं — difficulty level "Hard"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें।

Question 3

EN + हिं Hard
GB Worst case time complexity of linear search?
IN रैखिक खोज की सबसे खराब स्थिति समय जटिलता?
O(1) हे(1)
O(log n) ओ(लॉग एन)
O(n log n) ओ(एन लॉग एन)
O(n) पर)
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) O(n) when element is last or not present.
व्याख्या (हिन्दी) O(n) जब तत्व अंतिम है या मौजूद नहीं है।
🎯 Exam Perspective
अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Searching Algorithms" sub-topic) का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Hard"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें।

Question 4

EN + हिं Medium
GB For what list size is linear search most suitable?
IN रैखिक खोज किस सूची आकार के लिए सबसे उपयुक्त है?
Very large (>10000) बहुत बड़ा (>10000)
Smaller lists (<100) छोटी सूचियाँ (
Sorted lists only केवल क्रमबद्ध सूचियाँ
Lists with duplicates डुप्लिकेट वाली सूचियाँ
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Linear search is practical only for smaller lists.
व्याख्या (हिन्दी) रैखिक खोज केवल छोटी सूचियों के लिए व्यावहारिक है।
🎯 Exam Perspective
Data Structures and Algorithms ("Searching Algorithms" sub-topic) के इस प्रश्न को — difficulty level "Medium" कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें।

Question 5

EN + हिं Easy
GB What does linear search return if element not found?
IN यदि तत्व नहीं मिला तो रैखिक खोज क्या लौटाती है?
None कोई नहीं
-1 -1
False असत्य
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) By convention, linear search returns -1 when element is not found.
व्याख्या (हिन्दी) परंपरा के अनुसार, तत्व नहीं मिलने पर रैखिक खोज -1 लौटाती है।
🎯 Exam Perspective
यह सवाल Data Structures and Algorithms ("Searching Algorithms" sub-topic) category का है — difficulty level "Easy", और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें।

Question 6

EN + हिं Hard
GB Average case time complexity of linear search?
IN रैखिक खोज की औसत केस समय जटिलता?
O(1) हे(1)
O(log n) ओ(लॉग एन)
O(n) पर)
O(n²) ओ(एन²)
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) Average O(n) — element found at middle after n/2 comparisons.
व्याख्या (हिन्दी) औसत O(n) - n/2 तुलना के बाद मध्य में पाया गया तत्व।
🎯 Exam Perspective
यह प्रश्न Data Structures and Algorithms ("Searching Algorithms" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Hard"। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें।