Page 34 - CA_Blue( J )_Class10
P. 34

Unsolved Questions



              A.  Tick ( ) the correct answer.
                  1.  If Animal is a class, then which of the following can be the object of the Animal class?
                    a.  Tiger                                       b.  Deer
                    c.  Lion                                        d.  All of these
                  2.  Which of the following can be defined as a user-defined data type?
                    a.  Class                                       b.  Object
                    c.  Primitive                                   d.  None of these
                  3.  Which of the following keywords are used to define a class?
                    a.  class                                       b.  public
                    c.  Both a and b                                d.  None of these
                  4.  Which of the following is the correct way to create an object of the class “Smartphone”?
                    a.  Smartphone obj = new Smartphone;            b.  Smartphone obj = new Smartphone();
                    c.  Smartphone object = Smartphone();           d.  None of these
                  5.  Which of the following represents the constructor of the ABC class?
                    a.  ABC()                                       b.  ABC
                    c.  ABCConstructor                              d.  None of these
              B.  Answer the following questions:

                  1.  What is a class?
                  2.  What is an object?
                  3.  What is the process of creating instances of a class called?

              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): An object in Java is a blueprint for a class.
                     Reason (R): A class defines the characteristics and behaviors that objects of that class will have.
                  2.  Assertion (A): The this keyword in Java can be used to refer to instance variables within a class.
                     Reason (R): The this keyword helps distinguish between instance variables and parameters or local variables with the same
                    name.


                                          Previous Years' Questions


                  1.  The blueprint that defines the variables and the methods common to all of a certain kind is termed as:   [2022]
                    a.  class                                       b.  object
                    c.  package                                     d.  method
                Ans.  a.
                  2.  Why is an object called an instance of a class?                                        [2010, 2017]
                Ans.  While creating an object of a class, we are basically defining a variable that has the size of the total bytes of all the data members.
                    Hence, an object is also called an instance of a class as it has the same properties as its class.
                  3.  Write a Java statement to create an object mp4 of class Digital.                            [2013]
                Ans.  Digital mp4 = new Digital();





                3232  Touchpad Computer Applications-X
   29   30   31   32   33   34   35   36   37   38   39