VU Projects Video Lectures Handouts Past Papers Quizzes Assignments & GDB border= Members Free SMS Service FB Page
VU Projects Video Lectures Handouts Past Papers Quizzes Assignment,GDB Members SMS Service FB Page

Share your Midterm Paper Here 

Also check this link 

for Past Paper

http://vuhelp.pk/group/cs304/forum/topics/share-the-mid-term-paper

Views: 286

Replies to This Discussion

Moazz solved midterm 

Attachments:

Midterm paper

Attachments:

More mid term paper

Attachments:

today's​ paper CS304: 3-6-17 by Tahir Akbar

MCQS were not from past papers but were so easy, all of them.

QUESTIONS:
1. The use of the "this pointer" is slightly changed in a constant member function. Do you think so? In both conditions, provide a solid justification. (3 marks)

2. Given the code:
class Rectangle{
private:
int Length;
int Width;
public:
int getLength();
int getWidth();
Rectangle operator ++();
};
int Rectangle::getLength{
return Length;
}
int Rectangle::getWidth{
return Width;
}
You are required to overload the operator '++' for the class Rectangle. (3 marks)

3. Given the Object Oriented Model (Two Objects of Lesson and Topic, there was a relation of Aggregation from Topic to Lesson). Explain the relations between Objects. Write the C++ code to declare the attributes and behavior(functions) of these Objects and also implement the relation in your code. (5 marks)

4. Given the code:
class Student{
private:
static int noOfStudents;
public:
static int getNoOfStudents();
};
In above code, we have declared a data-member 'static'. Briefly explain the benefits of declaring it as 'static' along with static method, provide solid justification. (5 marks)

5. We have a "Amphibious Vehicle" that is inherited from "Land Vehicle" and "Water Vehicle". Both "Land Vehicle" and "Water Vehicle" are inherited from "Vehicle". Write the C++ code to show and implement the relations among them. (5 marks)

Best of luck and a lot of prayers for all of you.



current midterm today paper CS304: 3-6-17
MCQS were not from past papers but were so easy, all of them.
QUESTIONS:
1. The use of the "this pointer" is slightly changed in a constant member function. Do you think so? In both conditions, provide a solid justification. (3 marks)
2. Given the code:
class Rectangle{
private:
int Length;
int Width;
public:
int getLength();
int getWidth();
Rectangle operator ++();
};
int Rectangle::getLength{
return Length;
}
int Rectangle::getWidth{
return Width;
}
You are required to overload the operator '++' for the class Rectangle. (3 marks)
3. Given the Object Oriented Model (Two Objects of Lesson and Topic, there was a relation of Aggregation from Topic to Lesson). Explain the relations between Objects. Write the C++ code to declare the attributes and behavior(functions) of these Objects and also implement the relation in your code. (5 marks)
4. Given the code:
class Student{
private:
static int noOfStudents;
public:
static int getNoOfStudents();
};
In above code, we have declared a data-member 'static'. Briefly explain the benefits of declaring it as 'static' along with static method, provide solid justification. (5 marks)
5. We have a "Amphibious Vehicle" that is inherited from "Land Vehicle" and "Water Vehicle". Both "Land Vehicle" and "Water Vehicle" are inherited from "Vehicle". Write the C++ code to show and implement the relations among them. (5 marks)
Best of luck and a lot of prayers for all of you

RSS

© 2017   Created by Muhammad Anwar Tahseen.   Powered by

Badges  |  Report an Issue  |  Terms of Service