Past Papers 12th Class Computer Science Ch 9



Past Papers 12th Class Computer Science Ch 9 Questions



  • Define Constant.
  • Write any two rules for Naming variable.
  • Define Expression.
  • Differentiate between =´a` and =a.
  • what is meant by Associativity of Operators?
  • Difference between declaring and defining a variable.
  • What is the value of Y after the following code executes:
               float Y=3.4+SQRT(25.0)
  • Give some example of valid variable names.
  • Describe variable declaration.
  • Define character constant.
  • Trace the error.
               Int a=6
               ++a;
               printf(´´%f`, a)
  • Define comments in C.
  • Distinguish between a constant and a variable.
  • What is compound assignment operator?
  • Define increment decrement operators.
  • What is the use of AND operator?
  • Trace the Output
            int number=6;
            int x=0;
            x=--number;
            printf(´´%d``,x);
  • what happen when arithmetic under flow occurs?
  • Define variable.
  • Find the error in the following code:
           #include<std10.h>
           {
            Intx,y,z
            z=x+y+z
           }
  • Identify the error in the following lines.
           Integer A=2+3;
           Float B=5;
           int C=A+B;
  • Describe the identifier.
  • Trace the error in the following code:
           int x=10 y=15;
           x=x++
           y=++y;
           printf(´´%d %d``, x,y);
  • predict the output of the following code:
             int number =6;
             ++number;
             printf(´´%d\n``,number);
  • differentiate beween string constant and character constant.
  • List any four types of integer data in C-Language.
  • Differentiate between implicit and explicit type casting.
  • Predict the output of the following
          void main( )
         {
          int x=1;
          x++;
          printf(´´%d```,x);
          }
  • Define keywords.
  • What do you mean by assignment operator?
  • List two types of identifier in C.
  • how are characters stored?
  • Why is it important to assign a data type?
  • What is statement terminator?
  • Write the use of turbo c++?
  • Naming data type use to store real data type?
  • Write a shortcut key to run.
  • Write legal character for identifier?
  • Why does integer overflow occurs?
  • Find the error.
          Void main ()
          {
           Int c=7
           printf(´´%d``, c:
          }
  • write the use of operators.
  • What is the use of assignment statement?
  • Differentiate between unary and binary operators.
  • List four keywords in C language.
  • Write about data types in C.
  • how does cancellation error occur?
  • Describe variable initializtion.
  • What is garbage value.
  • Find errors of C code:
           int a=10, b=40
           printf(´´sum;´´a+b)

Post a Comment

0 Comments