#include &lt;iostream&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;    &#123;        int num = 3;        string str_bad = &quot;wrong number used&quot;;        try        &#123;            if &#40; num == 1 &#41;            &#123;                       throw 5;            &#125;            if &#40; num == 2 &#41;            &#123;                throw 1.1f;            &#125;            if &#40; num != 1 || num != 2 &#41;            &#123;                    throw str_bad;            &#125;        &#125;        catch &#40;int a&#41;        &#123;            cout &lt;&lt; &quot;Exception is: &quot; &lt;&lt; a &lt;&lt; endl;        &#125;        catch &#40;float b&#41;        &#123;            cout &lt;&lt; &quot;Exception is: &quot; &lt;&lt; b &lt;&lt; endl;        &#125;        catch &#40;...&#41;        &#123;            cout  &lt;&lt; str_bad &lt;&lt; endl;        &#125;        return 0;    &#125;
A. Exception is 5
B. Exception is 1.1f
C. wrong number used
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;    &#123;        int num = 3;        string str_bad = &quot;wrong number used&quot;;        try        &#123;            if &#40; num == 1 &#41;            &#123;                       throw 5;            &#125;            if &#40; num == 2 &#41;            &#123;                throw 1.1f;            &#125;            if &#40; num != 1 || num != 2 &#41;            &#123;                    throw str_bad;            &#125;        &#125;        catch &#40;int a&#41;        &#123;            cout &lt;&lt; &quot;Exception is: &quot; &lt;&lt; a &lt;&lt; endl;        &#125;        catch &#40;float b&#41;        &#123;            cout &lt;&lt; &quot;Exception is: &quot; &lt;&lt; b &lt;&lt; endl;        &#125;        catch &#40;...&#41;        &#123;            cout  &lt;&lt; str_bad &lt;&lt; endl;        &#125;        return 0;    &#125;
A. Exception is 5 B. Exception is 1.1f C. wrong number used D. None of the mentioned
Explanation:As we are giving 3 to num, It is arising an exception named