#include &lt;iostream&gt;    #include &lt;typeinfo&gt;    using namespace std;    class Polymorphic &#123;virtual void Member&#40;&#41;&#123;&#125;&#125;;    int main &#40;&#41;     &#123;        try        &#123;            Polymorphic * pb = 0;            typeid&#40;*pb&#41;;           &#125;        catch &#40;exception&amp; e&#41;        &#123;            cerr &lt;&lt; &quot;exception caught: &quot; &lt;&lt; e.what&#40;&#41; &lt;&lt; endl;        &#125;        return 0;    &#125;
A. exception caught: std::bad_typeid
B. exception caught: std::bad_alloc
C. exception caught: std::bad_cast
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;typeinfo&gt;    using namespace std;    class Polymorphic &#123;virtual void Member&#40;&#41;&#123;&#125;&#125;;    int main &#40;&#41;     &#123;        try        &#123;            Polymorphic * pb = 0;            typeid&#40;*pb&#41;;           &#125;        catch &#40;exception&amp; e&#41;        &#123;            cerr &lt;&lt; &quot;exception caught: &quot; &lt;&lt; e.what&#40;&#41; &lt;&lt; endl;        &#125;        return 0;    &#125;
A. exception caught: std::bad_typeid B. exception caught: std::bad_alloc C. exception caught: std::bad_cast D. none of the mentioned
Explanation:In this program, We used a bad type id for the polymorphic operator, So it is arising an bad_typeid exception.