You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Correct Syntax:

C Programming Quizzes C++ 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)
{
}


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-11 05:44:32

Advertisement
Ads By Google

Re: Correct Syntax:



Board footer