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 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

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 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 2

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

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

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 4

Question # 1

Write down output of the following code.Void main ( ){int x= 10;If (x! = 10)Printf ("Hello");ElsePrintf ("World");}

  • Ans 1: Output : World
Submit

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

Question # 1

What is Conditional operator?Write its syntax.

  • Ans 1: Conditional Operator: Conditional Operator is used as an alternative to the if-else statement. It is a ternary operator
    (Requires three operand).
    Syntax: Its genera form is:
    Conditional expression < true-case statement
    : false-case statement;
    Explanation: The expression may be a relational or logical expression. If the expression is true then the true-case will be executed otherwise the false-case statement is executed.
Submit

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

Question # 1

Find errors.Void main ( ){Int a =2If (a= 1)Print f ("OK");ElsePrintf ("Cancel");Getch ()}

  • Ans 1: Erros is ; semicolon must be used after defining the variable a.
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.