Page 36 - C++
P. 36

Ans


























                      (½ mark for each correction)

               (d)    Write the output of the following Python code:                                                2

















               Ans    14 : 7
                      8 : 49

                      (1 mark for each line of correct output)

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














               Ans    ['d', 'o', 'I', 'i', 't', '@', '@', '1', '1', '2', '3', '!', '!']
                      (½ mark for converting „D‟ to „d‟)
                      (½ mark for converting „I‟ to „i‟)
                      (½ mark for substituting each „ „ with the consecutive character)
               (f)    Study the following program and select the possible output(s) from the options (i) to (iv)    2


                                                        Page No. 19
   31   32   33   34   35   36   37   38   39   40   41