Page 306 - C++
P. 306

CBSE AISSCE 2016-2017 Marking Scheme for Computer Science
                                      (Sub Code: 083 Paper Code 91 Outside Delhi)

                          I2.Status()

                   Ans    Output
                          101 : Pad # 125
                          102 : U Clip # 150
                          105 : Thumb Pin # 35

                          ( 1 mark for each correct line of output)

                          NOTE:
                          ●Deduct ½ Mark for not writing any or all ‘:’ / ‘#’ symbol(s)
                          ●Deduct ½ Mark for not considering any or all line breaks at proper
                          place(s)
                   (f)    What are the possible outcome(s) executed from the following code? Also                                2
                          specify the maximum and minimum values that can be assigned to variable N.
                          import random
                          NAV  = ["LEFT","FRONT","RIGHT","BACK"];
                          NUM  = random.randint(1,3)
                          NAVG = ""
                          for C in range(NUM,1,-1):
                            NAVG = NAVG+NAV[I]
                          print NAVG

                           (i)   ​BACKRIGHT           (ii)  ​BACKRIGHTFRONT

                           (iii) ​BACK                (iv) ​LEFTFRONTRIGHT


                   Ans    (i) BACKRIGHT
                          Max value 3 and minimum value 1 for variable NUM

                          OR

                          I or N not defined

                          OR

                          ; wrongly placed in line 2

                          (1 mark for mentioning the first option)
                          NOTE: No marks to be awarded for writing any other option or any other
                          combination

                          (½ mark each for max and min values of NUM)
                          OR
                          (Full 2 Marks for mentioning the specific error(s))

             2     (a)    List four characteristics of Object Oriented programming.                            2
                   Ans        ●  Encapsulation
                              ●  Data Hiding
                              ●  Abstraction
                              ●  Inheritance
                              ●  Polymorphism

                          (½ mark for naming each characteristic - upto 4 characteristics)
                   (b)    class Exam:                                                                          2

                                                     Page #16 of 28
   301   302   303   304   305   306   307   308   309   310   311