466 Question 466 EN + हिं GB What is the output: int x=5; auto f=[x=move(x)](){return x;}; cout< IN आउटपुट क्या है: int x=5; ऑटो f=[x=move(x)](){रिटर्न x;}; अदालत A 55 55 B 50 50 C 05 05 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Move x into lambda (x=5 copied for int); original x becomes indeterminate; f()=5, x indeterminate. व्याख्या (हिन्दी) x को लैम्ब्डा में ले जाएँ (x=5 int के लिए कॉपी किया गया); मूल x अनिश्चित हो जाता है; f()=5, x अनिश्चित। 🎯 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: shared_ptr sp=make_shared(10); { shared_... The output of: array a={5,3,1,4,2}; sort(a.begin(),a.en... The output of: struct A{int x; auto getX(){return x;}};... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
467 Question 467 EN + हिं GB The output of: string s1="Hello"; string s2=move(s1); cout< IN इसका आउटपुट: स्ट्रिंग s1='हैलो'; स्ट्रिंग s2=move(s1); अदालत A 5 5 5 5 B 0 5 0 5 C 5 0 5 0 D 0 0 0 0 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) After move, s1 is empty (size 0); s2 has content (size 5). व्याख्या (हिन्दी) स्थानांतरित होने के बाद, s1 खाली है (आकार 0); s2 में सामग्री (आकार 5) है। 🎯 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: span s={1,2,3,4,5}; cout The output of: int arr[]={1,2,3,4,5}; span s(arr,3); co... The output of: set s={1,3,5,7,9}; auto it=s.upper_bound... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
468 Question 468 EN + हिं GB The output of: vector v1={1,2,3}; vector v2=move(v1); cout< IN का आउटपुट: वेक्टर v1={1,2,3}; वेक्टर v2=चाल(v1); अदालत A 3 3 3 3 B 0 3 0 3 C 3 0 3 0 D 0 0 0 0 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) After move, v1 is empty; v2 has 3 elements. व्याख्या (हिन्दी) स्थानांतरित होने के बाद, v1 खाली है; v2 में 3 तत्व हैं। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int arr[]={1,2,3,4,5}; span s(arr,3); co... The output of: auto f(int x,int y)->int{return x+y;} co... The output of: unique_ptr p=make_unique(42); unique_ptr... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
469 Question 469 EN + हिं GB The output of: unique_ptr p=make_unique(42); unique_ptr q=move(p); cout<<(p?"has":"null")<<(q?"has":"null"); IN का आउटपुट:unique_ptr p=make_unique(42); अद्वितीय_पीटीआर क्यू=मूव(पी); अदालत A hashas है है B nullhas नलहास C hasnull शून्य D nullnull शून्य-शून्य ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) After move, p is null; q has the value. व्याख्या (हिन्दी) चाल के बाद, p शून्य है; q का मान है. 🎯 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 What is the output: int x=5; auto f=[x=move(x)](){retur... The output of: span s={1,2,3,4,5}; cout The output of: map m={{1,1},{2,4},{3,9}}; auto it=m.low... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
470 Question 470 EN + हिं GB The output of: shared_ptr sp=make_shared(10); { shared_ptr sp2=sp; cout< IN इसका आउटपुट: share_ptr sp=make_shared(10); {shared_ptr sp2=sp; अदालत A 2 1 2 1 B 1 1 11 C 2 2 2 2 D 1 2 1 2 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Inside block: 2 owners; after block sp2 destroyed: 1 owner. व्याख्या (हिन्दी) अंदर का ब्लॉक: 2 मालिक; ब्लॉक एसपी2 नष्ट होने के बाद: 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: array a={5,3,1,4,2}; sort(a.begin(),a.en... The output of: span s={1,2,3,4,5}; cout The output of: struct A{int x; auto getX(){return x;}};... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
471 Question 471 EN + हिं GB What is the output: int x=5; decltype(x) y=10; cout< IN आउटपुट क्या है: int x=5; घोषणापत्र(x) y=10; अदालत A 5 5 B 10 10 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) decltype(x) = int; y=10. व्याख्या (हिन्दी) decltype(x) = int; y=10. 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: unique_ptr p=make_unique(42); unique_ptr... The output of: shared_ptr sp=make_shared(10); { shared_... The output of: array a={5,3,1,4,2}; sort(a.begin(),a.en... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
472 Question 472 EN + हिं GB The output of: auto f(int x,int y)->int{return x+y;} cout< IN इसका आउटपुट: auto f(int x,int y)->int{return x+y;} cout A 12 12 B 7 7 C 3 3 D 4 4 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Trailing return type; 3+4=7. व्याख्या (हिन्दी) अनुगामी वापसी प्रकार; 3+4=7. 🎯 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[]={1,2,3,4,5}; span s(arr,3); co... The output of: span s={1,2,3,4,5}; cout The output of: shared_ptr sp=make_shared(10); { shared_... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
473 Question 473 EN + हिं GB The output of: int x=10; int y=[&]{return x*2;}(); cout< IN का आउटपुट: int x=10; int y=[&]{रिटर्न x*2;}(); अदालत A 10 10 B 20 20 C Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) IIFE captures x=10; returns 20; y=20. व्याख्या (हिन्दी) IIFE x=10 को कैप्चर करता है; रिटर्न 20; y=20. 🎯 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: unique_ptr p=make_unique(42); unique_ptr... The output of: auto f(int x,int y)->int{return x+y;} co... What is the output: int x=5; auto f=[x=move(x)](){retur... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
474 Question 474 EN + हिं GB The output of: constexpr auto factorial=[](auto self,int n)->int{return n<=1?1:n*self(self,n-1);}; cout< IN इसका आउटपुट: constexpr auto Factorial=[](auto self,int n)->int{return n A 720 720 B 6 6 C 120 120 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Recursive lambda via self-reference; 6!=720. व्याख्या (हिन्दी) स्व-संदर्भ के माध्यम से पुनरावर्ती लैम्ब्डा; 6!=720. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: unique_ptr p=make_unique(42); unique_ptr... What is the output: int x=5; decltype(x) y=10; cout The output of: int x=10; int y=[&]{return x*2;}(); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
475 Question 475 EN + हिं GB The output of: struct A{int x; auto getX(){return x;}}; A a{42}; cout< IN का आउटपुट: struct A{int x; ऑटो getX(){रिटर्न x;}}; ए ए{42}; अदालत A Error गलती B 42 42 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) auto deduces int; returns x=42. व्याख्या (हिन्दी) ऑटो int घटाता है; x=42 लौटाता है। 🎯 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: map m={{1,1},{2,4},{3,9}}; auto it=m.low... The output of: span s={1,2,3,4,5}; cout The output of: shared_ptr sp=make_shared(10); { shared_... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
476 Question 476 EN + हिं GB The output of: int arr[]={1,2,3,4,5}; span s(arr,3); cout< IN इसका आउटपुट: int arr[]={1,2,3,4,5}; स्पैन s(arr,3); अदालत A 1 1 B 2 2 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) span covers first 3 elements; s[2]=arr[2]=3. व्याख्या (हिन्दी) स्पैन पहले 3 तत्वों को कवर करता है; s[2]=arr[2]=3. 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: constexpr auto factorial=[](auto self,in... The output of: auto f(int x,int y)->int{return x+y;} co... The output of: string s1="Hello"; string s2=move(s1); c... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
477 Question 477 EN + हिं GB The output of: span s={1,2,3,4,5}; cout< IN का आउटपुट: स्पैन s={1,2,3,4,5}; अदालत A 1 5 1 5 B 5 1 5 1 C 1 4 1 4 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) front()=1, back()=5. व्याख्या (हिन्दी) सामने()=1, पीछे()=5. 🎯 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: struct A{int x; auto getX(){return x;}};... The output of: int arr[]={1,2,3,4,5}; span s(arr,3); co... What is the output: int x=5; auto f=[x=move(x)](){retur... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
478 Question 478 EN + हिं GB The output of: array a={5,3,1,4,2}; sort(a.begin(),a.end()); cout< IN का आउटपुट: array a={5,3,1,4,2}; सॉर्ट करें (a.begin(),a.end()); अदालत A 15 15 B 51 51 C Error गलती D 52 52 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Sorted: {1,2,3,4,5}; a[0]=1, a[4]=5. व्याख्या (हिन्दी) क्रमबद्ध: {1,2,3,4,5}; ए[0]=1, ए[4]=5. 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: int x=5; auto f=[x=move(x)](){retur... The output of: vector v1={1,2,3}; vector v2=move(v1); c... The output of: string s1="Hello"; string s2=move(s1); c... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
479 Question 479 EN + हिं GB The output of: map m={{1,1},{2,4},{3,9}}; auto it=m.lower_bound(2); cout<first<second; IN इसका आउटपुट: मानचित्र m={{1,1},{2,4},{3,9}}; ऑटो इट=एम.लोअर_बाउंड(2); अदालत A 14 14 B 24 24 C 34 34 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) lower_bound(2) finds key>=2; first match is {2,4}. व्याख्या (हिन्दी) निचला_बाउंड(2) कुंजी>=2 ढूंढता है; पहला मैच {2,4} है। 🎯 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: array a={5,3,1,4,2}; sort(a.begin(),a.en... The output of: set s={1,3,5,7,9}; auto it=s.upper_bound... The output of: int x=10; int y=[&]{return x*2;}(); cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
480 Question 480 EN + हिं GB The output of: set s={1,3,5,7,9}; auto it=s.upper_bound(5); cout<<*it; IN का आउटपुट: सेट s={1,3,5,7,9}; ऑटो इट=एस.अपर_बाउंड(5); अदालत A 5 5 B 6 6 C 7 7 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) upper_bound(5) finds first element >5 = 7. व्याख्या (हिन्दी) अपर_बाउंड(5) पहला तत्व >5 = 7 ढूँढता है। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: unique_ptr p=make_unique(42); unique_ptr... The output of: struct A{int x; auto getX(){return x;}};... The output of: auto f(int x,int y)->int{return x+y;} co... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)