481 Question 481 EN + हिं GB The output of: multiset ms={1,2,2,3,3,3}; cout< IN इसका आउटपुट: मल्टीसेट ms={1,2,2,3,3,3}; अदालत A 1 1 B 2 2 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Three 3s in multiset. व्याख्या (हिन्दी) मल्टीसेट में तीन 3s. 🎯 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 The output of: vector v={1,2,3}; v.assign(0); cout The output of: list l={3,1,4,1,5}; l.sort(); l.unique()... The output of: vector v={1,2,3,4,5}; auto r=remove_if(v... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
482 Question 482 EN + हिं GB The output of: multimap mm; mm.insert({1,"a"}); mm.insert({1,"b"}); mm.insert({2,"c"}); cout< IN इसका आउटपुट: मल्टीमैप मिमी; mm.insert({1,"a"}); mm.insert({1,"b"}); mm.insert({2,"c"}); अदालत A 1 1 B 2 2 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Two entries with key 1. व्याख्या (हिन्दी) कुंजी 1 के साथ दो प्रविष्टियाँ। 🎯 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: class A{public:void f()const{cout The output of: vector v={1,2,3}; v.assign(0); cout The output of: list l={3,1,4,1,5}; l.sort(); l.unique()... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
483 Question 483 EN + हिं GB The output of: int x=42; const int &cr=x; x=100; cout< IN का आउटपुट: int x=42; स्थिरांक int &cr=x; x=100; अदालत A 42 42 B 100 100 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) cr is const ref to x; when x changes, cr reflects it. व्याख्या (हिन्दी) सीआर x के लिए स्थिरांक रेफरी है; जब x बदलता है, तो cr इसे दर्शाता है। 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int arr[5]; fill(arr,arr+5,7); cout The output of: auto r=views::iota(6)|views::transform([... The output of: vector v={1,2,3}; v.assign(0); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
484 Question 484 EN + हिं GB The output of: const int x=5; int *p=const_cast(&x); *p=10; cout< IN का आउटपुट: const int x=5; int *p=const_cast(&x); *पी=10; अदालत A 5 or 10 5 या 10 B 10 10 C 5 (modifying const is UB) 5 (संशोधित स्थिरांक यूबी है) D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Modifying a const variable via const_cast is undefined behavior. व्याख्या (हिन्दी) const_cast के माध्यम से const वैरिएबल को संशोधित करना अपरिभाषित व्यवहार है। 🎯 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: int arr[5]; fill(arr,arr+5,7); cout The output of: int x=42; const int &cr=x; x=100; cout The output of: list l={1,2,3,4,5}; l.remove(3); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
485 Question 485 EN + हिं GB The output of: class A{public:void f()const{cout<<"const";}void f(){cout<<"non-const";}}; const A a; a.f(); IN इसका आउटपुट: क्लास ए {पब्लिक: शून्य एफ() कॉन्स्ट {काउट A non-const गैर स्थिरांक B const कॉन्स्ट C Error गलती D Ambiguous अस्पष्ट ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) const object calls const overload. व्याख्या (हिन्दी) कॉन्स्ट ऑब्जेक्ट कॉन्स्ट ओवरलोड को कॉल करता है। 🎯 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: vector v={1,2,3,4,5}; auto r=remove_if(v... The output of: vector v={1,2,3}; v.assign(0); cout The output of: auto r=views::iota(6)|views::transform([... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
486 Question 486 EN + हिं GB The output of: class A{public:void f()const{cout<<"C";}void f(){cout<<"N";}}; A a; a.f(); IN इसका आउटपुट: क्लास ए {पब्लिक: शून्य एफ() कॉन्स्ट {काउट A C सी B N एन C Error गलती D CN सीएन ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Non-const object calls non-const overload. व्याख्या (हिन्दी) नॉन-कॉन्स्ट ऑब्जेक्ट नॉन-कॉन्स्ट ओवरलोड को कॉल करता है। 🎯 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 arr[5]; fill(arr,arr+5,7); cout The output of: int n=2; while(n The output of: vector v={1,2,3,4,5}; auto r=remove_if(v... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
487 Question 487 EN + हिं GB The output of: int arr[5]; fill(arr,arr+5,7); cout< IN The output of: int arr[5]; भरें(arr,arr+5,7); अदालत A 77 77 C Error गलती D 5 5 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) fill sets all to 7; arr[0]=7, arr[4]=7. व्याख्या (हिन्दी) सभी सेटों को 7 तक भरें; आगमन[0]=7, आगमन[4]=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: vector v={1,2,3,4,5}; auto r=remove_if(v... The output of: int n=2; while(n The output of: vector v={1,2,3}; v.assign(0); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
488 Question 488 EN + हिं GB The output of: vector v={1,2,3}; v.assign(0); cout< IN का आउटपुट: वेक्टर v={1,2,3}; v.असाइन(0); अदालत A 30 30 B 50 50 C 35 35 D 05 05 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) assign(0): 5 elements all 0; size=5, v[0]=0. व्याख्या (हिन्दी) असाइन करें(0): 5 तत्व सभी 0; size=5, v[0]=0. 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: vector v={1,2,3,4,5}; auto r=remove_if(v... The output of: multimap mm; mm.insert({1,"a"}); mm.inse... forward_list vs list in C++: 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
489 Question 489 EN + हिं GB The output of: list l={1,2,3,4,5}; l.remove(3); cout< IN का आउटपुट: सूची l={1,2,3,4,5}; एल.निकालें(3); अदालत A 5 5 B 4 4 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) remove(3) erases element with value 3; size=4. व्याख्या (हिन्दी) हटाएं(3) मान 3 वाले तत्व को मिटा देता है; आकार=4. 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions forward_list vs list in C++: The output of: vector v={1,2,3}; v.assign(0); cout The output of: multimap mm; mm.insert({1,"a"}); mm.inse... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
490 Question 490 EN + हिं GB The output of: list l={3,1,4,1,5}; l.sort(); l.unique(); cout< IN का आउटपुट: सूची l={3,1,4,1,5}; एल.सॉर्ट(); एल.अद्वितीय(); अदालत A 4 4 B 5 5 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) sorted {1,1,3,4,5}; unique removes duplicate 1: {1,3,4,5} = 4. व्याख्या (हिन्दी) क्रमबद्ध {1,1,3,4,5}; अद्वितीय डुप्लिकेट 1 को हटाता है: {1,3,4,5} = 4। 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: class A{public:void f()const{cout forward_list vs list in C++: The output of: list l={1,2,3,4,5}; l.remove(3); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
491 Question 491 EN + हिं GB The output of: vector v={1,2,3,4,5}; auto r=remove_if(v.begin(),v.end(),[](int x){return x%2==0;}); v.erase(r,v.end()); cout< IN का आउटपुट: वेक्टर v={1,2,3,4,5}; ऑटो r=remove_if(v.begin(),v.end(),[](int x){return x%2==0;}); v.erase(r,v.end()); अदालत A 3 3 B 2 2 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Remove even {2,4}; remaining odd {1,3,5} = 3. व्याख्या (हिन्दी) सम {2,4} हटाएं; शेष विषम {1,3,5} = 3. 🎯 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: multiset ms={1,2,2,3,3,3}; cout The output of: list l={3,1,4,1,5}; l.sort(); l.unique()... The output of: forward_list fl={1,2,3}; fl.push_front(0... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
492 Question 492 EN + हिं GB The output of: forward_list fl={1,2,3}; fl.push_front(0); cout< IN इसका आउटपुट: फ़ॉर्वर्ड_लिस्ट fl={1,2,3}; fl.push_front(0); अदालत A 1 1 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) push_front adds 0; front=0. व्याख्या (हिन्दी) पुश_फ़्रंट 0 जोड़ता है; सामने=0. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int x=42; const int &cr=x; x=100; cout The output of: vector v={1,2,3}; v.assign(0); cout The output of: const int x=5; int *p=const_cast(&x); *p... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
493 Question 493 EN + हिं Medium GB forward_list vs list in C++: IN C++ में फ़ॉर्वर्ड_लिस्ट बनाम सूची: A Same thing एक ही बात B forward_list is singly-linked (no backward traversal, less memory) फॉरवर्ड_लिस्ट एकल-लिंक्ड है (कोई बैकवर्ड ट्रैवर्सल नहीं, कम मेमोरी) C forward_list is doubly-linked फॉरवर्ड_लिस्ट डबल-लिंक्ड है D list is faster सूची तेज़ है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) forward_list: singly-linked, only forward iteration. व्याख्या (हिन्दी) फ़ॉरवर्ड_लिस्ट: एकल-लिंक्ड, केवल फ़ॉरवर्ड पुनरावृत्ति। 🎯 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 न हो। 🔗 Related Questions The output of: vector v={1,2,3}; v.assign(0); cout The output of: list l={3,1,4,1,5}; l.sort(); l.unique()... The output of: vector v={1,2,3,4,5}; auto r=remove_if(v... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
494 Question 494 EN + हिं GB The output of: auto r=views::iota(6)|views::transform([](int x){return x*x;})|views::take(3); for(auto x:r)cout< IN का आउटपुट: ऑटो r=views::iota(6)|views::transform([](int x){return x*x;})|views::take(3); for(auto x:r)cout A 1 4 9 1 4 9 B 1 4 9 16 25 1 4 9 16 25 C 4 9 16 4 9 16 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) iota 1-5, squared: 1,4,9,16,25; take(3): 1,4,9. व्याख्या (हिन्दी) आयोटा 1-5, वर्ग: 1,4,9,16,25; ले(3): 1,4,9. 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions forward_list vs list in C++: The output of: multiset ms={1,2,2,3,3,3}; cout The output of: int x=42; const int &cr=x; x=100; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
495 Question 495 EN + हिं GB The output of: int n=2; while(n<=100){cout< IN का आउटपुट: int n=2; जबकि(एन A 2 4 8 16 32 64 2 4 8 16 32 64 B 2 4 8 16 32 64 128 2 4 8 16 32 64 128 C 1 2 4 8 1 2 4 8 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Powers of 2 up to 100: 2,4,8,16,32,64. व्याख्या (हिन्दी) 2 की घातें 100 तक: 2,4,8,16,32,64. 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: list l={3,1,4,1,5}; l.sort(); l.unique()... The output of: vector v={1,2,3}; v.assign(0); cout The output of: int arr[5]; fill(arr,arr+5,7); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)