571 Question 571 EN + हिं GB The output of: int a=2; switch(a){case 1: case 2: cout<<"1or2"; break; case 3: cout<<"3";} IN का आउटपुट: int a=2; स्विच(ए){केस 1: केस 2: कॉउट A 1or2 1 ओर 2 B 2 2 C 3 3 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) case 2 falls through from case 1 label; matches case 2, outputs 1or2. व्याख्या (हिन्दी) केस 2, केस 1 लेबल से गिरता है; केस 2 से मेल खाता है, आउटपुट 1or2। 🎯 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 x=1; if(x>0) if(x>3) cout The output of: int x=-1; if(x>0) if(x>3) cout The output of: int x=5; if(x>0) if(x>3) cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
572 Question 572 EN + हिं GB The output of: int x=5; if(x>0) if(x>3) cout<<"A"; else cout<<"B"; else cout<<"C"; IN का आउटपुट: int x=5; if(x>0) if(x>3) cout A A ए B B बी C C सी D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) x=5>0 and 5>3; outputs A. व्याख्या (हिन्दी) x=5>0 और 5>3; आउटपुट ए. 🎯 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 x=5; int &r=x; int &s=r; s=10; cout What is the output: int n=1234; int rev=0; while(n){rev... The output of: int n=121; bool isPalin=true; int tmp=n,... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
573 Question 573 EN + हिं GB The output of: int x=1; if(x>0) if(x>3) cout<<"A"; else cout<<"B"; else cout<<"C"; IN का आउटपुट: int x=1; if(x>0) if(x>3) cout A A ए B B बी C C सी D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) x=1>0 but 1 not >3; else (inner) outputs B. व्याख्या (हिन्दी) x=1>0 लेकिन 1 नहीं >3; अन्यथा (आंतरिक) आउटपुट बी। 🎯 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 x=5; int &r=x; int &s=r; s=10; cout The output of: int x=5; if(x>0) if(x>3) cout The output of: int x=-1; if(x>0) if(x>3) cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
574 Question 574 EN + हिं GB The output of: int x=-1; if(x>0) if(x>3) cout<<"A"; else cout<<"B"; else cout<<"C"; IN का आउटपुट: int x=-1; if(x>0) if(x>3) cout A A ए B B बी C C सी D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) x=-1, not >0; outer else outputs C. व्याख्या (हिन्दी) x=-1, नहीं >0; बाहरी अन्य आउटपुट C. 🎯 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: int x=5; if(x>0) if(x>3) cout What is the output: int n=1234; int rev=0; while(n){rev... The output of: int n=123; int sum=0; while(n){sum+=n%10... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
575 Question 575 EN + हिं GB The output of: int i=0; for(;;){if(i++>=3) break; cout< IN का आउटपुट: int i=0; for(;;){if(i++>=3) ब्रेक; अदालत A 1235 1235 B 1234 1234 C 1234 5 1234 5 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) i increments: 1(print),2(print),3(print),4(break); cout<<4: gives 1235. व्याख्या (हिन्दी) मैं वृद्धि करता हूं: 1(प्रिंट),2(प्रिंट),3(प्रिंट),4(ब्रेक); अदालत 🎯 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 n=153; int sum=0,tmp=n; while(tmp){i... What is the output: int a=10; { int a=20; cout The output of: int x=1; if(x>0) if(x>3) cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
576 Question 576 EN + हिं GB What is the output: int n=1234; int rev=0; while(n){rev=rev*10+n%10; n/=10;} cout< IN आउटपुट क्या है: int n=1234; int Rev=0; जबकि(n){rev=rev*10+n%10; n/=10;} कोउट A 4321 4321 B 1234 1234 C 1324 1324 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Reverse of 1234 is 4321. व्याख्या (हिन्दी) 1234 का विपरीत 4321 है। 🎯 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 i=0; for(;;){if(i++>=3) break; cout The output of: int a=2; switch(a){case 1: case 2: cout The output of: int x=5; int &r=x; int &s=r; s=10; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
577 Question 577 EN + हिं GB The output of: int n=121; bool isPalin=true; int tmp=n,rev=0; while(tmp){rev=rev*10+tmp%10;tmp/=10;} cout<<(rev==n?"Yes":"No"); IN इसका आउटपुट: int n=121; बूल isPalin=सत्य; int tmp=n,rev=0; while(tmp){rev=rev*10+tmp%10;tmp/=10;} कोउट A No नहीं B Yes हाँ C 121 121 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 121 reversed is 121; palindrome. व्याख्या (हिन्दी) 121 का उलटा 121 है; पलिंड्रोम. 🎯 Exam Perspective Data Structures and Algorithms ("Introduction to DSA" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the output: int a=10; { int a=20; cout The output of: int n=6; int sum=0; for(int i=1;i The output of: int arr[]={1,2,3,4,5}; int *p=arr; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
578 Question 578 EN + हिं GB The output of: int n=123; int sum=0; while(n){sum+=n%10; n/=10;} cout< IN इसका आउटपुट: int n=123; पूर्णांक योग=0; जबकि(n){sum+=n%10; n/=10;} कोउट A 123 123 B 3 3 C 6 6 D Error गलती ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) 1+2+3=6. व्याख्या (हिन्दी) 1+2+3=6. 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में Data Structures and Algorithms ("Introduction to DSA" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions The output of: int n=6; int sum=0; for(int i=1;i What is the output: int x=10; void* p=&x; cout The output of: int x=1; if(x>0) if(x>3) cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
579 Question 579 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; while(tmp){int d=tmp%10; sum+=d*d*d; tmp/=10;} cout 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 अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int x=5; if(x>0) if(x>3) cout The output of: int x=-1; if(x>0) if(x>3) cout The output of: int arr[]={1,2,3,4,5}; int *p=arr; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
580 Question 580 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 ("Introduction to DSA" sub-topic) के इस प्रश्न को कई प्रतियोगी परीक्षाओं जैसे SSC CGL, IBPS, RRB और State-level परीक्षाओं में repeat होते देखा गया है। Concept clarity के लिए explanation section जरूर पढ़ें। 🔗 Related Questions The output of: int x=1; if(x>0) if(x>3) cout What is the output: int a=10; { int a=20; cout The output of: int x=5; int &r=x; int &s=r; s=10; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
581 Question 581 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 ("Introduction to DSA" sub-topic) category का है, और UPSC, SSC, Banking और Police भर्ती के exam pattern में इस तरह के questions common हैं। Answer choose करने के बाद दिया गया explanation जरूर पढ़ें। 🔗 Related Questions What is the output: int a=10; { int a=20; cout The output of: int x=5; if(x>0) if(x>3) cout The output of: int x=5; int &r=x; int &s=r; s=10; cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
582 Question 582 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 ("Introduction to DSA" sub-topic) की तैयारी करने वाले अभ्यर्थियों के लिए उपयोगी है। इस तरह के प्रश्न अक्सर Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में पूछे जाते रहे हैं, इसलिए concept और explanation दोनों को ध्यान से समझें, सिर्फ उत्तर याद न करें। 🔗 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: int x=5; if(x>0) if(x>3) cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
583 Question 583 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; s=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 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 x=5; if(x>0) if(x>3) cout The output of: int x=-1; if(x>0) if(x>3) cout What is the output: int n=1234; int rev=0; while(n){rev... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
584 Question 584 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 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 x=10; void* p=&x; cout The output of: int n=123; int sum=0; while(n){sum+=n%10... The output of: int x=5; if(x>0) if(x>3) cout 📚 Related Topic Arrays (16) Linked List (25) Stack (14)
585 Question 585 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 अगर आप UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं, तो Data Structures and Algorithms ("Introduction to DSA" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions The output of: int x=1; if(x>0) if(x>3) cout The output of: int x=5; if(x>0) if(x>3) cout The output of: int n=153; int sum=0,tmp=n; while(tmp){i... 📚 Related Topic Arrays (16) Linked List (25) Stack (14)