136 Question 136 EN + हिं GB What is the output: int a[]={5,4,3,2,1}; make_heap(begin(a),end(a),greater()); cout< IN आउटपुट क्या है: int a[]={5,4,3,2,1}; make_heap(शुरू(a),end(a),greater()); अदालत A 1 1 B 5 5 C Compile error संकलन त्रुटि D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) greater() makes min-heap. a[0]=1. Output: 1. व्याख्या (हिन्दी) ग्रेटर() मिन-हीप बनाता है। ए[0]=1. आउटपुट: 1. 🎯 Exam Perspective OOP Using C++ ("Arrays" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे Railway, SSC, Banking और Defence परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: vector v={1,2,3,4,5}; cout What is the output: vector v={1,2,2,3,3,3}; mapfreq; fo... What is the output: int a[]={1,2,3,4,5}; auto r=ranges:... 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
137 Question 137 EN + हिं GB What is the output: int a[]={1,2,3,4,5}; next_permutation(a,a+5); next_permutation(a,a+5); cout< IN आउटपुट क्या है: int a[]={1,2,3,4,5}; अगला_क्रमपरिवर्तन(ए,ए+5); अगला_क्रमपरिवर्तन(ए,ए+5); अदालत A 54 54 B 45 45 C Compile error संकलन त्रुटि D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1st next: {1,2,3,5,4}; 2nd next: {1,2,4,3,5}. a[3]=3,a[4]=5. Output: 35. व्याख्या (हिन्दी) पहला अगला: {1,2,3,5,4}; दूसरा अगला: {1,2,4,3,5}। ए[3]=3,ए[4]=5. आउटपुट: 35. 🎯 Exam Perspective यह सवाल OOP Using C++ ("Arrays" sub-topic) category का है, और SSC, Railway, Banking और State PCS के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the output: vector v={1,2,3,4,5}; cout What is the output: int a[]={1,2,3,4,5}; auto r=ranges:... What is the output: vector v={1,2,2,3,3,3}; mapfreq; fo... 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
138 Question 138 EN + हिं GB What is the output: vector v={1,2,2,3,3,3}; mapfreq; for(int x:v) freq[x]++; cout< IN आउटपुट क्या है: वेक्टर v={1,2,2,3,3,3}; मैपफ्रीक; for(int x:v) freq[x]++; अदालत A 3 3 B 2 2 C Compile error संकलन त्रुटि D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 3 appears 3 times. Output: 3. व्याख्या (हिन्दी) 3 3 बार प्रकट होता है. आउटपुट: 3. 🎯 Exam Perspective यह प्रश्न OOP Using C++ ("Arrays" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: int a[]={5,4,3,2,1}; make_heap(begi... What is the output: int a[]={1,2,3,4,5}; auto r=ranges:... What is the output: vector v={1,2,3,4,5}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
139 Question 139 EN + हिं GB What is the output: int a[]={1,2,3,4,5}; auto r=ranges::max_element(a); cout<<*r; IN आउटपुट क्या है: int a[]={1,2,3,4,5}; ऑटो r=श्रेणियाँ::max_element(a); अदालत A 5 5 B 1 1 C Compile error संकलन त्रुटि D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Max=5. Output: 5. व्याख्या (हिन्दी) अधिकतम=5. आउटपुट: 5. 🎯 Exam Perspective OOP Using C++ ("Arrays" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the output: int a[]={5,4,3,2,1}; make_heap(begi... What is the output: int a[]={1,2,3,4,5}; next_permutati... What is the output: vector v={1,2,3,4,5}; cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
140 Question 140 EN + हिं GB What is the output: vector v={1,2,3,4,5}; cout<{}); IN आउटपुट क्या है: वेक्टर v={1,2,3,4,5}; अदालत A 120 120 B 15 15 C Compile error संकलन त्रुटि D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1*1*2*3*4*5=120. Output: 120. व्याख्या (हिन्दी) 1*1*2*3*4*5=120. आउटपुट: 120. 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में OOP Using C++ ("Arrays" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: vector v={1,2,2,3,3,3}; mapfreq; fo... What is the output: int a[]={1,2,3,4,5}; next_permutati... What is the output: int a[]={1,2,3,4,5}; auto r=ranges:... 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)