721 Question 721 EN + हिं GB What is the output: cout<<(0b1010 ^ 0b1100); IN आउटपुट क्या है: cout A 14 14 B 8 8 C 6 6 D 2 2 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1010^1100=0110=6. व्याख्या (हिन्दी) 1010^1100=0110=6. 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: int a=3,b=3; cout High cohesion and low coupling is: Which OOP concept is violated when a class has public d... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
722 Question 722 EN + हिं GB The output of: cout<<~0; IN का आउटपुट: कॉउट A -1 -1 C 1 1 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ~0 flips all bits of 0 = all 1s = -1 in two complement. व्याख्या (हिन्दी) ~0, 0 के सभी बिट्स = सभी 1s = -1 को दो पूरक में फ़्लिप करता है। 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: float f=3.14f; int i=*(int*)&f; is: What is cohesion in software design? Which is correct for checking if number is even without... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
723 Question 723 EN + हिं GB What is the output: int x=0x1234; cout<<((x>>8)&0xFF)<<" "<<(x&0xFF); IN आउटपुट क्या है: int x=0x1234; cout8)&0xFF) A 18 52 18 52 B 0x12 0x34 0x12 0x34 C 12 34 12 34 D 34 18 34 18 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) High byte: (0x1234>>8)&0xFF=0x12=18; Low byte: 0x34=52. व्याख्या (हिन्दी) उच्च बाइट: (0x1234>>8)&0xFF=0x12=18; निम्न बाइट: 0x34=52. 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions Which is correct for checking if number is even without... The output of: string s=""; for(int i=65;i The output of: int x=100; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
724 Question 724 EN + हिं GB The output of: float f=3.14f; int i=*(int*)&f; is: IN इसका आउटपुट: फ्लोट f=3.14f; int i=*(int*)&f; है: A 3 3 B 314 314 C A specific integer bit pattern (type punning) एक विशिष्ट पूर्णांक बिट पैटर्न (टाइप पनिंग) D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Type punning reinterprets float bits as int - UB in C++. व्याख्या (हिन्दी) टाइप पनिंग C++ में फ्लोट बिट्स को int - UB के रूप में पुनर्व्याख्यायित करता है। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is coupling in software design? What is cohesion in software design? The output of: int x=100; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
725 Question 725 EN + हिं Medium GB Which is correct for checking if number is even without %? IN यह जांचने के लिए कौन सा सही है कि संख्या % के बिना भी है या नहीं? A n%2==0 n%2==0 B (n&1)==0 (bitwise AND with 1 checks last bit) (n&1)==0 (बिटवाइज और अंतिम बिट 1 चेक के साथ) C n/2*2==n एन/2*2==एन D All equivalent सभी समकक्ष ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) All three methods check for even number. व्याख्या (हिन्दी) तीनों विधियाँ सम संख्या की जाँच करती हैं। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है — difficulty level "Medium", और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is coupling in software design? What is the output: cout What is the output: int x=0x1234; cout8)&0xFF) 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
726 Question 726 EN + हिं GB The output of: int a=3,b=3; cout<<(a==b && !(a^b)); IN का आउटपुट: int a=3,b=3; अदालत B 1 1 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 3==3 true AND !(3^3)=!(0)=true; both true = 1. व्याख्या (हिन्दी) 3==3 सत्य और !(3^3)=!(0)=सत्य; दोनों सत्य = 1. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: int x=0x1234; cout8)&0xFF) To divide by 8 using bit shift: The output of: cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
727 Question 727 EN + हिं Medium GB To multiply by 4 using bit shift: IN बिट शिफ्ट का उपयोग करके 4 से गुणा करने के लिए: A n*4 एन*4 B n<<2 (left shift by 2 = multiply by 2^2=4) एन C n>>2 n>>2 D n^4 एन^4 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) n<<2 is equivalent to n*4. व्याख्या (हिन्दी) एन 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions Which OOP concept is violated when a class has public d... High cohesion and low coupling is: Which is correct for checking if number is even without... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
728 Question 728 EN + हिं Medium GB To divide by 8 using bit shift: IN बिट शिफ्ट का उपयोग करके 8 से विभाजित करने के लिए: A n/8 एन/8 B n>>3 (right shift by 3 = divide by 2^3=8) n>>3 (3 से दायां बदलाव = 2^3=8 से भाग दें) C n<<3 एन D n&8 एन&8 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) n>>3 is equivalent to n/8 for positive n. व्याख्या (हिन्दी) n>>3 सकारात्मक n के लिए n/8 के बराबर है। 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions A God class (class that does everything) violates: What is the output: int x=0x1234; cout8)&0xFF) The output of: int a=3,b=3; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
729 Question 729 EN + हिं GB The output of: int x=100; cout<<(x/10)<<(x%10); IN का आउटपुट: int x=100; अदालत A 100 100 B 10 0 10 0 C 100 100 D 1 0 0 1 0 0 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) x/10=10, x%10=0; cout<<10<<0 = 100. व्याख्या (हिन्दी) x/10=10, x%10=0; अदालत 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions To multiply by 4 using bit shift: The output of: int a=3,b=3; cout What is cohesion in software design? 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
730 Question 730 EN + हिं GB The output of: string s=""; for(int i=65;i<70;i++) s+=(char)i; cout< IN इसका आउटपुट: स्ट्रिंग s=''; for(int i=65;i A ABCDE एबीसीडीई B abcde एबीसीडीई C 12345 12345 D EFGHI ईएफजीएचआई ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ASCII 65-69 = A,B,C,D,E. व्याख्या (हिन्दी) एएससीआईआई 65-69 = ए, बी, सी, डी, ई। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: int a=3,b=3; cout What is cohesion in software design? To multiply by 4 using bit shift: 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
731 Question 731 EN + हिं GB Which OOP concept is violated when a class has public data members? IN जब किसी वर्ग में सार्वजनिक डेटा सदस्य होते हैं तो किस OOP अवधारणा का उल्लंघन होता है? A Polymorphism बहुरूपता B Encapsulation (data hiding) एनकैप्सुलेशन (डेटा छिपाना) C Inheritance विरासत D Abstraction मतिहीनता ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Public data breaks encapsulation; should be private with accessors. व्याख्या (हिन्दी) सार्वजनिक डेटा एनकैप्सुलेशन तोड़ता है; एक्सेसर्स के साथ निजी होना चाहिए। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions To divide by 8 using bit shift: The output of: float f=3.14f; int i=*(int*)&f; is: High cohesion and low coupling is: 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
732 Question 732 EN + हिं Easy GB What is cohesion in software design? IN सॉफ़्टवेयर डिज़ाइन में सामंजस्य क्या है? A How modules are related मॉड्यूल कैसे संबंधित हैं B Degree to which a class/module has a single, focused purpose वह डिग्री जिस तक कक्षा/मॉड्यूल का एक ही, केंद्रित उद्देश्य होता है C Coupling between modules मॉड्यूल के बीच युग्मन D Number of methods विधियों की संख्या ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) High cohesion: class does one thing well. व्याख्या (हिन्दी) उच्च सामंजस्य: वर्ग एक काम अच्छी तरह से करता है। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Easy"। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: int x=0x1234; cout8)&0xFF) What is coupling in software design? The output of: string s=""; for(int i=65;i 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
733 Question 733 EN + हिं Easy GB What is coupling in software design? IN सॉफ़्टवेयर डिज़ाइन में कपलिंग क्या है? A Internal module focus आंतरिक मॉड्यूल फोकस B Degree of interdependence between modules (lower is better) मॉड्यूल के बीच परस्पर निर्भरता की डिग्री (कम बेहतर है) C Number of classes कक्षाओं की संख्या D Code complexity कोड जटिलता ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Low coupling: modules independent, easier to change. व्याख्या (हिन्दी) कम युग्मन: मॉड्यूल स्वतंत्र, बदलने में आसान। 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल — difficulty level "Easy" उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is cohesion in software design? The output of: string s=""; for(int i=65;i The output of: int a=3,b=3; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
734 Question 734 EN + हिं Medium GB High cohesion and low coupling is: IN उच्च सामंजस्य और निम्न युग्मन है: A Bad design ख़राब डिज़ाइन B Good design (focused modules, minimal interdependence) अच्छा डिज़ाइन (केंद्रित मॉड्यूल, न्यूनतम परस्पर निर्भरता) C Only for OOP केवल OOP के लिए D Only for large systems केवल बड़े सिस्टम के लिए ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) High cohesion + low coupling = maintainable, modular design. व्याख्या (हिन्दी) उच्च सामंजस्य + कम युग्मन = रखरखाव योग्य, मॉड्यूलर डिज़ाइन। 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं — difficulty level "Medium"। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: int x=100; cout The output of: cout What is the output: int x=0x1234; cout8)&0xFF) 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
735 Question 735 EN + हिं GB A God class (class that does everything) violates: IN एक ईश्वर वर्ग (वह वर्ग जो सब कुछ करता है) उल्लंघन करता है: A Open/Closed Principle खुला/बंद सिद्धांत B Single Responsibility Principle एकल उत्तरदायित्व सिद्धांत C Liskov Substitution लिस्कोव प्रतिस्थापन D Interface Segregation इंटरफ़ेस पृथक्करण ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) God class has too many responsibilities - SRP violation. व्याख्या (हिन्दी) ईश्वर वर्ग की बहुत अधिक जिम्मेदारियाँ हैं - एसआरपी उल्लंघन। 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is the output: cout The output of: int a=3,b=3; cout To divide by 8 using bit shift: 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)