ICS Part 2 Computer Science Chapter 10 Short Questions Test With Answer

Online Short Questions For Chapter 10 "ICS Part 2 Computer Science Chapter 10 Short Questions Preparation "

Try The Short Questions For ICS Part 2 Computer Science Chapter 10 Short Questions Preparation

  • Total Questions10

  • Available Sets9

Computer Science - ICS Part 2 Computer Science Chapter 10 Short Questions Preparation

Question # 1

Trace the error in th following code.
#include (std10.h)
Void main (void);
{
x = 5;
y = 6;
z = x+y;
printf ("%d",z);
}

  • Ans 1: Errors: Errors is wrong library has been used in program.
Submit

Prepare Complete Set Wise Questions For Chapter 10 "ICS Part 2 Computer Science Chapter 10 Short Questions Preparation "

ICS Part 2 Computer Science Chapter 10 Short Questions Preparation - Set 1

Question # 1

Trace the error in th following code.
#include (std10.h)
Void main (void);
{
x = 5;
y = 6;
z = x+y;
printf ("%d",z);
}

  • Ans 1: Errors: Errors is wrong library has been used in program.
Submit

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

Question # 1

Trace the error.
#include <stdio.h>
Main()
{
printf("Hello world")
}

  • Ans 1: Errors:
    • Errors is ; semicolon is not written in printf statement.
Submit

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

Question # 1

Find the errors in the following code.
#include <stdio.h>
Void main ()
{
Float area ;r ;
Scanf ("%c"&r);
Area = 3.14*r*r;
Printf ("area = %f"area);
}

  • Ans 1: Error:
    • Error is the value of variable are is not declared.
Submit

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

Question # 1

Give single print statement to print the following message 'I Love Pakistan".

  • Ans 1: Single Print Statement:
    printf("I\N Love \n Pakistan");
Submit

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

Question # 1

Define Escape sequence.

  • Ans 1: Escape sequences are characters which are specified in the format string of the printf statement in combination with backslash (\). These cause an escape from the normal interpretation of a string so that the next character is recognized as having special meaning.
Submit

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

Question # 1

Write the Output of the following code :
Main()
{
printf("444\n");
printf("44");
}

  • Ans 1: 444
    44
Submit

ICS Part 2 Computer Science Chapter 10 Short Questions Preparation - Set 7

Question # 1

Determine the output of the given segment.
inti=212;
Printf ("i = %5d" ,i);
Printf ("i =%3d" ,i);

  • Ans 1: Output:
    i 212
    i=212
Submit

ICS Part 2 Computer Science Chapter 10 Short Questions Preparation - Set 8

Question # 1

Trace the errors.
#include<stdio.h>
Void main()
{
printf ("High Level Language")
}


  • Ans 1: Errors:
    • Errors is terminator sign has not been used in printf statement.
    Main()
    {
    printf("555\n");
    printf ("55");
    }
Submit

ICS Part 2 Computer Science Chapter 10 Short Questions Preparation - Set 9

Question # 1

Trace the error in the following code.
#include(stdio.h);
Void main()
{

Printf ("OK");
}

  • Ans 1: Errors:
    • 1st error is brackets have been used in library which is not allowed.
    • 2nd error is both commas are not written in printf statement.
Submit

10th Chapter

12th Computer Science Chapter 10 Preparation

Here you can prepare 12th Computer Science Chapter 10 Problem Solving Preparation. Click the button for 100% free full practice test.

Is this page helpful?