121 Question 121 EN + हिं GB What is the output: try{throw;}catch(...){cout<<'C';} IN आउटपुट क्या है: प्रयास करें {फेंकें;} पकड़ें (...) {काउट करें A terminate बर्खास्त B C सी C Compile error संकलन त्रुटि D Undefined अपरिभाषित ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) std::terminate called. व्याख्या (हिन्दी) std::समाप्त बुलाया गया। 🎯 Exam Perspective OOP Using C++ ("Exception Handling" sub-topic) से जुड़ा यह सवाल उन students के लिए काम का है जो UPSC, SSC, Banking और Police भर्ती की तैयारी कर रहे हैं। बेहतर होगा कि explanation पढ़कर concept clear करें, ताकि exam में similar प्रश्न आने पर confusion न हो। 🔗 Related Questions What is the output: class A{public:A(){} ~A()noexcept{c... What is the output: try{try{throw 1;}catch(int i){throw... 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
122 Question 122 EN + हिं GB What is the output: class A{public:A(){} ~A()noexcept{cout<<'X';}}; void f(){A a;return;} f(); cout<<'Y'; IN आउटपुट क्या है: क्लास ए {पब्लिक: ए() {} ~ ए() नोएक्सेप्ट {काउट A XY XY B YX YX C Compile error Compile error D Undefined Undefined ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) ~A called on return: X. Then Y. Output: XY. व्याख्या (हिन्दी) ~ए को वापसी पर बुलाया गया: एक्स। फिर वाई। आउटपुट: एक्सवाई। 🎯 Exam Perspective Railway, SSC, Banking और Defence परीक्षाओं जैसी परीक्षाओं में OOP Using C++ ("Exception Handling" sub-topic) से सवाल अक्सर पूछे जाते हैं। इसलिए सिर्फ answer रटने के बजाय, नीचे दी गई explanation को ध्यान से पढ़ें और concept समझें। 🔗 Related Questions What is the output: try{try{throw 1;}catch(int i){throw... What is the output: try{throw;}catch(...){cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)
123 Question 123 EN + हिं GB What is the output: try{try{throw 1;}catch(int i){throw string("err");}}catch(string& s){cout< IN आउटपुट क्या है: प्रयास करें {कोशिश करें 1 फेंकें;} पकड़ें (int i) {थ्रो स्ट्रिंग ("इर्रर")); A err ग़लती होना B 1 1 C Compile error संकलन त्रुटि D Undefined Undefined ✅ Correct Answer: 💡 Explanation / व्याख्या Explanation (English) Inner catches int, throws string. Outer catches string. Output: err. व्याख्या (हिन्दी) इनर कैच इंट, थ्रो स्ट्रिंग। बाहरी कैच स्ट्रिंग. आउटपुट: ग़लती। 🎯 Exam Perspective अगर आप SSC, Railway, Banking और State PCS की तैयारी कर रहे हैं, तो OOP Using C++ ("Exception Handling" sub-topic) का यह topic आपके लिए महत्वपूर्ण है। Exam में accuracy बढ़ाने के लिए हर सवाल की explanation जरूर पढ़ें। 🔗 Related Questions What is the output: class A{public:A(){} ~A()noexcept{c... What is the output: try{throw;}catch(...){cout 📚 Related Topic Introduction to C++ (187) Variables and Data Types (160) Operators in C++ (163)