No.  1 .  Name the header files(s) used for the following function.                 4
          (i) strcmp( )      (ii)    fabs( )    (iii)   toupper( )    (iv)    setw( )


             Q. No.  2 .     Rewrite the following code after removing syntactical error(s), if any.
       
                      Underline each correction:                                                                                                  4
          #include[iostream.h]
typedef  char Text (80);
void main( )
{text T=”Indian”;
Int count=strlen (T);
Cout<<T<<’has’<<count<<’characters’<< end l;
}
         

Q.  No. 3.   Illustrate the concept of Inheritance with the help of example.        4

Q. No.  4.  Differentiate between object oriented programming and procedural programming.  3    

Q. No.  5.  Explain constructor overloading with example.        4

Q. N.o. 6.  Give the output of the following program:        4
# include <iostream.h>
int global =10;
void func (int & x, int y)
{ x=x-y; y= x* 10;
Cout<<x<<’,’<<y<<’\n’;}
Void main( )
{
int global=7;
func (::global,global);
cout<<global<<’,’<<::global<<’\n’;
func(global,::global);
cout<<global<<’,’<<::global<<’\n’;
}

Comments