391 Question 391 EN + हिं GB What is the output: promise p; future f=p.get_future(); thread t([&p]{p.set_value(42);}); t.join(); cout< IN आउटपुट क्या है: वादा पी; भविष्य f=p.get_future(); थ्रेड t([&p]{p.set_value(42);}); टी.जुड़ें(); अदालत B 42 42 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Promise sets value; future.get() receives it. व्याख्या (हिन्दी) वादा मूल्य निर्धारित करता है; Future.get() इसे प्राप्त करता है। 🎯 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: auto v=views::iota(6)|views::filter([](i... What is the output: template struct Factorial{enum{valu... The output of: auto f=async(launch::async,[]{return 42;... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
392 Question 392 EN + हिं GB The output of: auto f=async(launch::async,[]{return 42;}); cout< IN का आउटपुट: auto f=async(launch::async,[]{return 42;}); अदालत B 42 42 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) async runs lambda in thread; f.get() returns 42. व्याख्या (हिन्दी) async थ्रेड में लैम्ब्डा चलाता है; f.get() 42 लौटाता है। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: namespace A{void f(){cout The output of: optional o=5; cout Init captures in C++14 lambda [y=expr]: 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
393 Question 393 EN + हिं GB The output of: packaged_task pt([](){return 99;}); auto f=pt.get_future(); pt(); cout< IN इसका आउटपुट: packaged_task pt([](){return 99;}); ऑटो f=pt.get_future(); पीटी(); अदालत B 99 99 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) packaged_task wraps callable; invoke it; get result via future. व्याख्या (हिन्दी) पैकेज्ड_टास्क कॉल करने योग्य रैप्स; इसका आह्वान करें; भविष्य के माध्यम से परिणाम प्राप्त करें। 🎯 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: optional o=5; cout The output of: namespace A{void f(){cout What is the output: template struct TypeName{static con... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
394 Question 394 EN + हिं GB What is the output: int x=5; auto f=[x=x*2]{return x;}; cout< IN आउटपुट क्या है: int x=5; ऑटो f=[x=x*2]{रिटर्न x;}; अदालत A 5 5 B 10 10 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Init capture x=x*2=10; lambda returns 10. व्याख्या (हिन्दी) इनिट कैप्चर x=x*2=10; लैम्ब्डा रिटर्न 10. 🎯 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: int a=1,b=2; auto [x,y]={a,b}; cout The output of: namespace A{int x=1;} namespace B{int x=... The output of: packaged_task pt([](){return 99;}); auto... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
395 Question 395 EN + हिं Medium GB Init captures in C++14 lambda [y=expr]: IN C++14 लैम्ब्डा में Init कैप्चर [y=expr]: A Capture y by name y को नाम से पकड़ें B Capture and initialize new variable y with expr एक्सपीआर के साथ नए वेरिएबल y को कैप्चर और इनिशियलाइज़ करें C Copy capture कैप्चर कॉपी करें D Reference capture संदर्भ कैप्चर ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) [y = expr] creates new variable y inside lambda. व्याख्या (हिन्दी) [y = expr] लैम्ब्डा के अंदर नया वेरिएबल y बनाता है। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms ("Introduction to DSA" sub-topic) category का है — difficulty level "Medium", और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: optional o=5; cout The output of: namespace A{void f(){cout Template metaprogramming Fibonacci: Fib::value = 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
396 Question 396 EN + हिं GB The output of: auto f=[i=0]()mutable{return i++;}; cout< IN इसका आउटपुट: auto f=[i=0]()mutable{return i++;}; अदालत A 000 000 B 012 012 C 123 123 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Mutable lambda with init capture; i goes 0,1,2. व्याख्या (हिन्दी) इनिट कैप्चर के साथ म्यूटेबल लैम्ब्डा; मैं 0,1,2 जाता हूँ। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: namespace A{void f(){cout What is the output: vector v(10); iota(v.begin(),v.end(... The output of: int a=1,b=2; auto [x,y]={a,b}; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
397 Question 397 EN + हिं GB What is the output: vector v(10); iota(v.begin(),v.end(),1); auto sum=reduce(execution::par,v.begin(),v.end()); cout< IN आउटपुट क्या है: वेक्टर v(10); iota(v.begin(),v.end(),1); स्वत: योग=कम(निष्पादन::बराबर,v.begin(),v.end()); अदालत A 55 55 B 45 45 C 50 50 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1+2+...+10=55 (parallel reduce). व्याख्या (हिन्दी) 1+2+...+10=55 (समानांतर घटाएँ)। 🎯 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: auto f=[i=0]()mutable{return i++;}; cout The output of: namespace A{int x=1;} namespace B{int x=... Template metaprogramming Fibonacci: Fib::value = 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
398 Question 398 EN + हिं GB The output of: auto v=views::iota(6)|views::filter([](int x){return x%2!=0;}) |views::transform([](int x){return x*x;}); for(auto x:v)cout< IN का आउटपुट: auto v=views::iota(6)|views::filter([](int x){return x%2!=0;}) |views::transform([](int x){return x*x;}); for(ऑटो x:v)cout A 1 9 25 1 9 25 B 4 16 4 16 C 1 4 9 16 25 1 4 9 16 25 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Odd numbers {1,3,5} squared: {1,9,25}. व्याख्या (हिन्दी) विषम संख्याएं {1,3,5} वर्ग: {1,9,25}। 🎯 Exam Perspective SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: template struct Factorial{enum{valu... The output of: int a=1,b=2; auto [x,y]={a,b}; cout The output of: namespace A{int x=1;} namespace B{int x=... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
399 Question 399 EN + हिं GB The output of: namespace A{int x=1;} namespace B{int x=2;} cout< IN इसका आउटपुट: नेमस्पेस A{int x=1;} नेमस्पेस B{int x=2;} कोउट A 12 12 B 21 21 C 11 11 D 22 22 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) A::x=1, B::x=2. व्याख्या (हिन्दी) ए::x=1, बी::x=2. 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is the output: int x=5; auto f=[x=x*2]{return x;};... The output of: optional o=5; cout What is the output: template struct TypeName{static con... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
400 Question 400 EN + हिं GB The output of: namespace A{void f(){cout<<"A";}} namespace B{void f(){cout<<"B";}} using namespace A; f(); IN इसका आउटपुट: नेमस्पेस A{void f(){cout A A ए B B बी C Error गलती D AB अब ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) using namespace A brings f into scope; calls A::f. व्याख्या (हिन्दी) नेमस्पेस ए का उपयोग एफ को दायरे में लाता है; ए::एफ को कॉल करता है। 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: template struct TypeName{static con... What is the output: vector v(10); iota(v.begin(),v.end(... The output of: auto f=[i=0]()mutable{return i++;}; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
401 Question 401 EN + हिं GB What is the output: template struct Factorial{enum{value=N*Factorial::value};}; template<> struct Factorial<0>{enum{value=1};}; cout<::value; IN आउटपुट क्या है: टेम्पलेट संरचना Factorial{enum{value=N*Facttorial::value};}; टेम्प्लेट संरचना फ़ैक्टोरियल{enum{value=1};}; अदालत A 5 5 B 120 120 C Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) TMP factorial: 5!=120 computed at compile time. व्याख्या (हिन्दी) टीएमपी फैक्टोरियल: 5!=120 संकलन समय पर गणना की गई। 🎯 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: namespace A{void f(){cout The output of: auto v=views::iota(6)|views::filter([](i... What is the output: promise p; future f=p.get_future();... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
402 Question 402 EN + हिं Medium GB Template metaprogramming Fibonacci: Fib<7>::value = IN टेम्प्लेट मेटाप्रोग्रामिंग फाइबोनैचि: Fib::value = A 13 13 B 21 21 C 8 8 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) TMP Fibonacci: F(7)=13. व्याख्या (हिन्दी) टीएमपी फाइबोनैचि: एफ(7)=13। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है — difficulty level "Medium"। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: template struct Factorial{enum{valu... What is the output: int x=5; auto f=[x=x*2]{return x;};... The output of: namespace A{void f(){cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
403 Question 403 EN + हिं GB What is the output: template struct TypeName{static const char* get(){return "unknown";}}; template<> struct TypeName{static const char* get(){return "int";}}; cout<::get(); IN आउटपुट क्या है: टेम्प्लेट स्ट्रक्चर टाइपनेम {स्टैटिक कॉन्स चार * गेट () {रिटर्न "अज्ञात";}}; टेम्प्लेट संरचना प्रकारनाम{स्थिर स्थिरांक चार* प्राप्त(){वापसी "int";}}; अदालत A unknown अज्ञात B int int यहाँ C Error गलती D T टी ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Template specialization for int returns "int". व्याख्या (हिन्दी) इंट के लिए टेम्पलेट विशेषज्ञता "इंट" लौटाती है। 🎯 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: auto v=views::iota(6)|views::filter([](i... Template metaprogramming Fibonacci: Fib::value = What is the output: vector v(10); iota(v.begin(),v.end(... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
404 Question 404 EN + हिं GB The output of: int a=1,b=2; auto [x,y]={a,b}; cout< IN का आउटपुट: int a=1,b=2; ऑटो [x,y]={a,b}; अदालत A 12 12 B 21 21 C Error गलती D Depends निर्भर करता है ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Structured binding: x=1, y=2. व्याख्या (हिन्दी) संरचित बाइंडिंग: x=1, y=2. 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: namespace A{void f(){cout What is the output: vector v(10); iota(v.begin(),v.end(... The output of: packaged_task pt([](){return 99;}); auto... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
405 Question 405 EN + हिं GB The output of: optional o=5; cout< IN का आउटपुट: वैकल्पिक o=5; अदालत B 5 5 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) o has value 5; value_or returns 5. व्याख्या (हिन्दी) o का मान 5 है; value_or रिटर्न 5. 🎯 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: template struct TypeName{static con... What is the output: vector v(10); iota(v.begin(),v.end(... The output of: auto f=[i=0]()mutable{return i++;}; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)