ALLInterview.com :: Home Page KalAajKal.com
 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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
You are using the try? catch block seen in the following
code segment, but no exceptions are ever caught by the catch
block. What is the problem?

			SqlConnection cn =new sqlConnection(strSQL);
		  	SqlDataSet ds;
			try
			{
				cn.open();        //perform the data processing steps
				??..
			} catch (OleDbException e) {
			?..
			}

a)	The exception class is wrong; it should be sqlErrors.
b)	The exception class is wrong; it should be
sqlSyntaxExceptios.
c)	The exception class is wrong; it should be sqlExceptions.
d)	The exception class is wrong; it should be sqlExcptions.
 Question Submitted By :: Raghava
I also faced this Question!!     Rank Answer Posted By  
 
  Re: You are using the try? catch block seen in the following code segment, but no exceptions are ever caught by the catch block. What is the problem? SqlConnection cn =new sqlConnection(strSQL); SqlDataSet ds; try { cn.open(); //perform the data processing steps ??.. } catch (OleDbException e) { ?.. } a) The exception class is wrong; it should be sqlErrors. b) The exception class is wrong; it should be sqlSyntaxExceptios. c) The exception class is wrong; it should be sqlExceptions. d) The exception class is wrong; it should be sqlExcptions.
Answer
# 1
c
 
Is This Answer Correct ?    1 Yes 0 No
Js_m
 
  Re: You are using the try? catch block seen in the following code segment, but no exceptions are ever caught by the catch block. What is the problem? SqlConnection cn =new sqlConnection(strSQL); SqlDataSet ds; try { cn.open(); //perform the data processing steps ??.. } catch (OleDbException e) { ?.. } a) The exception class is wrong; it should be sqlErrors. b) The exception class is wrong; it should be sqlSyntaxExceptios. c) The exception class is wrong; it should be sqlExceptions. d) The exception class is wrong; it should be sqlExcptions.
Answer
# 2
C
 
Is This Answer Correct ?    1 Yes 0 No
Nithya
 
 
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Which institute provide good Project training on .Net technologies in hyd?  4
Difference between application and session ? Satyam5
we are working in .net namespaces like using system.io,system.text. these namespace before we use "using " keyword what means of using? Tech-Mahindra5
Differences between VB.Net and C#, related to OOPS concepts CSC5
What is the difference of a LEFT JOIN and an INNER JOIN statement? What is a Cartesian product? What causes it? Syntax-Softtech1
What?s a bubbled event? Visual-Soft5
Usage of web.configuration ? Microsoft1
Which control would you use if you needed to make sure the values in two different controls matched?  3
What tags do you need to add within the asp:datagrid tags to bind columns manually?  2
What is boxing and unboxing ? Accenture6
What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor Syntax-Softtech1
About writting a query and SP which is better ? Satyam2
can we store textbox and com components in viewstate? Microsoft2
What is a Windows Service and how does its lifecycle differ from a "standard" EXE?  1
What are asynchronous callbacks ? Accenture2
what is asp dotnet  1
What tags do you need to add within the asp:datagrid tags to bind columns manually  2
What is shadowing? Syntax-Softtech2
Whats an assembly IBM1
what is the difference b/w .net 1.1 and 2.0 ? Polaris2
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com