Page 78 - CA_Blue( J )_Class9
P. 78

MIND DRILL






                       Solved Questions


                  A.  Tick ( ) the correct answer.
                      1.  Which of these made up of 128 symbols consisting of letters, digits and numbers, punctuation marks, and special
                         characters?
                         a.  UNICODE                                 b.  ASCII code
                         c.  Identifier                              d.  Separator
                      2.  Which of the following is the newline character?
                         a.  \t                                      b.  \f
                         c.  \’                                      d.  \n
                      3.  String Literals are any sequence of characters with a ………………….
                         a.  Pair of single quotes                   b.  Pair of double quotes
                         c.  Pair of curly braces                    d.  Semicolon at the end
                      4.  “a= 100” is an example of ………………….
                         a.  static Initialisation                   b.  dynamic Initialisation
                         c.  literal                                 d.  Identifier
                      5.  What is the literal value of a character in Java?
                         a.  'A'                                     b.  "A"
                         c.  A                                       d.  65
                      6.  Which of the following is used to denote the beginning and end of a block of code in Java?
                         a.  [ ]                                     b.  ( )
                         c.  { }                                     d.  < >
                      7.  Which of the following requires explicit type casting in Java?
                         a.  int to double                           b.  double to int
                         c.  int to long                             d.  char to int
                      8.  Range of values that can be stored in an “int” variable ………………….
                         a.  −128 to 127                             b.  −32768 to 32767
                             31
                                                                              63
                         c.  -2  to 2 -1                             d.  -2  to 2 -1
                                  31
                                                                         63
                      9.  A process of changing one type value to another type is known as ………………….
                         a.  Declaration                             b.  Escape sequence
                         c.  Delimiters                              d.  Type conversion
                     10.  What are the default values of the primitive data type “float”?
                         a.  0                                       b.  0.0
                         c.  0.0f                                    d.  0.0d
                     11.  Example of delimiters are ………………….
                         a.  { }                                     b.  ( )
                         c.  [ ]                                     d.  All of them
                     12.  A constant value is called a ………………….
                         a.  literal                                 b.  token
                         c.  punctuator                              d.  separators
                     13.  Minimum value of character that can be store in “char “.
                         a.  ‘\uffff’                                b.  ‘\u0000’
                         c.  ‘\uaaaa’                                d.  ‘\u1111’



                    76    Touchpad Computer Applications-IX
   73   74   75   76   77   78   79   80   81   82   83