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

Find the output of the following code
#include <stdiio.h>
Void main ( )
{
Char grade ='c';
If (grade ='a' || grade= 'b' & &grade ='c'
Printf ("FAIL");
Else
Prints ("pass");
}

  • Ans 1: Output:
    Pass
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

Find the output of the following code
#include <stdiio.h>
Void main ( )
{
Char grade ='c';
If (grade ='a' || grade= 'b' & &grade ='c'
Printf ("FAIL");
Else
Prints ("pass");
}

  • Ans 1: Output:
    Pass
Submit

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

Question # 1

Trace the output.
If (1==2)
Printf ("hello");
Elde
Printf( "hello");
Else
Printf ("correct it");

  • Ans 1: Output ; Correct it
Submit

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

Question # 1

Predict the output for the following code.
Int a, b,c;
A= 10;
B= 3;
If (a %b == 1)
C= 0;
Else
C=1;
Printf ("%d",c)

  • Ans 1: Output :
    C = 0
Submit

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

Question # 1

Write use of if,else if statements.

  • Ans 1: Nested if statement can become quite complex, if there are more than three alternatives and indentation in not consistent, it may be difficult to determineThe logical structure of the if statement. In such situations,if statements with multiple alternatives (if-else-if) can be a good option.The general of if -else statements is as follows:Syntax The general form of if -else -if statement is as follows:If (condition1,) statement,;Else if (condition2) statement2; " " "Else if (conditionn) statementni) Else statementki
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 error.
Int a ; b= 5
If (a<b)
Printf ("\nA is less than b");

  • Ans 1: Error:
    • 1st error is wrong method has be used to declare variables.
    • 2nd error is terminator sign has not been use in statement where variables are being defined.
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?