Page 140 - Computer science 868 Class 12
P. 140

MIND DRILL



                   Solved Questions


              A.  Tick ( ) the correct option:
                  1.  ………………… splits the programming code into events or procedures.
                    a.  Object-oriented programming                 b.  Procedural programming
                    c.  Both a and b                                d.  None of these
                  2.  The development of programming becomes faster as the OOP concept has the property of ………………… .
                    a.  reusability                                 b.  delete
                    c.  object                                      d.  class
                  3.  Which of the following is the component of object-oriented programming?
                    a.  Objects                                     b.  Classes
                    c.  Methods                                     d.  All of these
                  4.  ………………… is a procedure of combining data and functions together.
                    a.  Data Abstraction                            b.  Polymorphism
                    c.  Encapsulation                               d.  None of these
                  5.  Which of the following in Java is the method that allows one class to inherit the properties (data members and member methods)
                    of another class?
                    a.  Inheritance                                 b.  Data Abstraction
                    c.  Polymorphism                                d.  Encapsulation
                  6.  ………………… is a reserved keyword used for Java coding.
                    a.  For                                         b.  Int
                    c.  int                                         d.  While
                  7.  Which of the following is an example of OOP language?
                    a.  Java                                        b.  C++
                    c.  C#                                          d.  All of these
                  8.  Which of the following operator is used to create an object?
                    a.  class                                       b.  object
                    c.  in                                          d.  new
                  9.  ………………… is an instance of a class.
                    a.  Data abstraction                            b.  Object
                    c.  Inheritance                                 d.  None of these
                 10.  Which class is inherited?
                    a.  Derived class                               b.  Base class
                    c.  Superclass                                  d.  Both b and c

                 Answers
                 1.  b           2.   a          3.  d          4.  c           5.  a          6.   c      7.  d
                 8.  d           9.   b          10.  d

              B.  Fill in the blanks:

                  1.  Class is a factory of ………………… .
                  2.  ………………… start with a “/**”.
                  3.  ………………… package contains all the required materials to develop applets.
                  4.  All library class are included in ………………… .
                  5.  Java is a platform ………………… programming language.
                  6.  ………………… are the statements in the program code which are non-executable.





                138138  Touchpad Computer Science-XII
   135   136   137   138   139   140   141   142   143   144   145