Page 29 - CA_Blue( J )_Class9
P. 29

2.  The car is called ………………… in the given case study.
                        a.  Subclass                                   b.  Superclass
                        c.  Child                                      d.  Both a and c
                    3.  ………………… class uses the extends keyword.
                        a.  Subclass                                   b.  Superclass
                        c.  Parent class                               d.  Both a and c
                    4.  The concept of ………………… goes with the Inheritance principle.
                        a.  No Use                                     b.  reusability
                        c.  Polymorphism                               d.  None of these
                    5.  Extends keyword is used to inherit the properties of ………………… to ………………….
                        a.  superclass, subclass                       b.  superclass, parent class
                        c.  subclass, child                            d.  child, parent

                 F.  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): A compiler translates the entire source code of a program into machine code before execution.
                        Reason(R): Interpreters also translate the entire source code into machine code before execution, just like compilers.
                     2.  Assertion(A): Assembly language is faster than high-level programming languages because it is closer to machine
                        code.
                          Reason(R): Assembly language is a low-level programming language that requires translation by an assembler before
                        execution.
                     3.  Assertion(A): Machine language programs execute slower than programs written in any other programming language.
                          Reason(R): Machine language consists of binary code that is directly understood and executed by the computer's
                        CPU without the need for further translation.






































                                                                          Principles of Object-Oriented Programming  27
   24   25   26   27   28   29   30   31   32   33   34