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

Write the syntax of if-else statement .

  • Ans 1: if-else statement : The keyword else has been used to specify two different choices with if statement
    Syntax:
    If (condition)
    {
    block of if (true case)
    }
    Else
    {
    block of else (false true)}
    Explanation: if the condition is true the block of if statement is executed and if the condition is false, the block of else statement is executed
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

Write the syntax of if-else statement .

  • Ans 1: if-else statement : The keyword else has been used to specify two different choices with if statement
    Syntax:
    If (condition)
    {
    block of if (true case)
    }
    Else
    {
    block of else (false true)}
    Explanation: if the condition is true the block of if statement is executed and if the condition is false, the block of else statement is executed
Submit

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

Question # 1

What is the output of the following code?Int m, n;M = 0;N= m;If;(m = =n)Printf ("BWP");Elseprintf("LHR");

  • Ans 1: Output: BWP
Submit

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

Question # 1

Write output.Int p, q, r;P= 10;Q = 2;If (p% q = =3)R= 0;ElseR =1;Printf ("%d",r)

  • Ans 1: Output: R=1
Submit

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

Question # 1

Trace the output.
Void main( )
{int marks;
Printf ("\n enter your marks ");
Scanf ("%d",&marks);
If (marks >= 40)
Printf ("\n congratulation");
}

  • Ans 1: Output :
    Enter your marks 50
    Congratulation
Submit

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

Question # 1

Write output.Int p, q, r;P= 10;Q = 2;If (p% q = =3)R= 0;ElseR =1;Printf ("%d",r)

  • Ans 1: Output: R=1
Submit

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

Question # 1

Trace error from the following code.
If (7! =10
Printf ("hello");
Else-do
Printf ("welcom");

  • Ans 1: Errors:
    • 1st errors is if statement has not been written correctly.
    • 2nd error is there is no else-do statement in C language.
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!