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 is the Difference between "vector" and "array"? TCS 15
Is there a datatype string in c++?How is the memory allocation?   2
Write a C program to calculate the salary of each employee in your company. You need to input the hours worked and the hourly rate. The company pays 1.5 times the hourly rate for all hours worked in excess of 48 hours. Use the formulas below to calculate the salary: if employee worked less than 48 hours salary = hours * rate; if employee worked more than 48 hours salary = 48.0 * rate + ( hours &#8722; 48.0 ) * rate * 1.5; You are required to use a loop to produce the sample output as given below.   1
Explain working of printf?   8
1.what is the difference between software & package &application. Infosys 1
What are the basics of classifying different storage types, why? Symphony 2
Why preincrement operator is faster than postincrement?   5
There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not? TCS 1
write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1   5
what is meaning of isa and hsa   1
Give 2 examples of a code optimization?   4
wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster   11
 
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