331 Question 331 EN + हिं GB The output of: array a; a.fill(7); cout< IN का आउटपुट: सरणी ए; ए.फिल(7); अदालत A 5 5 B 7 7 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) fill(7) sets all elements to 7. व्याख्या (हिन्दी) fill(7) सभी तत्वों को 7 पर सेट करता है। 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: int x=10; auto f=[&x]()->int&{return x;}... What is the output: struct A{int x; A(int x):x(x){} A(A... The output of: bitset bs("10110100"); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
332 Question 332 EN + हिं GB The output of: bitset<8> bs(170); cout< IN का आउटपुट: बिटसेट बीएस(170); अदालत A 10101010 10101010 B 01010101 01010101 C 11111111 11111111 D 00000000 00000000 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 170 = 10101010 in binary. व्याख्या (हिन्दी) 170 = 10101010 बाइनरी में। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: int x=10; auto f=[=]()mutable->int&... The output of: array a; a.fill(7); cout The output of: int x=10; auto f=[&x]()->int&{return x;}... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
333 Question 333 EN + हिं GB The output of: bitset<8> bs("10110100"); cout< IN का आउटपुट: बिटसेट बीएस ("10110100"); अदालत A 4 4 B 3 3 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 10110100 has 4 set bits. व्याख्या (हिन्दी) 10110100 में 4 सेट बिट हैं। 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: vector v(5); generate(v.begin(),v.end(),... The output of: bitset a("1010"), b("1100"); cout The output of: int x=0; function f=[&](int n){return n 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
334 Question 334 EN + हिं Medium GB bitset::flip() does: IN बिटसेट::फ्लिप() करता है: A Removes all bits सभी बिट्स हटा देता है B Flips all bits (0 to 1 and 1 to 0) सभी बिट्स को फ़्लिप करता है (0 से 1 और 1 से 0) C Flips one bit एक बिट फ़्लिप करता है D Resets to 0 0 पर रीसेट करता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) flip() complements all bits. व्याख्या (हिन्दी) फ्लिप() सभी बिट्स का पूरक है। 🎯 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 जरूर पढ़ें। 🔗 Related Questions The output of: bitset a("1010"), b("1100"); cout The output of: bitset bs("10110100"); cout The output of: bitset a("1010"), b("1100"); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
335 Question 335 EN + हिं GB The output of: bitset<4> a("1010"), b("1100"); cout<<(a&b); IN का आउटपुट: बिटसेट a("1010"), b("1100"); अदालत A 1000 1000 B 0010 0010 C 1110 1110 D 0100 0100 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1010&1100=1000. व्याख्या (हिन्दी) 1010&1100=1000. 🎯 Exam Perspective यह सवाल Data Structures and Algorithms ("Introduction to DSA" sub-topic) category का है, और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: bitset a("1010"), b("1100"); cout What is the output: bitset bs(42); cout The output of: bitset a("1010"), b("1100"); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
336 Question 336 EN + हिं GB The output of: bitset<4> a("1010"), b("1100"); cout<<(a|b); IN का आउटपुट: बिटसेट a("1010"), b("1100"); अदालत A 1110 1110 B 1010 1010 C 1100 1100 D 0110 0110 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1010|1100=1110. व्याख्या (हिन्दी) 1010|1100=1110. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: vector v(5); generate(v.begin(),v.end(),... The output of: class C{public:int operator()(int x){ret... The output of: bitset a("1010"), b("1100"); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
337 Question 337 EN + हिं GB The output of: bitset<4> a("1010"), b("1100"); cout<<(a^b); IN का आउटपुट: बिटसेट a("1010"), b("1100"); अदालत A 0110 0110 B 1110 1110 C 0010 0010 D 1000 1000 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1010^1100=0110. व्याख्या (हिन्दी) 1010^1100=0110. 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions bitset::flip() does: The output of: class C{public:int operator()(int x){ret... The output of: cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
338 Question 338 EN + हिं GB What is the output: bitset<8> bs(42); cout< IN आउटपुट क्या है: बिटसेट बीएस(42); अदालत A 00101010 00101010 B 10101000 10101000 C 00110100 00110100 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 42 = 00101010 in 8-bit binary. व्याख्या (हिन्दी) 8-बिट बाइनरी में 42 = 00101010। 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: cout The output of: bitset a("1010"), b("1100"); cout What is the output: int x=10; auto f=[=]()mutable->int&... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
339 Question 339 EN + हिं GB The output of: cout<(0xFF); IN का आउटपुट: कॉउट A 11111111 11111111 B 00000000 00000000 C 10101010 10101010 D 01010101 01010101 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 0xFF = 255 = all 8 bits set. व्याख्या (हिन्दी) 0xFF = 255 = सभी 8 बिट्स सेट। 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: bitset bs("10110100"); cout The output of: int x=10; auto f=[&x]()->int&{return x;}... The output of: bitset a("1010"), b("1100"); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
340 Question 340 EN + हिं GB The output of: vector v(5); generate(v.begin(),v.end(),[n=0]()mutable{return n++;} ); cout< IN का आउटपुट: वेक्टर v(5); generate(v.begin(),v.end(),[n=0]()mutable{return n++;} ); अदालत A 3 3 B 4 4 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) generates 0,1,2,3,4; v[3]=3. व्याख्या (हिन्दी) 0,1,2,3,4 उत्पन्न करता है; वी[3]=3. 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: array a; a.fill(7); cout The output of: bitset bs("10110100"); cout The output of: bitset a("1010"), b("1100"); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
341 Question 341 EN + हिं GB The output of: int x=0; function f=[&](int n){return n<=0?x:(x+=n,f(n-1));}; cout< IN का आउटपुट: int x=0; फ़ंक्शन f=[&](int n){रिटर्न n A 15 15 B 5 5 C 10 10 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Recursive lambda via std::function: 5+4+3+2+1=15. व्याख्या (हिन्दी) std::function के माध्यम से पुनरावर्ती लैम्ब्डा: 5+4+3+2+1=15। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms ("Introduction to DSA" sub-topic) category का है, और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: array a; a.fill(7); cout The output of: class C{public:int operator()(int x){ret... The output of: bitset a("1010"), b("1100"); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
342 Question 342 EN + हिं GB What is the output: struct A{int x; A(int x):x(x){} A(A&&a):x(move(a.x)){cout<<"M";} }; A a(1); A b(move(a)); IN आउटपुट क्या है: struct A{int x; A(int x):x(x){} A(A&&a):x(move(a.x)){cout A M printed एम मुद्रित B No output उत्पादन नही C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Move constructor called; prints M. व्याख्या (हिन्दी) मूव कंस्ट्रक्टर को बुलाया गया; एम प्रिंट करता है 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int x=0; function f=[&](int n){return n The output of: bitset bs("10110100"); cout The output of: cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
343 Question 343 EN + हिं GB What is the output: int x=10; auto f=[=]()mutable->int&{return x;}; f()=20; cout< IN आउटपुट क्या है: int x=10; ऑटो f=[=]()mutable->int&{return x;}; एफ()=20; अदालत A 20 20 B 10 10 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Lambda captures by value; returning reference to copy; original x unchanged. व्याख्या (हिन्दी) लैम्ब्डा मूल्य के आधार पर कब्जा करता है; प्रतिलिपि का संदर्भ लौटाना; मूल x अपरिवर्तित. 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions bitset::flip() does: What is the output: bitset bs(42); cout The output of: int x=0; function f=[&](int n){return n 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
344 Question 344 EN + हिं GB The output of: int x=10; auto f=[&x]()->int&{return x;}; f()=20; cout< IN का आउटपुट: int x=10; ऑटो f=[&x]()->int&{return x;}; एफ()=20; अदालत A 10 10 B 20 20 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Lambda captures x by reference; f()=20 modifies original x. व्याख्या (हिन्दी) लैम्ब्डा संदर्भ द्वारा x को कैप्चर करता है; f()=20 मूल x को संशोधित करता है। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: int x=10; auto f=[=]()mutable->int&... The output of: vector v(5); generate(v.begin(),v.end(),... What is the output: struct A{int x; A(int x):x(x){} A(A... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
345 Question 345 EN + हिं GB The output of: class C{public:int operator()(int x){return x*x;} }; C sq; cout< IN इसका आउटपुट: वर्ग C{सार्वजनिक:int ऑपरेटर()(int x){रिटर्न x*x;} }; सी वर्ग; अदालत A 2516 2516 B 254 254 C 25 16 25 16 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) sq(5)=25; sq(2)=4; sq(4)=16; 25 then 16: 2516. व्याख्या (हिन्दी) वर्ग(5)=25; वर्ग(2)=4; वर्ग(4)=16; 25 फिर 16:2516. 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is the output: int x=10; auto f=[=]()mutable->int&... The output of: bitset bs("10110100"); cout The output of: vector v(5); generate(v.begin(),v.end(),... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)