Page 67 - iprime_V2.2_class8
P. 67

A class can be defined as a user-defined blueprint or prototype that is used to create
                        objects.
                        BlueJ is an Integrated Development Environment (IDE) designed for beginners.

                        An identifier is the name given to an object in a Java program.
                        Keywords are the reserved words that cannot be used as identifiers as they have 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.  Which of the following symbols are used to write comments in Java?
                        a. //                                          c. /* and */

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

                    3.  Which of these is used to store values in memory?
                        a. Variables                                   c. Operators

                        b. Constants                                   d. Expressions

                    4.  Who is the developer of Java?
                        a. Guido van Rossum                            c. Mitchel Resnick

                        b. James Gosling                               d. None of these

                    5.  Which of the following variables is invalid?
                        a. Neha_Bhatia                                 c. Priya $pay

                        b. _Usha123                                    d. num



                                                                                               Program Coding      65
   62   63   64   65   66   67   68   69   70   71   72