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

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

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

  • Total Questions10

  • Available Sets4

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

Question # 1

What is the use of assignment statement ?

  • Ans 1: An Assignment statements gives value to a variable .
    Syntax: the general Syntax of an assignment statement is:
    Variable = expression;
    Example: x= 5
    Givess x the value 5.
    The value of a variable may be changed.
    If x has the value 5, then the assignment statement : x=x+1
Submit

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

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

Question # 1

What is the use of assignment statement ?

  • Ans 1: An Assignment statements gives value to a variable .
    Syntax: the general Syntax of an assignment statement is:
    Variable = expression;
    Example: x= 5
    Givess x the value 5.
    The value of a variable may be changed.
    If x has the value 5, then the assignment statement : x=x+1
Submit

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

Question # 1

List Type of identifier?

  • Ans 1: There are two types of identifier .Standard identifiersUser-defined identifiers
Submit

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

Question # 1

Identify the errors in the following lines:

  • Ans 1: Integer A= 2+3 ;
    Float B =5;
    int C = A+B
    Errors in the Lines :
    1. Integer A =2+3
    2. If we want to store a value in integer variable we should write int instead of integer in this line integer is written which is an error
    3. Float B =5;
    4. If the data type is float then value must be in point but in this line an integer value is assigned to float variable which is an error
    5. Int C = A+B;
    6. A is an integer variable and B is a float variable, integer can be added in float but its answer cannot be stored in an integer and in this line the answer of integer and float variable is stored in integer variable which is an error.
Submit

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

Question # 1

Write C statement to print the value of unsigned long x.

  • Ans 1: Statement to print the value of unsigned long x:

    Unsigned long n;
    Printf("%",n);

Submit

9th Chapter

12th Computer Science Chapter 9 Preparation

Here you can prepare 12th Computer Science Chapter 9 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!