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 auto option in XML ?

1 Answers  


When you use Ajax controls in the ASP.NET application?

0 Answers   Viscus Infotech,


What are sessions in asp net?

0 Answers  


Where can I get the details on migration of existing projects using various technologies to asp.net?

0 Answers  


what is state management in ASP.NET

2 Answers   MCN Solutions,






Tell About Web.config ?

2 Answers   Keane India Ltd,


If I m using Session State Partioning where I have partitioned my session into 4 servers then how can I know that my session will be stored on which server?

1 Answers  


Explain cashing in asp.net.

0 Answers  


What are the differences between Dataset and DataReader?

3 Answers   Accenture,


List all templates of the repeater control.

0 Answers  


Where is http session stored?

0 Answers  


How can you change a Master page dynamically in which event of page life cycle?

2 Answers   Fulcrum Logic,


Categories