OOP Using C++ — MCQ Practice

Hindi aur English dono mein practice karo — click karo answer check karne ke liye

📚 107 Questions 🌐 Hindi + English ✅ Free
भाषा / Language:
107 questions
106
EN + हिं
107
EN + हिं
GB What is the output: class A{public:int x; A(int v):x(v){cout<<'A';} ~A(){cout<<'Z';}}; try{A a(1); A b(2); throw 1;}catch(int){cout<<'E';}
IN आउटपुट क्या है: class A{public:int x; A(int v):x(v){cout
A
AAZZE अज्जे
B
AAZZZE AAZZZE
C
Compile error संकलन त्रुटि
D
Undefined अपरिभाषित
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English) A(1)=A; A(2)=A; throw: ~b=Z,~a=Z; catch: E. Output: AAZZE.
व्याख्या (हिन्दी) ए(1)=ए; ए(2)=ए; फेंकें: ~बी=जेड,~ए=जेड; कैच: ई. आउटपुट: AAZZE.
106–107 of 107