#include &lt;iostream&gt;    #include &lt;exception&gt;    using namespace std;    int main&#40;&#41;    &#123;        try &#123;            int * array1 = new int&#91;100000000&#93;;            int * array2 = new int&#91;100000000&#93;;            int * array3 = new int&#91;100000000&#93;;            int * array4 = new int&#91;100000000&#93;;            cout &lt;&lt; &quot;Allocated successfully&quot;;        &#125;        catch&#40;bad_alloc&amp;&#41; &#123;            cout &lt;&lt; &quot;Error allocating the requested memory.&quot; &lt;&lt; endl;        &#125;        return 0;    &#125;
A. Allocated successfully
B. error allocating the requested memory
C. Depends on the memory of the computer
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;exception&gt;    using namespace std;    int main&#40;&#41;    &#123;        try &#123;            int * array1 = new int&#91;100000000&#93;;            int * array2 = new int&#91;100000000&#93;;            int * array3 = new int&#91;100000000&#93;;            int * array4 = new int&#91;100000000&#93;;            cout &lt;&lt; &quot;Allocated successfully&quot;;        &#125;        catch&#40;bad_alloc&amp;&#41; &#123;            cout &lt;&lt; &quot;Error allocating the requested memory.&quot; &lt;&lt; endl;        &#125;        return 0;    &#125;
A. Allocated successfully B. error allocating the requested memory C. Depends on the memory of the computer D. none of the mentioned
Explanation:In this program, we allocating the memory to the arrays by using excetion handling and we handled the exception by standard exception.