Page 26 - CA_Blue( J )_Class10
P. 26

(ii)  Java code is:
                         a. Compiled and interpreted                b.  Only compiled
                         c. Only Interpreted                        d.  Translated
                    (iii)  Java source code is compiled to produce:
                         a. Object code                             b.  Byte code
                         c. Final code                              d.  Machine code
                    (iv)  JVM is an/a:
                         a. Interpreter                             b.  Compiler
                         c. Intermediate code                       d.  High-level language
                Ans.  (i) c  (ii) a  (iii) b   (iv) a
                  5.  Name any two basic principles of object-oriented programming.                               [2019]
                Ans.  Two basic principles of object-oriented programming are Encapsulation and Inheritance.
                  6.  Define data abstraction.                                                                    [2018]
                Ans.  Data abstraction is the property by which the essential features are shown without knowing the background details.
                  7.  What is inheritance?                                                                        [2017]
                Ans.  Inheritance is the process of using the properties of a class in another class. It allows you to use the attributes and behaviour of
                    a class into another class.
                  8.  Define encapsulation.                                                                       [2016]
                Ans.  Encapsulation is one of the basic concepts in object-oriented programming. The wrapping up of data members and member
                    methods together into a single unit is called encapsulation.
                  9.  State the Java concept that is implemented through:                                         [2013]
                     i.  a superclass and a subclass.
                     ii.  the act of representing essential features without including background details.
                Ans.  i.  Inheritance                               ii.  Abstraction














































                2424  Touchpad Computer Applications-X
   21   22   23   24   25   26   27   28   29   30   31