ICS Part 2 Computer Science Chapter 11 Short Questions Test With Answer

Online Short Questions For Chapter 11 "ICS Part 2 Computer Science Chapter 11 Short Questions Preparation "

Try The Short Questions For ICS Part 2 Computer Science Chapter 11 Short Questions Preparation

  • Total Questions10

  • Available Sets6

Computer Science - ICS Part 2 Computer Science Chapter 11 Short Questions Preparation

Question # 1

What happens if break is missed in case block?

  • Ans 1: Reasons: If all break statement are omitted from the switch statement, the code from the first true case down to the end of the switch statement will execute sequentially
Submit

Prepare Complete Set Wise Questions For Chapter 11 "ICS Part 2 Computer Science Chapter 11 Short Questions Preparation "

ICS Part 2 Computer Science Chapter 11 Short Questions Preparation - Set 1

Question # 1

What happens if break is missed in case block?

  • Ans 1: Reasons: If all break statement are omitted from the switch statement, the code from the first true case down to the end of the switch statement will execute sequentially
Submit

ICS Part 2 Computer Science Chapter 11 Short Questions Preparation - Set 2

Question # 1

Find error from the following .
Int y;z;
If(y = = z)
Printf ("yes)"

  • Ans 1: Error :
    • 1st error is method to declare variable is wrong
    • 2nd error is terminator has not been used in printf statement
Submit

ICS Part 2 Computer Science Chapter 11 Short Questions Preparation - Set 3

Question # 1

Type the error.Void main ( ){Int a, bA = -10B =40If (a <0); b= sqrt (a);Printf ("Result =%f,b);Getch ();}

  • Ans 1: Errors:1st erro is ;semicolon had not been used after various statement to terminates them.2nd error is we cannot take sqrt of a because it is less than 0.
Submit

ICS Part 2 Computer Science Chapter 11 Short Questions Preparation - Set 4

Question # 1

Trace the error.Void main ( ){Int a, bA = -10B = 40If (a<0) ; b= sqrt (a);Printf ("Result = %f",b);Getch( ); }

  • Ans 1: Errors:1st errors is ; semicolon had not been used after various statement to terminates them.2nd error is we cannot take sqrt of a because it is less than 0.
Submit

ICS Part 2 Computer Science Chapter 11 Short Questions Preparation - Set 5

Question # 1

Trace the error in the following code.Void main (void){Int x= 10;If (x! =10);X + +;Else (x= =10)X - -;}

  • Ans 1: Errors is ; semicolon must not be used after If condition.
Submit

ICS Part 2 Computer Science Chapter 11 Short Questions Preparation - Set 6

Question # 1

Trace out the errors in the following code.
Void main ( )
{
Int R ;
R= 17;
If (R>0)
{
R= R*3.14*3.14;
};
PRINTF ("THE VALUE OF ARE IS =%F",R);
Getch ( );
}

  • Ans 1: Error:
    • 1st error is variable r has not been defined.
    • 2nd error is : semicolon has been used after closing brackets of If statement which is not allowed.
Submit

11th Chapter

12th Computer Science Chapter 11 Preparation

Here you can prepare 12th Computer Science Chapter 11 Problem Solving Preparation. Click the button for 100% free full practice test.

Is this page helpful?

Share your comments & questions here

Guest
  • No comments yet. Be the first to comment!