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

When should I use server transfer and response redirect?

0 Answers  


Differentiate session and cookie

1 Answers  


How to Convert a String into Float without using any built- in library of .NET String = "1235.45" needs to converted to a float

2 Answers   CA, Microsoft,


What is the difference of a LEFT JOIN and an INNER JOIN statement? What is a Cartesian product? What causes it?

1 Answers   Syntax Softtech,


What is the difference between the response.write() and response.output.write() methods?

0 Answers  






Explain transparent caching with aop?

0 Answers  


Explain about consistent programming model in the .NET framework?

0 Answers  


Which tools of web site Administartion tool do you use to manage user,roles and rules?

2 Answers  


What is the purpose of master page?

0 Answers  


What is Web Gardening? How would using it affect a design ?

1 Answers   Infogain,


Explain global assembly cache.

0 Answers  


How Clustered Index and Non clustered index stored on SQL server?

2 Answers   TCS,


Categories