Page 66 - Trackpad_ipro 4.1_Class8
P. 66

Keywords are the reserved words that cannot be used as identifier names as they carry
                         a special meaning for the Java compiler.

                          A data type is used to define the size and type of value that a variable can store.
                          A literal denotes a constant value.
                          Variables are the memory locations used to store values.

                          A comment is a statement in a Java program that is not executed by the Java compiler.

                          An operator is a symbol that tells the compiler to perform specific mathematical or
                         logical calculations.





                    OneOne Touch          Learn                                               Section A (Objective)



                  A.  Tick ( ) the correct option.
                      1.  Which of these is not a feature of the Java language?

                         a. It is a case-sensitive language

                         b. It is a platform-dependent language

                         c. It is a robust language

                         d. It is an object-oriented language

                      2.  Identify the symbol used to add comments in Java.

                         a. //                                           b. /** and */
                         c. /* and */                                    d. All of these

                      3.  Which of these is used to store values in memory?

                         a. Variables                                    b. Constants

                         c. Operators                                    d. Expressions

                      4.  Which of the following is the developer of Java?

                         a. Guido van Rossum                             b. James Gosling

                         c. Mitchel Resnick                              d. None of these

                      5.  Select the invalid variable from the following options:

                         a. Neha_Bhatia                                  b. _Usha123
                         c. Priya $pay                                   d. num








                    64     iPro (Ver. 4.1)-VIII
   61   62   63   64   65   66   67   68   69   70   71