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

Trace the error in the following code.Void main (void);{Int x, y,zIf (x> y);Printf ("Xis largest");ElsePrintf("Y is largest")Getch( );}

  • Ans 1: Errors:1st error is there must not be ; semicolon after Main starting.2nd error is ;semicolon is missing in different statement.
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

Trace the error in the following code.Void main (void);{Int x, y,zIf (x> y);Printf ("Xis largest");ElsePrintf("Y is largest")Getch( );}

  • Ans 1: Errors:1st error is there must not be ; semicolon after Main starting.2nd error is ;semicolon is missing in different statement.
Submit

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

Question # 1

Find out errors:
#include <stdio>
Void main( )
[
If (50>20) then
Printf ("Islamic Country ");
Getch( )
}

  • Ans 1: Errors:
    • 1st error is wrong library has been used in this program.
    • 2nd error is wrong brackets have been used in Main body.
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

Find out errors:
#include <stdio>
Void main( )
[
If (50>20) then
Printf ("Islamic Country ");
Getch( )
}

  • Ans 1: Errors:
    • 1st error is wrong library has been used in this program.
    • 2nd error is wrong brackets have been used in Main body.
Submit

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

Question # 1

Define nested -if statement.

  • Ans 1: Nested if statement means an if statement inside another if statement. Nesting can be done up to any level.The programmer may use as many if statement inside another if statement as (s) he wants. However , the increase in the level of nesting also increas the commplexity of the 'nested if statement. The general form of nested if statement is as follows:If (condition){ if (condition){ block of inner if}}
Submit

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

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

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.