Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Is data edited in the Repeater control?

0 Answers   Siebel,


If you have to replicate a set of controls(UI) across a number of web pages, what will you do

1 Answers  


How many types of session in asp.net2.0

28 Answers   ABC, DOT, First Europa, HCL, iRely, TCS,


is it possible to use web site without web server from remote place?

1 Answers   ABC, Mannar Company, Quadrant,


Is asp.net 64-bit enabled? How?

0 Answers  


Can you change a Master Page dynamically at runtime?

0 Answers  


How to do state management in ASP.NET?

0 Answers   BirlaSoft,


Can two different programming languages be mixed in a single ASMX file?

1 Answers   IBM, Patni, Wipro,


Explain how inline and code behind is used differently ?

1 Answers   Siebel,


What is content place holder?

0 Answers  


Who will magage un-managed code?

7 Answers   HP,


Define the steps to set up validation control.

0 Answers  


Categories