#include &lt;iostream&gt;    using namespace std;    class MyException    &#123;        public:        MyException&#40;int value&#41; : mValue&#40;value&#41;        &#123;        &#125;        int mValue;    &#125;;    class MyDerivedException : public MyException    &#123;        public:            MyDerivedException&#40;int value, int anotherValue&#41; : MyException&#40;value&#41;,    mAnotherValue&#40;anotherValue&#41;            &#123;            &#125;            int mValue;            int mAnotherValue;    &#125;;    void doSomething&#40;&#41;    &#123;        throw MyDerivedException&#40;10,20&#41;;    &#125;    int main&#40;&#41;    &#123;        try        &#123;            doSomething&#40;&#41;;        &#125;        catch &#40;MyDerivedException &amp;exception&#41;        &#123;            cout &lt;&lt; &quot;\nCaught Derived Class Exception\n&quot;;        &#125;        catch &#40;MyException &amp;exception&#41;        &#123;            cout &lt;&lt; &quot;\nCaught Base Class Exception\n&quot;;        &#125;        return 0;    &#125;
A. Caught Base Class Exception
B. Caught Derived Class Exception
C. Both a & b
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class MyException    &#123;        public:        MyException&#40;int value&#41; : mValue&#40;value&#41;        &#123;        &#125;        int mValue;    &#125;;    class MyDerivedException : public MyException    &#123;        public:            MyDerivedException&#40;int value, int anotherValue&#41; : MyException&#40;value&#41;,    mAnotherValue&#40;anotherValue&#41;            &#123;            &#125;            int mValue;            int mAnotherValue;    &#125;;    void doSomething&#40;&#41;    &#123;        throw MyDerivedException&#40;10,20&#41;;    &#125;    int main&#40;&#41;    &#123;        try        &#123;            doSomething&#40;&#41;;        &#125;        catch &#40;MyDerivedException &amp;exception&#41;        &#123;            cout &lt;&lt; &quot;\nCaught Derived Class Exception\n&quot;;        &#125;        catch &#40;MyException &amp;exception&#41;        &#123;            cout &lt;&lt; &quot;\nCaught Base Class Exception\n&quot;;        &#125;        return 0;    &#125;
A. Caught Base Class Exception B. Caught Derived Class Exception C. Both a & b D. None of the mentioned