Page 102 - C++
P. 102

MODEL TEST PAPER -II

                                                           CLASS XII

                                                  Computer Science (083)


          1 (a)When a function is overloaded, there are multiple definitions of the functions. What makes the  [2]
             various definitions of the function different from each other?
          (b) Which C++ header file(s) will be essentially required to run/execute the following C++ code?   [1]
             void main()
             {
             int Rno=465;
             char SName[]= “Ajay Bhaskar”;
             cout<<setw(6) <<Rno<<setw(25)<<SName<<endl;
             }
          (c)  Rewrite the following program after removing the syntactical errors (if any). Underline each   [2]

              correction.

              #include<iostream.h>

              struct Screen
              { int C, R;}
              void ShowPoint(Screen P)
              {
              cout<<P.C, P.R<<endl;
              }
              void main()
              {

              Screen Point1 = (5, 3);
              ShowPoint(Point1); Screen
              Point2= point1; C.Point1+=
              2;

              Point1.R = Point1.R + 2;
              }

          (d)  Find the output of the following program:                                                          [3]
          #include<iostream.h>


              void ChangetheContent(int Arr[], int Count)
              {

              for(int C=0; C<Count; C++)
              Arr[C]= Arr[Count – C- 1];
          }
   97   98   99   100   101   102   103   104   105   106   107