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 is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

3 Answers   Satyam,


How to disable SOAP1.2 in Web Services?

1 Answers  


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

0 Answers  


How does ASP.NET framework maps client side events to Server side events.?

0 Answers  


Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks

1 Answers  






How can we do the client side validation and Server side validations? But i told that At client side by with the help of validations control or by javascript? But I dont know about the Server side controls Explain?

5 Answers   iSoft, TCS,


What is asp.net globalization?

0 Answers  


What is the Difference between user and server controls?

5 Answers  


What namespace does the Web page belong in the .NET Framework class hierarchy?

3 Answers   Siebel Systems,


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

0 Answers   TCS,


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

0 Answers  


How is the asp.net mvc architecture different from others? : asp.net mvc

0 Answers  


Categories