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

Find the error in the following code.
Main();
{
printf(OK)
}

  • Ans 1: Errors: Error is " " commas are not present with OK in printf statement .
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

Find the error in the following code.
Main();
{
printf(OK)
}

  • Ans 1: Errors: Error is " " commas are not present with OK in printf statement .
Submit

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

Question # 1

Trace the error.
Int x = 5;
Int y
Y = x+3
Printf("%d" ,,y );

  • Ans 1: Error:
    • Error is terminator sign id not present in statements in which variable y is defined and declared.
Submit

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

Question # 1

Why the ampersand (& )used in scanf is function?

  • Ans 1: Ampersand (& )in scanf function: The ampersand is the address-off operators, In C, if we want to pass parameters by reference the address of (&) operators should be used. The scanf () function reads formatted input and has to put this input into something like a variable .
Submit

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

Question # 1

Show Output.
Inti =515
Printf (" =%5d",i);
Printf (" =%2d",i);

  • Ans 1: Output: I =515
    I =51
Submit

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

Question # 1

Describe getch ( ) function.?

  • Ans 1: getch ( ) function: The getch ( ) function is very handy in character manipulation. The getch ( ) function does not accept echo the character typed. This function does not accept any argument.However it returned the typed character to the calling function.
Submit

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

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 7

Question # 1

Write the syntax of printf() statement.

  • Ans 1: Printf(format string,&var,& var2,& var3,.......);
    printf (format string);
Submit

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

Question # 1

Trace the error.
#include <stdio.h>
Void main (void)
Printf("Hello World");

  • Ans 1: Errors: Errors is bracket have not been used in Main body.
Submit

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

Question # 1

Why the ampersand (& )used in scanf is function?

  • Ans 1: Ampersand (& )in scanf function: The ampersand is the address-off operators, In C, if we want to pass parameters by reference the address of (&) operators should be used. The scanf () function reads formatted input and has to put this input into something like a variable .
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?

Share your comments & questions here

Guest
  • No comments yet. Be the first to comment!