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

Predict the output of the following code.
If (4 %2 ==0)
Printf ("programming makes the life interesting \n"); else
Printf ("Programming is difficult to learn");

  • Ans 1: Output:
    Programming makes the life interesting.
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

Predict the output of the following code.
If (4 %2 ==0)
Printf ("programming makes the life interesting \n"); else
Printf ("Programming is difficult to learn");

  • Ans 1: Output:
    Programming makes the life interesting.
Submit

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

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

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

Find errors;Void main (){Int a ;b;A= 10, b=5If (a= <b)Printf ('A is less than B');Getch ( );}

  • Ans 1: Errors is method for defining the variable is not correct.
Submit

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

Question # 1

Write down the output of following code:
Char ch = 'a':
Switch (ch)
{
Case 'a':
Printf("A");
Case 'b';
printf("B")

  • Ans 1: Output:
    A
Submit

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

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

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?