#include &lt;iostream&gt;    #include &lt;exception&gt;    #include &lt;typeinfo&gt;    using namespace std;    class Test1    &#123;            virtual int  Funct&#40;&#41;         &#123;        &#125;    &#125;;    int main &#40;&#41;    &#123;        try         &#123;            Test1 * var = NULL;            typeid &#40;*var&#41;;        &#125;        catch &#40;std::exception&amp; typevar&#41;        &#123;            cout &lt;&lt; &quot;Exception: &quot; &lt;&lt; typevar.what&#40;&#41; &lt;&lt; endl;           &#125;        return 0;    &#125;
A. NULL
B. Exception:bad_alloc
C. Exception:std:bad_typeid
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;exception&gt;    #include &lt;typeinfo&gt;    using namespace std;    class Test1    &#123;            virtual int  Funct&#40;&#41;         &#123;        &#125;    &#125;;    int main &#40;&#41;    &#123;        try         &#123;            Test1 * var = NULL;            typeid &#40;*var&#41;;        &#125;        catch &#40;std::exception&amp; typevar&#41;        &#123;            cout &lt;&lt; &quot;Exception: &quot; &lt;&lt; typevar.what&#40;&#41; &lt;&lt; endl;           &#125;        return 0;    &#125;
A. NULL B. Exception:bad_alloc C. Exception:std:bad_typeid D. none of the mentioned
Explanation:As we are using a bad type on pointers, So it is arising an error.