#include &lt;iostream&gt;    using namespace std;    class Test1     &#123;     &#125;;    class Test2 : public Test1 &#123; &#125;;    void Funct&#40;&#41;;    int main&#40;&#41;    &#123;        try        &#123;            Funct&#40;&#41;;        &#125;        catch &#40;const Test1&amp;&#41;        &#123;            cerr &lt;&lt; &quot;Caught a exception&quot; &lt;&lt; endl;        &#125;        return 0;    &#125;    void Funct&#40;&#41;    &#123;        throw Test2&#40;&#41;;    &#125;
A. Caught an exception
B. NULL
C. both a & b
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class Test1     &#123;     &#125;;    class Test2 : public Test1 &#123; &#125;;    void Funct&#40;&#41;;    int main&#40;&#41;    &#123;        try        &#123;            Funct&#40;&#41;;        &#125;        catch &#40;const Test1&amp;&#41;        &#123;            cerr &lt;&lt; &quot;Caught a exception&quot; &lt;&lt; endl;        &#125;        return 0;    &#125;    void Funct&#40;&#41;    &#123;        throw Test2&#40;&#41;;    &#125;
A. Caught an exception B. NULL C. both a & b D. none of the mentioned
Explanation:In this program, We are arising the exception by using the method in the class.