406 Question 406 EN + हिं GB The output of: class A{public:int x; A(int x):x(x){}}; A a(5); cout< IN का आउटपुट: क्लास ए {सार्वजनिक: int x; A(int x):x(x){}}; ए ए(5); अदालत A Error गलती B 5 5 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) x is public; direct access gives x=5. व्याख्या (हिन्दी) x सार्वजनिक है; सीधी पहुंच x=5 देती है। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: int f(int n){return n The output of: int a[]={1,2,3,4,5}; cout The output of: int power(int b,int e){return e==0?1:b*p... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
407 Question 407 EN + हिं GB The output of: int f(int n){return n<=1 ? 1 : n*f(n-1);} cout< IN इसका आउटपुट: int f(int n){return n A 120 120 B 24 24 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 5! = 5*4*3*2*1 = 120. व्याख्या (हिन्दी) 5! = 5*4*3*2*1 = 120. 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: string s="abcabc"; cout The output of: int f(int n){return n The output of: class A{public:int x; A(int x):x(x){}};... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
408 Question 408 EN + हिं GB The output of: int f(int n){return n<=1 ? n : f(n-1)+f(n-2);} cout< IN इसका आउटपुट: int f(int n){return n A 13 13 B 21 21 C 8 8 D 34 34 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Fibonacci: F(7)=13. व्याख्या (हिन्दी) फाइबोनैचि: एफ(7)=13. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: class A{public:int x; A(int x):x(x){}};... What is the output: int x=42; cout The output of: int arr[]={5,3,8,1,9,2}; sort(arr,arr+6)... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
409 Question 409 EN + हिं GB The output of: int gcd(int a,int b){return b==0?a:gcd(b,a%b);} cout< IN इसका आउटपुट: int gcd(int a,int b){return b==0?a:gcd(b,a%b);} cout A 6 6 B 3 3 C 9 9 D 18 18 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) GCD(18)=GCD(12)=GCD(6)=GCD(0)=6. व्याख्या (हिन्दी) जीसीडी(18)=जीसीडी(12)=जीसीडी(6)=जीसीडी(0)=6. 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: int arr[]={5,3,8,1,9,2}; sort(arr,arr+6)... The output of: cout The output of: vector v={3,1,4,1,5,9}; sort(v.begin(),v... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
410 Question 410 EN + हिं GB The output of: int power(int b,int e){return e==0?1:b*power(b,e-1);} cout< IN इसका आउटपुट: int power(int b,int e){return e==0?1:b*power(b,e-1);} cout A 128 128 B 256 256 C 64 64 D 512 512 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 2^8=256. व्याख्या (हिन्दी) 2^8=256. 🎯 Exam Perspective SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: class A{public:int x; A(int x):x(x){}};... The output of: cout The output of: int gcd(int a,int b){return b==0?a:gcd(b... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
411 Question 411 EN + हिं Medium GB Fast power (exponentiation by squaring) computes a^n in: IN तीव्र शक्ति (वर्गीकरण द्वारा घातांक) a^n की गणना करता है: A O(n) पर) B O(log n) ओ(लॉग एन) C O(n^2) ओ(एन^2) D O(1) हे(1) ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Square the base for even exponents: O(log n). व्याख्या (हिन्दी) सम घातांक के लिए आधार का वर्ग करें: O(लॉग एन)। 🎯 Exam Perspective अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है — difficulty level "Medium"। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int f(int n){return n The output of: int power(int b,int e){return e==0?1:b*p... The output of: int a[]={1,2,3,4,5}; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
412 Question 412 EN + हिं GB The output of: int arr[]={5,3,8,1,9,2}; sort(arr,arr+6); cout< IN इसका आउटपुट: int arr[]={5,3,8,1,9,2}; क्रमबद्ध करें (arr,arr+6); अदालत A 1 9 1 9 B 5 2 5 2 C 9 1 9 1 D 3 8 3 8 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Sorted ascending: arr[0]=1, arr[5]=9. व्याख्या (हिन्दी) आरोही क्रम में क्रमबद्ध: arr[0]=1, arr[5]=9। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: int power(int b,int e){return e==0?1:b*p... The output of: string s="Hello World"; transform(s.begi... The output of: int gcd(int a,int b){return b==0?a:gcd(b... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
413 Question 413 EN + हिं GB The output of: int arr[]={1,2,3,4,5}; cout<<*max_element(arr,arr+5)<<" "<<*min_element(arr,arr+5); IN इसका आउटपुट: int arr[]={1,2,3,4,5}; अदालत A 5 1 5 1 B 1 5 1 5 C 3 1 3 1 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Max=5, Min=1. व्याख्या (हिन्दी) अधिकतम=5, न्यूनतम=1. 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: vector v={1,2,3}; v.resize(5); cout What is the output: int x=42; cout The output of: int f(int n){return n 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
414 Question 414 EN + हिं GB The output of: string s="Hello World"; transform(s.begin(),s.end(),s.begin(),toupper); cout< IN इसका आउटपुट: स्ट्रिंग s='हैलो वर्ल्ड'; परिवर्तन(s.begin(),s.end(),s.begin(),toupper); अदालत A hello world हैलो वर्ल्ड B HELLO WORLD हैलो वर्ल्ड C Hello World हैलो वर्ल्ड D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) toupper converts each char to uppercase. व्याख्या (हिन्दी) टॉपर प्रत्येक अक्षर को अपरकेस में परिवर्तित करता है। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: cout The output of: int a[]={1,2,3,4,5}; cout The output of: int power(int b,int e){return e==0?1:b*p... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
415 Question 415 EN + हिं GB The output of: vector v={1,2,3}; v.resize(5); cout< IN का आउटपुट: वेक्टर v={1,2,3}; v.आकार बदलें(5); अदालत A Error गलती C 3 3 D Garbage कचरा ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) resize(5) adds 2 zero-initialized elements. व्याख्या (हिन्दी) आकार बदलें (5) 2 शून्य-प्रारंभिक तत्व जोड़ता है। 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: int f(int n){return n The output of: string s="Hello World"; transform(s.begi... The output of: cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
416 Question 416 EN + हिं GB The output of: string s="abcabc"; cout< IN इसका आउटपुट: स्ट्रिंग s='abcabc'; अदालत A 1 1 B 2 2 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Two a characters in "abcabc". व्याख्या (हिन्दी) "एबीसीएबीसी" में दो अक्षर। 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: vector v={1,2,3}; v.resize(5); cout The output of: int arr[]={5,3,8,1,9,2}; sort(arr,arr+6)... The output of: int f(int n){return n 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
417 Question 417 EN + हिं GB The output of: cout<2)<<" "<<(2>3); IN का आउटपुट: कॉउट A 1 0 1 0 B true false सच्चा झूठ C True False सच्चा झूठ D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) boolalpha mode: true/false words. व्याख्या (हिन्दी) बूलल्फा मोड: सही/गलत शब्द। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int arr[]={1,2,3,4,5}; cout The output of: int power(int b,int e){return e==0?1:b*p... The output of: int f(int n){return n 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
418 Question 418 EN + हिं GB What is the output: int x=42; cout< IN आउटपुट क्या है: int x=42; अदालत A 2a 42 2ए 42 B 42 2a 42 2ए C 0x2a 42 0x2a 42 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 42 in hex = 2a; then back to decimal = 42. व्याख्या (हिन्दी) हेक्स में 42 = 2ए; फिर दशमलव पर वापस = 42. 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: cout The output of: int power(int b,int e){return e==0?1:b*p... The output of: int arr[]={5,3,8,1,9,2}; sort(arr,arr+6)... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
419 Question 419 EN + हिं GB The output of: int a[]={1,2,3,4,5}; cout< IN इसका आउटपुट: int a[]={1,2,3,4,5}; अदालत A 5 5 B 4 4 C 20 20 D 1 1 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 20 bytes total / 4 bytes per int = 5 elements. व्याख्या (हिन्दी) कुल 20 बाइट्स / 4 बाइट्स प्रति इंट = 5 तत्व। 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the output: int x=42; cout The output of: vector v={1,2,3}; v.resize(5); cout The output of: vector v={3,1,4,1,5,9}; sort(v.begin(),v... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
420 Question 420 EN + हिं GB The output of: vector v={3,1,4,1,5,9}; sort(v.begin(),v.end()); v.erase(unique(v.begin(),v.end()),v.end()); cout< IN का आउटपुट: वेक्टर v={3,1,4,1,5,9}; क्रमबद्ध करें (v.begin(),v.end()); v.erase(unique(v.begin(),v.end()),v.end()); अदालत A 5 5 B 6 6 C 4 4 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) After removing duplicate 1: {1,3,4,5,9} = 5 elements. व्याख्या (हिन्दी) डुप्लिकेट 1 को हटाने के बाद: {1,3,4,5,9} = 5 तत्व। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int f(int n){return n The output of: int a[]={1,2,3,4,5}; cout The output of: string s="abcabc"; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)