Page 69 - TP_iPlus_V2.1_Class8
P. 69

2.  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

                     3.  It is a user defined blueprint to create an object.

                       a. Object                                        b. Class

                       c. Variable                                      d. Literal

                     4.  Who is the developer of Java?

                       a. Guido van Rossum                              b. James Gosling

                       c. Mitchel Resnick                               d. None of these

                     5.  Which of the following variables is invalid?

                       a. Sudha_Gupta                                   b. __abc123

                       c. Ridhi@tel                                     d. mygood_book

                 B.  Fill in the blanks using the words given below.


                                 Hints: BlueJ, encapsulation, comment, procedural language, Reference


                     1.  A .......................... is a programming language that uses small functions or procedures to perform
                        operations in a sequential manner.
                     2.  The wrapping up of data members and member methods together into a single unit is called

                        ...........................
                     3.  The non-primitive data types are also known as .......................... data types.

                     4.  A .......................... is a statement in Java program that is not executed by Java Compiler.
                     5.  .......................... is an IDE designed for beginners.

                 C.  Write ‘T’ for true and ‘F’ for false.

                     1.  The process of creating a new class with the help of class already is
                        called encapsulation.                                                              .....................
                     2.  In Java we use ";" as the line terminator.                                        .....................

                     3.  "while" and "for" are Java literals.                                              .....................

                     4.  Unary operators require one operand or value to perform operations.               .....................

                     5.  The first step while working in BlueJ is to create a new class.                   .....................



                                                                                                                  67
                                                                                               Program Coding
   64   65   66   67   68   69   70   71   72   73   74