Control Instructions

Q1: 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}

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

ANS:C -

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

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.