ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C++ >> C++ General
 
 


 

 
 STL interview questions  STL Interview Questions (93)
 OOPS interview questions  OOPS Interview Questions (563)
 C++ General interview questions  C++ General Interview Questions (461)
Question
catch(exception &e) 
{ 
    . . . 
}  
Referring to the sample code above, which one of the
following lines of code produces a written description of
the type of exception that "e" refers to?  
a) cout << e.type();  
b) cout << e.name();  
c) cout << typeid(e).name();  
d) cout << e.what();  
e) cout << e;  
 Question Submitted By :: C++-General
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
cout<<typeid(e).name() is the correct one 
Is This Answer Correct ?    5 Yes 0 No
Guest
 
Answer
# 2
ans:c 
Is This Answer Correct ?    1 Yes 0 No
Santhoo035
 
 
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
What is Name Decoration? Lucent 2
What is the difference between Class and Structure? HP 35
given unsigned int ui1=3,ui2=7; what are the outputs of a)ui1 & ui2 b)ui1 && ui2 c)ui1 | ui2 d)ui1 || ui2 i also need the justification for the answers thank you   2
please help to write the code of chess game in c++?????????? NEC 1
how to create window program in c++.please explain. Microsoft 1
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.   3
What is a "RTTI"? HCL 6
What is size of a object of following class? class Foo { public: void foo(){} } CA 2
Can we declare destructor as static? Explain?   3
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it   2
Difference between Overloading and Overriding? HP 34
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor. Quark 5
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com