691 Question 691 EN + हिं GB The output of: int arr[5]={1,2,3,4,5}; reverse(arr,arr+5); cout< IN इसका आउटपुट: int arr[5]={1,2,3,4,5}; रिवर्स(arr,arr+5); अदालत A 51 51 B 15 15 C 11 11 D 55 55 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Reversed: arr[0]=5, arr[4]=1. व्याख्या (हिन्दी) उलटा: arr[0]=5, arr[4]=1. 🎯 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,4,5}; cout What is the output: auto sp=make_shared(42); cout The output of: thread t1([]{cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
692 Question 692 EN + हिं GB What is the output: vector v={3,1,4,1,5,9,2,6}; sort(v.begin(),v.end()); cout<<*(lower_bound(v.begin(),v.end(),5)); IN आउटपुट क्या है: वेक्टर v={3,1,4,1,5,9,2,6}; क्रमबद्ध करें (v.begin(),v.end()); अदालत A 4 4 B 5 5 C 6 6 D 9 9 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Sorted: {1,1,2,3,4,5,6,9}; lower_bound(5) points to 5. व्याख्या (हिन्दी) क्रमबद्ध: {1,1,2,3,4,5,6,9}; लोअर_बाउंड(5) 5 को इंगित करता है। 🎯 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: int* arr=new int[5]{1,2,3,4,5}; cou... The output of: int a=5,b=10; if(a>b) swap(a,b); cout The output of: vector v={1,2,3,4,5}; transform(v.begin(... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
693 Question 693 EN + हिं GB The output of: int a=5,b=10; if(a>b) swap(a,b); cout< IN का आउटपुट: int a=5,b=10; अगर(ए>बी) स्वैप(ए,बी); अदालत A 5 10 5 10 B 10 5 10 5 C 5 5 5 5 D 10 10 10 10 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 5>10 is false; no swap; a=5, b=10. व्याख्या (हिन्दी) 5>10 गलत है; कोई अदला-बदली नहीं; ए=5, बी=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: int arr[5]={1,2,3,4,5}; reverse(arr,arr+... The output of: int arr[5]={10,20,30,40,50}; auto [mn,mx... The output of: auto sp=make_shared(5); weak_ptr wp=sp;... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
694 Question 694 EN + हिं GB The output of: vector v={1,2,3,4,5}; transform(v.begin(),v.end(),v.begin(),[](int x){return x*x;}); cout< IN का आउटपुट: वेक्टर v={1,2,3,4,5}; ट्रांसफ़ॉर्म(v.begin(),v.end(),v.begin(),[](int x){रिटर्न x*x;}); अदालत A 5 5 B 25 25 C 20 20 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 5^2=25. व्याख्या (हिन्दी) 5^2=25. 🎯 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: auto sp=make_shared(42); auto sp2=sp; co... What is the output: vector v={3,1,4,1,5,9,2,6}; sort(v.... The output of: int arr[5]={1,2,3,4,5}; reverse(arr,arr+... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
695 Question 695 EN + हिं GB The output of: int arr[5]={10,20,30,40,50}; auto [mn,mx]=minmax_element(arr,arr+5); cout<<*mn<<" "<<*mx; IN इसका आउटपुट: int arr[5]={10,20,30,40,50}; ऑटो [mn,mx]=minmax_element(arr,arr+5); अदालत A 10 50 10 50 B 50 10 50 10 C 20 40 20 40 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) min=10, max=50. व्याख्या (हिन्दी) न्यूनतम=10, अधिकतम=50। 🎯 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: int a=5,b=10; if(a>b) swap(a,b); cout The output of: vector v={1,2,3,4,5}; cout The output of: auto ptr=make_unique(5); ptr[2]=42; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
696 Question 696 EN + हिं GB The output of: vector v={1,2,3,4,5}; cout<()); IN का आउटपुट: वेक्टर v={1,2,3,4,5}; अदालत A 120 120 B 15 15 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1*1*2*3*4*5=120. व्याख्या (हिन्दी) 1*1*2*3*4*5=120. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: auto sp=make_shared(42); cout The output of: thread t1([]{cout What is the output: vector v={3,1,4,1,5,9,2,6}; sort(v.... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
697 Question 697 EN + हिं Medium GB C++ placement new syntax: IN C++ प्लेसमेंट नया सिंटैक्स: A new T; नया टी; B new(ptr) T(args); नया(पीटीआर) टी(आर्ग); C alloc T at ptr; पीटीआर पर टी आवंटित करें; D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Placement new constructs T at pre-allocated memory ptr. व्याख्या (हिन्दी) पूर्व-आवंटित मेमोरी पीटीआर पर नए निर्माण टी को प्लेसमेंट। 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) से जुड़ा यह सवाल — difficulty level "Medium" उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: auto sp=make_shared(10); auto sp2=sp; *s... The output of: vector v={1,2,3,4,5}; cout The output of: auto ptr=make_unique(5); ptr[2]=42; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
698 Question 698 EN + हिं GB What is the output: int* arr=new int[5]{1,2,3,4,5}; cout< IN आउटपुट क्या है: int* arr=new int[5]{1,2,3,4,5}; अदालत A 2 2 B 3 3 C 1 1 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) arr[2]=3. व्याख्या (हिन्दी) गिरफ्तार[2]=3. 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: vector v={3,1,4,1,5,9,2,6}; sort(v.... C++ placement new syntax: The output of: int arr[5]={1,2,3,4,5}; reverse(arr,arr+... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
699 Question 699 EN + हिं GB The output of: auto ptr=make_unique(5); ptr[2]=42; cout< IN इसका आउटपुट: auto ptr=make_unique(5); पीटीआर[2]=42; अदालत A Error गलती B 42 42 D 5 5 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) unique_ptr supports subscript; ptr[2]=42. व्याख्या (हिन्दी) यूनिक_पीटीआर सबस्क्रिप्ट का समर्थन करता है; पीटीआर[2]=42. 🎯 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: atomic x=0; thread t1([&]{for(int i... The output of: vector v={1,2,3,4,5}; cout The output of: auto sp=make_shared(42); auto sp2=sp; co... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
700 Question 700 EN + हिं GB The output of: auto sp=make_shared(10); auto sp2=sp; *sp=20; cout<<*sp2; IN इसका आउटपुट: auto sp=make_shared(10); ऑटो sp2=sp; *एसपी=20; अदालत A 10 10 B 20 20 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) sp and sp2 share same object; *sp=20 modifies it; *sp2=20. व्याख्या (हिन्दी) एसपी और एसपी2 एक ही वस्तु साझा करते हैं; *sp=20 इसे संशोधित करता है; *sp2=20. 🎯 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: auto sp=make_shared(42); cout The output of: auto sp=make_shared(5); weak_ptr wp=sp;... The output of: int arr[5]={10,20,30,40,50}; auto [mn,mx... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
701 Question 701 EN + हिं GB The output of: auto sp=make_shared(5); weak_ptr wp=sp; sp.reset(); cout< IN इसका आउटपुट: auto sp=make_shared(5); कमजोर_पीटीआर wp=sp; एसपी.रीसेट(); अदालत B 1 1 C Error गलती D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) sp reset to null; count=0; object deleted; wp.expired()=true=1. व्याख्या (हिन्दी) एसपी शून्य पर रीसेट हो गया; गिनती=0; ऑब्जेक्ट हटा दिया गया; wp.समाप्त()=सत्य=1. 🎯 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: int arr[5]={1,2,3,4,5}; reverse(arr,arr+... The output of: auto sp=make_shared(10); auto sp2=sp; *s... The output of: auto sp=make_shared(42); auto sp2=sp; co... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
702 Question 702 EN + हिं GB What is the output: auto sp=make_shared(42); cout< IN आउटपुट क्या है: auto sp=make_shared(42); अदालत B 1 1 C 2 2 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) One owner sp; use_count=1. व्याख्या (हिन्दी) एक मालिक एसपी; उपयोग_गिनती=1. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: atomic x=0; thread t1([&]{for(int i... The output of: vector v={1,2,3,4,5}; transform(v.begin(... The output of: vector v={1,2,3,4,5}; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
703 Question 703 EN + हिं GB The output of: auto sp=make_shared(42); auto sp2=sp; cout< IN इसका आउटपुट: auto sp=make_shared(42); ऑटो sp2=sp; अदालत A 1 1 B 2 2 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Two owners sp and sp2; use_count=2. व्याख्या (हिन्दी) दो मालिक एसपी और एसपी2; उपयोग_गिनती=2. 🎯 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: int arr[5]={1,2,3,4,5}; reverse(arr,arr+... The output of: vector v={1,2,3,4,5}; cout What is the output: atomic x=0; thread t1([&]{for(int i... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
704 Question 704 EN + हिं GB The output of: thread t1([]{cout<<"A";}); thread t2([]{cout<<"B";}); t1.join(); t2.join(); output is: IN इसका आउटपुट: थ्रेड t1([]{cout A AB always एबी हमेशा B BA always बीए हमेशा C AB or BA (non-deterministic) एबी या बीए (गैर-नियतात्मक) D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Thread execution order is non-deterministic. व्याख्या (हिन्दी) थ्रेड निष्पादन आदेश गैर-नियतात्मक है। 🎯 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: int a=5,b=10; if(a>b) swap(a,b); cout The output of: auto sp=make_shared(42); auto sp2=sp; co... What is the output: int* arr=new int[5]{1,2,3,4,5}; cou... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
705 Question 705 EN + हिं GB What is the output: atomic x=0; thread t1([&]{for(int i=0;i<1000;i++)x++;}); thread t2([&]{for(int i=0;i<1000;i++)x++;}); t1.join(); t2.join(); cout< IN आउटपुट क्या है: परमाणु x=0; थ्रेड t1([&]{for(int i=0;i A 1000 1000 B 2000 2000 C Undefined (race condition) अपरिभाषित (दौड़ की स्थिति) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) atomic prevents race; 2000 increments guaranteed. व्याख्या (हिन्दी) परमाणु दौड़ को रोकता है; 2000 वेतन वृद्धि की गारंटी. 🎯 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 a=5,b=10; if(a>b) swap(a,b); cout The output of: int arr[5]={1,2,3,4,5}; reverse(arr,arr+... The output of: auto sp=make_shared(10); auto sp2=sp; *s... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)