Page 83 - CA_Blue( J )_Class9
P. 83

5.  Datatype variable = (datatype)variable_to_be_converted ; is the syntax of ………………….
                       a.  type conversion                         b.  Initialisation
                       c.  declaration                             d.  operation
                     6.  “Array” is an example of ………………….
                       a.  primitive data type                     b.  Non-primitive data type
                       c.  character                               d.  Assignment
                     7.  While naming an identifier, we must start with ………………….
                       a.  letter                                  b.  underscore (_)
                       c.  dollar ($).                             d.  All of these
                     8.  Which of the following is special character that separate tokens?
                       a.  Operator                                b.  Digit
                       c.  Delimiter                               d.  None of these
                     9.  Primitive data types in ascending order : byte < ………………… < int < long.
                       a.  double                                  b.  boolean
                       c.  char                                    d.  short
                    10.  0.5 is a ………………… literal.
                       a.  character                               b.  boolean
                       c.  real                                    d.  string
                    11.  Which of the following is also called type casting?
                       a.  type conversion                         b.  initialisation
                       c.  declaration                             d.  operation
                    12.  “Object” is an example of ………………….
                       a.  primitive data type                     b.  non-primitive data type
                       c.  character                               d.  assignment
                    13.  There are ………………… categories of data types in java.
                       a.  two                                     b.  three
                       c.  one                                     d.  five
                    14.  “++” is known as ………………….
                       a.  relational operator                     b.  logical operator
                       c.  increment operator                      d.  decrement operator
                    15.  ………………… used to separate the variable.
                       a.  separators                              b.  operators
                       c.  punctuators                             d.  none of these
                    16.  ASCII range of uppercase letters.
                       a.   1-26                                   b.  65-90
                       c.  97-122                                  d.  none of these

                 B.  Fill in the blanks.
                     1.  Implicit Type conversion takes place when the two types are ………………….
                     2.  Non-primitive data types are also called ………………… data types.
                     3.  Size of “short” data type is ………………… then “long” data type.
                     4.  ………………… a special Java literal which represents a null value.
                     5.  Range of byte is ………………….
                     6.  Syntax of assign character ‘A’ to ch is ………………….
                     7.  A …………………  member can be accessed by static methods only.
                     8.  In primitive data types, the memory is of ………………… size.

                 C.  Answer the following questions.

                     1.  Define literals. Also, define real and boolean literals.
                     2.  Write the difference between declaration and initialisation.

                                                                                               Values and Types  81
   78   79   80   81   82   83   84   85   86   87   88