Page 22 - C++
P. 22

(a) 5:6:6:6:
                            (b) 4:7:5:3:

                            (c) 8:6:1:2:

                            (d) 7:5:3:1
               Ans  Output:

                     Option (a) & (c)
                     Maximum value of Pick will be 8

                     Minimum value of Pick will be 1


                     (1/2 mark for each correct option)

                     (1 mark each giving correct values of both  max & min)
        Q2.  (a)     What do you mean by Data Abstraction in OOPs? Explain its significance with a suitable         2

                     example.

               Ans  Data abstraction in OOPs is the process of showing only the essential details of a class
                     without going into background details.

                     E.g.




























                                                         Page No. 5
   17   18   19   20   21   22   23   24   25   26   27