vu cs605 Mid Term Subjective Solved Past Paper No.1
vu cs605 Software EngineeringII Solved Past Papers
This subjective solved past paper is related to book/course code vu cs605 Software EngineeringII which belongs to vu organization. We have 4 past papers available related to the book/course Software EngineeringII. This past paper has a total of 10 subjective questions belongs to topic Mid Term to get prepared. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to get prepared for exams by learning subjective questions online on NVAEducatio.
NVAEducation also facilitates users to download these solved past papers with an affordable prices. However, users are not enforced to pay for money, rather they can use credits to buy such stuff on NVAEducation. Users can earn credits for doing some little tasks and then you will be able to use that credits to buy solved past papers on NVAEducation.
main(){
int x = 10
const int *ptr = &x ;
*ptr = 5 ;
}
math * operator(math m);
math * operator (math m)
{
math temp;
temp.number= number * number;
return number;
}
The errors are in the arguments of the member operation function and also in the body of operator member function. Correct function should be
math *operator (math *m) {math temp;
temp = m;
temp.number= number * number;
return temp.number;
}
Page. No. 9/15
cin >> array[4];
cout <<"Enter Ninth postion ";
cin >> array[8];
How many elements does array 'day' has?
func(int x, int y)
func(int &x, int &y)
class String {
private:
char buf[25];
};
Write code for assignment (=) operator function which assign one String object to other object. Your code should also avoid self assignment
int length ;
length = other.length();
delete buf;
buf = new char [length + 1];
strcpy( buf, other.buf );
}Page. No. 15/15
Matrix :: Matrix ( int row , int col ) {
numRows = row ;
numCols = col ;
elements = new ( double * ) [ numRows ] ;
for ( int i = 0 ; i < numRows ; i ++ ) {
elements [ i ] = new double [ numCols ] ;
for ( int j = 0 ; j < numCols ; j ++ )
elements [ i ] [ j ] = 0.0 ;
}
}
Hint : This function belong to a matrix class, having
Number of Rows = numRows
Number of Columns = numCols