436 Question 436 EN + हिं GB The output of: int n=153; int sum=0,tmp=n; while(tmp){int d=tmp%10; sum+=d*d*d; tmp/=10;} cout<<(sum==n?"Armstrong":"Not"); IN इसका आउटपुट: int n=153; int sum=0,tmp=n; जबकि(tmp){int d=tmp%10; योग+=घ*घ*घ; tmp/=10;} कोउट A Not नहीं B Armstrong आर्मस्ट्रांग C 153 153 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1^3+5^3+3^3=1+125+27=153; Armstrong number. व्याख्या (हिन्दी) 1^3+5^3+3^3=1+125+27=153; आर्मस्ट्रांग संख्या. 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions What is the output: int x=10; void* p=&x; cout The output of: int n=6; int sum=0; for(int i=1;i The output of: struct Point{int x,y;}; Point p={3,4}; c... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
437 Question 437 EN + हिं GB The output of: int n=6; int sum=0; for(int i=1;i IN का आउटपुट: int n=6; पूर्णांक योग=0; for(int i=1;i A Not नहीं B Perfect उत्तम C 6 6 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Divisors of 6: 1+2+3=6; perfect number. व्याख्या (हिन्दी) 6 के भाजक: 1+2+3=6; उत्तम संख्या. 🎯 Exam Perspective यह सवाल Data Structures and Algorithms category का है, और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the output: class C{public:static int n; C(){n+... The output of: class C{int x; public: void set(int a){x... The output of: int a=5; { int a=10; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
438 Question 438 EN + हिं GB What is the output: int x=10; void* p=&x; cout<<*(int*)p; IN आउटपुट क्या है: int x=10; शून्य* पी=&x; अदालत A Error गलती B 10 10 C Address पता ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Cast void* back to int*; dereference gives 10. व्याख्या (हिन्दी) शून्य* को वापस int* पर कास्ट करें; डीरेफ़रेंस 10 देता है। 🎯 Exam Perspective यह प्रश्न Data Structures and Algorithms की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int a=5; { int a=10; cout The output of: union U{int i; float f; }; U u; u.i=10;... What is the output: class C{public:static int n; C(){n+... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
439 Question 439 EN + हिं GB The output of: int arr[]={1,2,3,4,5}; int *p=arr; cout< IN इसका आउटपुट: int arr[]={1,2,3,4,5}; int *p=arr; अदालत A 1 1 B 2 2 C 3 3 D 4 4 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) p[2] same as *(p+2) = arr[2] = 3. व्याख्या (हिन्दी) p[2] *(p+2) = arr[2] = 3 के समान। 🎯 Exam Perspective Data Structures and Algorithms से जुड़ा यह सवाल उन students के लिए काम का है जो SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: enum class Day{Mon=1,Tue,Wed}; cout The output of: class A{public:int f(){return 1;}}; clas... The output of: enum Color{Red=1,Green=2,Blue=4}; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
440 Question 440 EN + हिं GB The output of: int x=5; int &r=x; int &s=r; s=10; cout< IN का आउटपुट: int x=5; int &r=x; int &s=r; एस=10; अदालत A 5 5 B 10 10 C Error गलती D 15 15 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) s is alias for r which is alias for x; s=10 sets x=10. व्याख्या (हिन्दी) s, r के लिए उपनाम है जो x के लिए उपनाम है; s=10 सेट x=10. 🎯 Exam Perspective UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: int a=10; { int a=20; cout 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 Introduction to DSA (819) Arrays (16) Linked List (25)
441 Question 441 EN + हिं GB What is the output: int a=10; { int a=20; cout< IN आउटपुट क्या है: int a=10; { int a=20; अदालत A 2010 2010 B 1020 1020 C Error गलती D 2020 2020 ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Inner a=20 hides outer; inner block prints 20, then outer a=10. व्याख्या (हिन्दी) भीतरी a=20 बाहरी को छुपाता है; आंतरिक ब्लॉक 20 प्रिंट करता है, फिर बाहरी a=10। 🎯 Exam Perspective अगर आप Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int x=5; auto f=[x]()mutable{return ++x;... The output of: int n=153; int sum=0,tmp=n; while(tmp){i... What is the output: class C{public:static int n; C(){n+... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
442 Question 442 EN + हिं GB The output of: int a=5; { int a=10; cout<<::a< IN का आउटपुट: int a=5; { int a=10; अदालत A 5105 5105 B 5105 5 5105 5 C 510 510 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ::a accesses global/outer scope a=5; inner a=10; after block outer a=5. व्याख्या (हिन्दी) ::a वैश्विक/बाहरी दायरे तक पहुँचता है a=5; भीतरी ए=10; बाहरी ब्लॉक a=5 के बाद। 🎯 Exam Perspective Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC, Railway, Banking और State PCS में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: struct Point{int x,y;}; Point p={3,4}; c... The output of: int x=5; auto f=[x]()mutable{return ++x;... What is the output: class C{public:static int n; C(){n+... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
443 Question 443 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 category का है, और SSC CGL, IBPS, RRB और State-level परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: enum class Day{Mon=1,Tue,Wed}; cout What is the output: int a=10; { int a=20; cout What is the output: int x=10; void* p=&x; cout 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
444 Question 444 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 की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर UPSC, SSC, Banking और Police भर्ती जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions The output of: int a=5; { int a=10; cout The output of: int x=5; int &r=x; int &s=r; s=10; cout The output of: class A{public:int f(){return 1;}}; clas... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
445 Question 445 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 से जुड़ा यह सवाल उन students के लिए काम का है जो Railway, SSC, Banking और Defence परीक्षाओं की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions The output of: int x=5; int &r=x; int &s=r; s=10; cout The output of: union U{int i; float f; }; U u; u.i=10;... The output of: int x=5; auto f=[x]()mutable{return ++x;... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
446 Question 446 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 SSC, Railway, Banking और State PCS जैसी परीक्षाओं में Data Structures and Algorithms से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: int x=5; auto f=[x]()mutable{return ++x;... The output of: int n=153; int sum=0,tmp=n; while(tmp){i... The output of: class C{int x; public: void set(int a){x... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
447 Question 447 EN + हिं GB The output of: union U{int i; float f; }; U u; u.i=10; cout< IN का आउटपुट: यूनियन यू{इंट आई; फ्लोट एफ; }; उ उ; यू.आई=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 अगर आप SSC CGL, IBPS, RRB और State-level परीक्षाओं की तैयारी कर रहे हैं, तो Data Structures and Algorithms का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int x=5; int &r=x; int &s=r; s=10; cout What is the output: int x=10; void* p=&x; cout The output of: struct Point{int x,y;}; Point p={3,4}; c... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
448 Question 448 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 Data Structures and Algorithms के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे UPSC, SSC, Banking और Police भर्ती में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: enum class Day{Mon=1,Tue,Wed}; 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 Introduction to DSA (819) Arrays (16) Linked List (25)
449 Question 449 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 category का है, और Railway, SSC, Banking और Defence परीक्षाओं के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions The output of: struct Point{int x,y;}; Point p={3,4}; c... The output of: class C{int x; public: void set(int a){x... What is the output: class C{public:static int n; C(){n+... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)
450 Question 450 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 की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर SSC, Railway, Banking और State PCS जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 Related Questions What is the output: int a=10; { int a=20; cout What is the output: int x=10; void* p=&x; cout The output of: union U{int i; float f; }; U u; u.i=10;... 📚 Related Topic Introduction to DSA (819) Arrays (16) Linked List (25)