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

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

  • Ans 1: 444
    44
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

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

Trace the error in the following code.
Float area , r
Printf (" Enter Radius")
scanf(%f"r);

  • Ans 1: Errors:
    • 1st error no Main body is present
    • 2nd error is : terminator sign is not present in statement where variable is defined.

Submit

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

Question # 1

Trace the output.
Float f = 3.14159;
Printf ("f = %4.2f",f);

  • Ans 1: Output: f=3.14
Submit

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

Question # 1

Trace out the errors in the following code.
Int a,
Prin ("%d",a);

  • Ans 1: Errors:
    • 1st error is variable a must be declared with data type char.
    • 2nd error is spelling of printf in print statement is wrong.
Submit

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

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 7

Question # 1

Predict the output of the following code.
{
Printf(."Hello World");
}

  • Ans 1: Output: Hello World
Submit

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

Question # 1

Explain getch ( ) function .

  • Ans 1: The getch ( ) function is very handy in character manipulation . 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 9

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

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!