Page 11 - C++
P. 11

(e)   Write the output of the following Python program code:                                        3














               (f)   Study the following program and select the possible output(s) from the options (i) to (iv)    2
                     following it. Also, write the maximum and the minimum values that can be assigned to
                     the variable Y.









                     i) 0 : 0

                     ii) 1 : 6
                     iii) 2 : 4

                     iv) 0 : 3
        Q2     (a)   Explain operator overloading with the help of an example.                                     2

               (b)   Observe the following Python code and answer the questions (i) and (ii):


















               (i)   How is data member „count‟ different from data member „Author‟?                               1
               (ii)   Fill in the blanks:                                                                          1
                     B= BOOK()
                     ______________________________ #Write statement to invoke Function 2

                                                       Page No. 9
   6   7   8   9   10   11   12   13   14   15   16