#include &lt;iostream&gt;    using namespace std;    #include &lt;cstdlib&gt;    #include &lt;exception&gt;    void Funct&#40;&#41;    &#123;        cout &lt;&lt; &quot;Funct() was called by terminate().&quot; &lt;&lt; endl;        exit&#40;0&#41;;    &#125;    int main&#40;&#41;    &#123;        try        &#123;            set_terminate&#40;Funct&#41;;            throw &quot;Out of memory!&quot;;        &#125;        catch&#40;int&#41;        &#123;             cout &lt;&lt; &quot;Integer exception raised.&quot; &lt;&lt; endl;         &#125;        return 0;    &#125;
A. Integer exception raised.
B. Funct() was called by terminate().
C. both a & b
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    #include &lt;cstdlib&gt;    #include &lt;exception&gt;    void Funct&#40;&#41;    &#123;        cout &lt;&lt; &quot;Funct() was called by terminate().&quot; &lt;&lt; endl;        exit&#40;0&#41;;    &#125;    int main&#40;&#41;    &#123;        try        &#123;            set_terminate&#40;Funct&#41;;            throw &quot;Out of memory!&quot;;        &#125;        catch&#40;int&#41;        &#123;             cout &lt;&lt; &quot;Integer exception raised.&quot; &lt;&lt; endl;         &#125;        return 0;    &#125;
A. Integer exception raised. B. Funct() was called by terminate(). C. both a & b D. none of the mentioned
Explanation:As there is no integer in this program, We are printing Funct() was called by terminate().