Page 347 - C++
P. 347

CBSE AISSCE 2017-2018 Marking Scheme for Computer Science
                                       (2018-2019 Sub Code: 083       Paper Code: 91)

                           Option [ii]
                           Functions 1,2,4,5 are overloaded

                           Reason: Function 3 and 6 not considered in this case because it would give
                                        redeclaration error for Function 5
                                        OR Any equivalent valid reason

                           OR
                           Option [iii]
                           Functions 1,2,4,6 are overloaded

                           Reason: Function 3 and 5 not considered in this case because it would give
                                        redeclaration error for Function 6
                                        OR Any equivalent valid reason

                           (Full 2 Marks for any of the Options [i] / [ii] / [iii])

                                  NOTE:
                                      ●  Deduct ½ Mark for not stating the reason
                                      ●  1 Mark for partially correct answer

                           OR
                           (1 Mark for writing only any 2 Functions from Options [i] / [ii] / [iii])
                           (1½  Mark for writing only any 3 Functions from Options  [ii] / [iii])



                     (b)   Observe the following C++ code and answer the questions (i) and (ii).
                           Note​: Assume all necessary files are included.
                           class FIRST
                           {
                             int Num1;
                           public:
                             void Display()                 //Member Function 1
                             {
                                cout<<Num1<<endl;
                             }
                           };

                           class SECOND: public FIRST
                           {
                             int Num2;
                           public:
                             void Display()                //Member Function 2
                             {
                               cout<<Num2<<endl;
                             }

                           };
                           void main()
                           {


                                                        Page #5/35
   342   343   344   345   346   347   348   349   350   351   352