You are not logged in.

#1 2015-09-11 05:44:33

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Correct Syntax:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … -Placement

Question:
Following is not the correct syntax for exception handling:

Option A):
Try (type-list)
{
}
Catch(type arg)
{
}
Option B):
Try
{
_____
throw;
}
Catch(type arg)
{
Throw;
}
Option C):
Type function (arg-list) throw(type-list)
{
}
Option D):
Try
{
_____
throw;
}
Catch(type arg)
{
Throw(exception);
}
Catch(type arg)
{
Throw;
}

Correct Answer is Option A):
Try (type-list)
{
}
Catch(type arg)
{
}


Failure is the first step towards seccess.

2015-09-11 05:44:33

Advertisement
Ads By Google

Re: Correct Syntax:



Board footer