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.

Answers were Sorted based on User's Feedback



You are using the try? catch block seen in the following code segment, but no exceptions are ever c..

Answer / js_m

c

Is This Answer Correct ?    4 Yes 0 No

You are using the try? catch block seen in the following code segment, but no exceptions are ever c..

Answer / nithya

C

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

what are the server controls used in sitepath navigation?

1 Answers  


how to write html code with ssl

0 Answers   DCI,


What is a bubbled event?

2 Answers  


What are the new web part controls in asp.net 2.0 ?

0 Answers  


What is active web pages?

0 Answers  


• What are HttpHandlers? • What are HttpModules?

2 Answers  


Which is better viewstate or session?

0 Answers  


Interface and Abstract class, inheritance, abstraction with examples. Polymorphism (difference betn overloading and overriding

2 Answers   Syntel,


Difference between .NET and previous version?

0 Answers   Microsoft, TIPL,


Differentiate between client-side and server-side validations in web pages.

0 Answers  


What?s the difference between Response.Write() andResponse.Output.Write()?

2 Answers  


How do you manage session in ASP and ASP.NET ?

2 Answers   Cap Gemini, Microsoft,


Categories