Page 25 - CA_Blue( J )_Class10
P. 25

B.  Fill in the blanks.
                    1.  A ………………… paradigm is a way of programming.
                    2.  ………………… has global data sharing of functions.
                    3.  A ………………… language is a programming language that is machine-dependent.
                    4.  The concept of ………………… is a good feature for avoiding data redundancy.
                    5.  Java is an example of ………………… programming language.

                 C.  Answer the following questions:
                    1.  What is the use of inheritance?
                    2.  What does POP stand for?
                    3.  Define polymorphism with a real-life example.
                    4.  What are the disadvantages of Procedure-Oriented Programming?
                    5.  What are the differences between POP and OOP?

                 D.  Assertion and Reasoning based questions.

                       The following questions consist of two statements – Assertion (A) and Reason (R). Answer these questions by selecting the
                       appropriate option given below:
                       a.  Both A and R are true, and R is the correct explanation of A.
                       b.  Both A and R are true, but R is not the correct explanation of A.
                       c.  A is true, but R is false.
                       d.  A is false, but R is true.
                    1.  Assertion (A): Data abstraction is a fundamental concept in object-oriented programming (OOP).
                        Reason (R): Data abstraction allows developers to create complex data types where only relevant information and functionalities
                       are exposed, while implementation details are hidden.
                    2.  Assertion (A): Encapsulation and data abstraction are often used interchangeably in object-oriented programming.
                        Reason (R): Encapsulation hides the internal workings of an object while data abstraction focuses on exposing only relevant
                       information.
                                             Previous Years' Questions



                    1.  The process of binding the data and method together as one unit is called as:               [2022]
                       a.  Encapsulation                               b.  Inheritance
                       c.  Polymorphism                                d.  Dynamic binding
                   Ans.  a.
                    2.  The program code written in any high-level language to solve a problem is:                  [2022]
                       a.  Object code                                 b.  Source code
                       c.  Machine code                                d.  Bytecode
                   Ans.  b.
                    3.  Choose the odd one:                                                                         [2022]
                       a.  Robust                                      b.  Platform Independent
                       c.  Inheritance                                 d.  Multithreading
                   Ans.  c.
                    4.  Read the following case study and answer the questions given below by choosing the correct option:   [2022]
                        Java compilation is different from the compilation of other high-level languages. Other high-level languages use interpreter or
                       compiler but in Java, the source code is first compiled to produce an intermediate code called the byte code, this byte code is
                       platform independent and is a highly optimized set of instructions designed to be executed by Java in the run time system , called
                       JVM (Java Virtual Machine), JVM is a Java interpreter loaded in the computer memory as soon as Java is loaded. JVM is different
                       for different platforms.
                        (i)  Full form of JVM is:
                        a.  Java Visual Machine                        b.  Joint Vision Mechanism
                        c.  Java Virtual Machine                       d.  Java Virtual Mechanism



                                                                                                                       23
                                                                      Introduction to Object-Oriented Programming Concepts  23
   20   21   22   23   24   25   26   27   28   29   30