Final term paper of cs 201

My current paper of spring 2011-07-15
Spring 2011
Q 1
Give gernal syntax of class template? (2)
Q2
What is this pointer? Give an example(2)
Q3
What is first parameter to stream insertion and stream exertion operater function?(2)
Q4
Why we use editors for writing programes?(2)
Q5
How is the following statement interpreted by the compiler?(3)
abc
Q6
What happens when we use new and delete operators(3)
Q7
Given lines of code are three most important functions in matrix class described each of them in one line(3)
Matrix(int=0,int=0);
Matrix(const Matrix&);
~Matrix();
Q8
Write a declaration fuction of called divide that takes arguments fo tye int and return of type float(3)
Q9
What is automatic veriable and why it is called automatic veriable?(5)
Q10
What do u mean by garbage and how it works in c++ and java(5)
Q11
Do u think that friend function violates the encapsulation justify(5)
Q12
Consider the following code a give the out put before and after the updateAge function called(5)
Void updateAge(int[]);
Int main ()
{
Int age[5]=10;
Cout array element before passing to functionendl;
For (i=0,i<5,i++)
Cout array of element i+1age[i]endl;
}
UpdateAge (age);
Cout array element after passing to functionendl;
For (i=0,i<5,i++)
Cout array of element i+1age[i]endl;
}

Void updateAge (int age[], int size)
{
Age[3]=20
}




Sponsored Links