Page 268 - IT-802_class_12
P. 268

Solved Exercise




                                                        Section  A
                                                 (Objective Type Questions)
        A.  Choose the correct option.
           1.  Which of the following is a blueprint to create similar kind of objects?
             i.  Instance                                       ii.  Class
             iii. Method()                                      iv.  All of these
           2.  What is a named memory location where a value is being stored?
             i.  separator                                      ii.  variable
             iii. data type                                     iv.  sum
           3.  Which operator is used to assign a value or an expression to a variable?
             i.  Logical Operator                               ii.  Relational Operator
             iii. Assignment Operator                           iv.  None of these
           4.  To deal with multiple data together, we use the concept of ............................ .
             i.  Loops                                          ii.  Arrays
             iii. Strings                                       iv.  None of these
           5.  Which of the following constructs can be used for selection?
             i.  For                                            ii.  Switch
             iii. if-else                                       iv.  Both ii and iii
           6.  Which of the following keywords is used for exception handling?
             i.  exep                                           ii.  excepHand
             iii. throw                                         iv.  All of these
           7.  Which of these is a type of variable in Java?
             i.  Instance Variable                              ii.  Local Variable
             iii. Static Variable                               iv.  All of these
           8.  The break statement in Java is used to ............................ .
             i.  Terminates from the loop immediately           ii.  Terminates from the program immediately
             iii. Skips the current iteration                   iv.  All of these
           9.  Array in java is ............................ .
             i.  Collection of similar elements                 ii.  Collection of elements of different types
             iii. The data type of consisting of characters     iv.  None of these

          10.  Wrapper class in java is ............................ .
             i.  Used to encapsulate primitive data types       ii.  Declare new classes called wrapper
             iii. Create a new instance of the class            iv.  None of these
          11.  A group of statements which get executed based on a condition in java is called ............................ .
                                                                                           [CBSE Sample Paper 2023]
             i.  Selection                                      ii.  Sequential
             iii. Iteration                                     iv.  None of these


            Ans.  1. ii    2. ii    3. iii    4. ii    5. iv    6. iii    7. iv    8. i     9. i      10. i
                 11. i




          266   Touchpad Information Technology-XII
   263   264   265   266   267   268   269   270   271   272   273