586 Question 586 EN + हिं GB What is the output: class C{public:static int n; C(){n++;}}; int C::n=0; C a,b,c; cout< IN आउटपुट क्या है: क्लास सी{पब्लिक:स्टैटिक इंट एन; सी(){n++;}}; int C::n=0; सी ए, बी, सी; अदालत B 1 1 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Three objects created; each constructor increments n. व्याख्या (हिन्दी) तीन वस्तुएं बनाई गईं; प्रत्येक कंस्ट्रक्टर एन बढ़ाता है। 🎯 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: struct Point{int x,y;}; Point p={3,4}; c... The output of: enum class Day{Mon=1,Tue,Wed}; cout The output of: string s="Hello World"; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
587 Question 587 EN + हिं GB The output of: class C{int x; public: void set(int a){x=a;} int get(){return x;} }; C c; c.set(42); cout< IN का आउटपुट: वर्ग C{int x; सार्वजनिक: शून्य सेट (int a) {x = a;} int get() {रिटर्न x; } }; सी सी; सी.सेट(42); अदालत A Error गलती B 42 42 D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) set/get member functions work correctly. व्याख्या (हिन्दी) सदस्य फ़ंक्शंस सेट/प्राप्त करें सही ढंग से काम करते हैं। 🎯 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: auto v=vector{1,2,3,4,5}; auto sum=reduc... The output of: vector v={1,2,3,4,5}; int prod=1; for_ea... The output of: struct Point{int x,y;}; Point p={3,4}; c... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
588 Question 588 EN + हिं GB The output of: class A{public:int f(){return 1;}}; class B:public A{public:int f(){return 2;}}; B b; cout< IN इसका आउटपुट: क्लास ए{पब्लिक:इंट एफ(){रिटर्न 1;}}; कक्षा बी:सार्वजनिक ए{सार्वजनिक:int f(){वापसी 2;}}; बी बी; अदालत A 21 21 B 12 12 C 11 11 D 22 22 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) b.f() calls B::f()=2; b.A::f() explicitly calls A::f()=1. व्याख्या (हिन्दी) b.f() कॉल B::f()=2; b.A::f() स्पष्ट रूप से A::f()=1 को कॉल करता है। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: union U{int i; float f; }; U u; u.i=10;... The output of: vector v={1,2,3,4,5}; auto r=v|views::fi... The output of: enum class Day{Mon=1,Tue,Wed}; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
589 Question 589 EN + हिं GB The output of: struct Point{int x,y;}; Point p={3,4}; cout< IN इसका आउटपुट: struct प्वाइंट{int x,y;}; बिंदु p={3,4}; अदालत A Error गलती B 3 4 3 4 C 4 3 4 3 D 0 0 0 0 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Aggregate initialization: p.x=3, p.y=4. व्याख्या (हिन्दी) समग्र आरंभीकरण: p.x=3, p.y=4. 🎯 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: class A{public:int f(){return 1;}}; clas... The output of: int n=100; cout The output of: enum Color{Red=1,Green=2,Blue=4}; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
590 Question 590 EN + हिं GB The output of: union U{int i; float f; }; U u; u.i=10; cout< IN The output of: union U{int i; फ्लोट एफ; }; उ उ; यू.आई=10; अदालत A 10 10 B Error गलती C Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Last written member i=10; reading u.i is valid. व्याख्या (हिन्दी) अंतिम लिखित सदस्य i=10; u.i पढ़ना मान्य है. 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: using namespace std; auto gcd=[](int a,i... The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i The output of: vector v={1,2,3,4,5}; int prod=1; for_ea... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
591 Question 591 EN + हिं GB The output of: enum Color{Red=1,Green=2,Blue=4}; cout<<(Red|Blue); IN इसका आउटपुट: enum Color{Red=1,Green=2,Blue=4}; अदालत A 5 5 B 3 3 C 6 6 D 1 1 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1|4=5 (bitwise OR of enum values). व्याख्या (हिन्दी) 1|4=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: class C{public:static int n; C(){n+... The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i The output of: union U{int i; float f; }; U u; u.i=10;... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
592 Question 592 EN + हिं GB The output of: enum class Day{Mon=1,Tue,Wed}; cout<<(int)Day::Wed; IN का आउटपुट: एनम क्लास दिन{सोम=1,मंगल,बुध}; अदालत A 3 3 B 2 2 C 1 1 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Wed = 3 (Mon=1, Tue=2, Wed=3). व्याख्या (हिन्दी) बुध = 3 (सोम=1, मंगल=2, बुध=3)। 🎯 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: vector v={1,2,3,4,5}; int prod=1; for_ea... The output of: struct Point{int x,y;}; Point p={3,4}; c... The output of: string s="Hello World"; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
593 Question 593 EN + हिं GB The output of: int x=5; auto f=[x]()mutable{return ++x;}; cout< IN का आउटपुट: int x=5; ऑटो f=[x]()म्यूटेबल{रिटर्न++x;}; अदालत A 675 675 B 67 5 67 5 C 565 565 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) First call captures copy x=5, increments to 6; second call x=6, increments to 7; original x=5. व्याख्या (हिन्दी) पहली कॉल कैप्चर कॉपी x=5, वेतन वृद्धि 6; दूसरी कॉल x=6, 7 तक वृद्धि; मूल x=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: using namespace std; auto gcd=[](int a,i... The output of: enum Color{Red=1,Green=2,Blue=4}; cout The output of: union U{int i; float f; }; U u; u.i=10;... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
594 Question 594 EN + हिं GB The output of: auto v=vector{1,2,3,4,5}; auto sum=reduce(v.begin(),v.end()); cout< IN का आउटपुट: ऑटो v=वेक्टर{1,2,3,4,5}; स्वत: योग=कम(v.begin(),v.end()); अदालत A 15 15 B 10 10 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) reduce sums all: 1+2+3+4+5=15. व्याख्या (हिन्दी) सभी योगों को कम करें: 1+2+3+4+5=15. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: vector v={1,2,3,4,5}; int prod=1; for_ea... The output of: class A{public:int f(){return 1;}}; clas... The output of: using namespace std; auto gcd=[](int a,i... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
595 Question 595 EN + हिं GB The output of: vector v={1,2,3,4,5}; auto r=v|views::filter([](int x){return x>3;})| views::transform([](int x){return x*x;}); for(auto x:r)cout< IN का आउटपुट: वेक्टर v={1,2,3,4,5}; ऑटो r=v|व्यूज़::फ़िल्टर([](int x){रिटर्न x>3;})| दृश्य::परिवर्तन([](int x){रिटर्न x*x;}); for(auto x:r)cout A 16 25 16 25 B 4 5 4 5 C 9 16 25 9 16 25 D 1 4 9 1 4 9 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Filter x>3: {4,5}; transform x*x: {16,25}. व्याख्या (हिन्दी) फ़िल्टर x>3: {4,5}; रूपांतर x*x: {16,25}। 🎯 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: class A{public:int f(){return 1;}}; clas... The output of: enum Color{Red=1,Green=2,Blue=4}; cout The output of: int x=5; auto f=[x]()mutable{return ++x;... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
596 Question 596 EN + हिं GB The output of: using namespace std; auto gcd=[](int a,int b){while(b){a%=b; swap(a,b);} return a;}; cout< IN इसका आउटपुट: नेमस्पेस एसटीडी का उपयोग करना; ऑटो gcd=[](int a,int b){जबकि(b){a%=b; स्वैप(ए,बी);} रिटर्न ए;}; अदालत A 14 14 B 7 7 C 28 28 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) GCD(56,98)=14. व्याख्या (हिन्दी) जीसीडी(56,98)=14. 🎯 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: enum Color{Red=1,Green=2,Blue=4}; cout The output of: struct Point{int x,y;}; Point p={3,4}; c... The output of: vector v={1,2,3,4,5}; int prod=1; for_ea... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
597 Question 597 EN + हिं GB The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i<=5;i++) for(int j=i;j<=5;j++) dp[j]+=dp[j-i]; cout< IN The output of: int dp[6]={0}; डीपी[0]=1; for(int i=1;i A 5 5 B 7 7 C 10 10 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Coin change ways for 5 with coins {1,2,3,4,5}=7. व्याख्या (हिन्दी) सिक्कों के साथ 5 के लिए सिक्के बदलने के तरीके {1,2,3,4,5}=7। 🎯 Exam Perspective अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: string s="Hello World"; cout The output of: class C{int x; public: void set(int a){x... The output of: struct Point{int x,y;}; Point p={3,4}; c... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
598 Question 598 EN + हिं GB The output of: string s="Hello World"; cout< IN इसका आउटपुट: स्ट्रिंग s='हैलो वर्ल्ड'; अदालत A 5 5 B 6 6 C 4 4 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) find(" ")=5; size=11; 11-5-1=5 (length of "World"). व्याख्या (हिन्दी) ढूंढें(" ")=5; आकार=11; 11-5-1=5 ("विश्व" की लंबाई)। 🎯 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: using namespace std; auto gcd=[](int a,i... The output of: union U{int i; float f; }; U u; u.i=10;... The output of: enum Color{Red=1,Green=2,Blue=4}; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
599 Question 599 EN + हिं GB The output of: vector v={1,2,3,4,5}; int prod=1; for_each(v.begin(),v.end(),[&](int x){prod*=x;}); cout< IN का आउटपुट: वेक्टर v={1,2,3,4,5}; पूर्णांक उत्पाद=1; for_each(v.begin(),v.end(),[&](int x){prod*=x;}); अदालत A 15 15 B 120 120 C 5 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Product: 1*2*3*4*5=120. व्याख्या (हिन्दी) उत्पाद: 1*2*3*4*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: auto v=vector{1,2,3,4,5}; auto sum=reduc... The output of: enum Color{Red=1,Green=2,Blue=4}; cout What is the output: class C{public:static int n; C(){n+... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
600 Question 600 EN + हिं GB The output of: int n=100; cout<<(int)log2(n)+1; IN इसका आउटपुट: int n=100; अदालत A 6 6 B 7 7 C 8 8 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) log2(100)≈6.64; (int)=6; 6+1=7. व्याख्या (हिन्दी) लॉग2(100)≈6.64; (int)=6; 6+1=7. 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC CGL, IBPS, RRB और State-level परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int dp[6]={0}; dp[0]=1; for(int i=1;i The output of: vector v={1,2,3,4,5}; int prod=1; for_ea... The output of: class A{public:int f(){return 1;}}; clas... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)