adplus-dvertising
frame-decoration

Question

Which of the following is the incorrect form of Decision Control instruction?

a.

if (Condition1)
{// Some statement}

b.

if (Condition1) {// Some statement}
else {// Some statement}

c.

if (Condition1) {// Some statement}
else {// Some statement}
else if ( Condition2){//Some statement}

d.

if ( Condition1 ) {// Some statement}
else if ( Condition2 ) {// Some statement}
else {// Some statement}

Posted under C# programming

Answer: (c).if (Condition1) {// Some statement}
else {// Some statement}
else if ( Condition2){//Some statement}

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is the incorrect form of Decision Control instruction?