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

What is the use of field width specifier?

  • Ans 1: Field Width Specifier: In a C program, the number of columns used to display a value on the screen is referred to a field width.
    Field width: Field-width specifiers describe the number of columns that should be used to print a value.
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

What is the use of field width specifier?

  • Ans 1: Field Width Specifier: In a C program, the number of columns used to display a value on the screen is referred to a field width.
    Field width: Field-width specifiers describe the number of columns that should be used to print a value.
Submit

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

Question # 1

List some input functions in C-Language.

  • Ans 1: Input functions in C-Language:

    • Getchar ( )
    • Getch ( )
    • Gets ( )
    • Scanf ( )
Submit

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

Question # 1

Find out the output of the following code.
Int a, b, c;
a =b =c = 6;
a= b;
b= a;
C=2;
Printf("%d%d%d",a,b,c);

  • Ans 1: Output:
    6,6,6
  • Ans 2:
Submit

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

Question # 1

Trace the output.
Void main ( ){
Int x,y, z;
X = 10;
Y = 20;
Z = 30;
X = x+ y;
Y = y+ z;
Z = x- y;
Printf("result = %d%d%d\n",x,y,z);
getch();}

  • Ans 1: Output
    Result = 30, 50 10
Submit

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

Question # 1

Write the output of the following code.
Int x, y,z, r;
Printf("Enter three numbers;");
Scanf("%d%d%d", &x,&y, &z);
r =x + y *z ;
Printf( "Enter three numbers :");
Scanf ("%d%d%d", &x,&y,&z);
r = x+y* z;
Printf ("%d",r);

  • Ans 1: Output :
    Enter three number 235
    r = 17
Submit

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

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 7

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 8

Question # 1

Write the output of the following code.
Int x, y,z, r;
Printf("Enter three numbers;");
Scanf("%d%d%d", &x,&y, &z);
r =x + y *z ;
Printf( "Enter three numbers :");
Scanf ("%d%d%d", &x,&y,&z);
r = x+y* z;
Printf ("%d",r);

  • Ans 1: Output :
    Enter three number 235
    r = 17
Submit

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

Question # 1

What is the use of "scan f" function?Also write its syntax.

  • Ans 1: Scan f Function: In C, the standard input library provides function to perform input and output operations. This input operations are performed by scanf ( ) function. The scanf (pronounced as scan -eff) function is versatile as it is equally good for numeric as well as string input .
    Syntax : Here is the syntax of scanf function.
    Scanf(format string, &var1,&var2, &var3,....);
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.