.... How to Find Your Subject Study Group & Join ....   .... Find Your Subject Study Group & Join ....  

We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Study Groups By Subject code Wise (Click Below on your university link & Join Your Subject Group)

[ + VU Study Groups Subject Code Wise ]  [ + COMSATS Virtual Campus Study Groups Subject Code Wise ]

Looking For Something at vustudents.ning.com?Search Here

CS304 ALL Current Mid Term Papers & Past Final Term Papers at One Place from 03 June 2017 to 14 June 2017

CS304 ALL Current Mid Term Papers & Past Final Term Papers at One Place from 03 June 2017 to 14 June 2017

This Content Originally Published by a member of VU Students.

Views: 608

See Your Saved Posts Timeline

Replies to This Discussion

Share Your Current Mid Term Papers (Questions/Pattern) & Past Papers as well here to help each other. Thanks

Share Your Current Mid Term Papers (Questions/Pattern) & Past Papers as well here to help each other. Thanks

Past solved papers by Azher and Ishal Fatima

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

Forum Categorizes

Job's & Careers (Latest Jobs)

Admissions (Latest Admissons)

Scholarship (Latest Scholarships)

Internship (Latest Internships)

VU Study

Other Universities/Colleges/Schools Help

    ::::::::::: More Categorizes :::::::::::

Member of The Month

1. ٹمبکٹو

---, Pakistan

© 2017   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service