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 (91)
 OOPS interview questions  OOPS Interview Questions (558)
 C++ General interview questions  C++ General Interview Questions (458)
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 happens if an exception is throws from an, object's constructor and object's destructor? Wipro 4
When to use Multiple Inheritance?   6
class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10; Quark 1
what is the emaning of '#include" "'?   5
Write a function which takes a character array as input and reverses it in place. Lehman-Brothers 2
What is difference between initialization and assignment? HP 11
wap to accept 10 numbers & display the number of odd and even numbers??   1
Explain the ISA and HASA class relationships. How would you implement each in a class design?   2
What is the difference between = and == in C? Intel 13
i want to know how to copy arrary without using any method or function. I have tried the below using System; class e4 { static void Main(string[] args) { int a,b; int[ ] m= new int[5]; int[ ] n= new int[5]; for(a=0;a<=4;a++) { Console.WriteLine("enter any value"); m[a]=Convert.ToInt32(Console.ReadLine()); m[a]=n[a]; } for(b=0;b<=4;b++) { Console.WriteLine(n[b]); } } } but it will give wrong result can anyone solve this problem Reliance 1
Difference between static global and global? Symphony 15
1.what is the difference between software & package &application. Infosys 1
 
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