CS304ObjectOrientedProgrammingFinalPaper2010unsolved.docx
Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This DOC document (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS304 – Object Oriented Programming
- Faculty
- Computer Science
- Format
- DOC
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS304, regardless of midterm scores.
What this file covers — CS304 syllabus roadmap
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS304ObjectOrientedProgrammingFinalPaper2010unsolved.docx for free?
You can preview and download "CS304ObjectOrientedProgrammingFinalPaper2010unsolved.docx" (CS304 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304objectorientedprogrammingfinalpaper2010unsolved-docx) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS304 file?
This document covers Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS304 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS304 solved past papers and handouts verified for 2026 exams?
Yes. All CS304 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
CS304 Object Oriented Programming Final Paper 2010 unsolved
CS304 - Object Oriented Programming - Q. No: 1
Classes like TwoDimensionalShape and ThreeDimensionalShape would normally be concrete, while classes like Sphere and Cube would normally be abstract.
True
False
CS304 - Object Oriented Programming - Q. No: 2
Virtual functions allow you to
create an array of type pointer-to-base class that can hold pointers to derived classes.
create functions that can never be accessed.
group objects of different classes so they can all be accessed by the same function code.
use the same function call to execute member functions of objects from different classes
CS304 - Object Oriented Programming - Q. No: 3
A pointer to a base class can point to objects of a derived class.
True
False
CS304 - Object Oriented Programming - Q. No: 4
A copy constructor is invoked when
a function do not returns by value.
an argument is passed by value.
a function returns by reference.
an argument is passed by reference.
CS304 - Object Oriented Programming - Q. No: 5
Each try block can have ______ no. of catch blocks.
1
2
3
As many as necessary.
CS304 - Object Oriented Programming - Q. No: 6
Non Template Friend functions of a class are friends of ________instance/s of that class.
All
One specific
All instances of one date type
None of the given options
CS304 - Object Oriented Programming - Q. No: 7
Template functions use _________ than ordinary functions.
Greater Memory
Lesser Memory
Equal Memory
None of the given options
CS304 - Object Oriented Programming - Q. No: 8
The find() algorithm
finds matching sequences of elements in two containers.
finds a container that matches a specified container.
takes iterators as its first two arguments.
takes container elements as its first two arguments.
CS304 - Object Oriented Programming - Q. No: 9 www.vuzs.net
The copy() algorithm returns an iterator to
the last element copied from.
the last element copied to.
the element one past the last element copied from.
the element one past the last element copied to.
CS304 - Object Oriented Programming - Q. No: 10
If you define a vector v with the default constructor, and define another vector w with a one-argument constructor to a size of 11, and insert 3 elements into each of these vectors with push_back(), then the size() member function will return ______ for v and _____ for w.
11 for v and 3 for w.
0 for v and 0 for w.
0 for v and 3 for w.
3 for v and 11 for w.
CS304 - Object Oriented Programming - Q. No: 11
Which is not the Advantage of inheritance?
providing class growth through natural selection.
facilitating class libraries.
avoiding the rewriting of code.
providing a useful conceptual framework.
CS304 - Object Oriented Programming - Q. No: 12
class DocElement
{
public:
virtual void Print() { cout <
<
};
class Heading : public DocElement
{
public:
void Print() { cout <
<
};
class Paragraph : public DocElement
{
public:
void Print() { cout <
<
};
void main()
{
DocElement * p = new Paragraph();
p->Print();
}
When you run this program, it will print out a single line to the console output.
What will be in that line?
Select one correct answer from the following list:
Generic element
Heading element
Paragraph element
Nothing will be printed.
CS304 - Object Oriented Programming - Q. No: 13
Which type of inheritance is being represented by the following statement,
class X : public A, public B { ... ... };
Single inheritance
Multiple inheritance
Double inheritance
None of the given options
CS304 - Object Oriented Programming - Q. No: 14
When we write a class template the first line must be:
template
template
template
Here T can be replaced with any name but it is preferable.
class class-name()
class template
<
CS304 - Object Oriented Programming - Q. No: 15
Function templates should be used where code and behavior must be identical.
True
False
Rational
This will help us to standardized the codes.
They are meant for the situations where same functionality can be adapted to more than one type or class. It will reduce the need of repeating the entire code for each type.
(zubair, vuzs.net,Jul2011)
CS304 - Object Oriented Programming - Q. No: 16
Which of the following is/are advantage[s] of generic programming?
Reusability
Writability
Maintainability
All of given
CS304 - Object Oriented Programming - Q. No: 17
The specialization pattern after the name says that this specialization is to be used for every,
data type
meta type
virtual type
pointer type
CS304 - Object Oriented Programming - Q. No: 18
A range is often supplied to an algorithm by two _______ values.
italic
iteration
iterator
None of given
CS304 - Object Oriented Programming - Q. No: 19
Which of the following is an integral part of an object?
State
Behavior
Unique identity
All of the given
CS304 - Object Oriented Programming - Q. No: 20
Consider the following statement
Cupboard has books
What is the relationship between Cupboard and books?
Composition
Aggregation
Inheritance
None of the given options
CS304 - Object Oriented Programming - Q. No: 21
Which sentence clearly defines an object?
one instance of a class.
another word for a class.
a class with static methods.
a method that accesses class attributes.
CS304 - Object Oriented Programming - Q. No: 22
___________, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A.
Friendship is one way only
Friendship is two way only
NO Friendship between classes
Any kind of friendship
CS304 - Object Oriented Programming - Q. No: 23
The statement objA=objB; will cause a compiler error if the objects are of different classes.
True
False
CS304 - Object Oriented Programming - Q. No: 24
Consider the call given below of an overloaded operator "+",
Rational_number_1 + Rational_number_2
Where Rational_number_1 and Rational_number_2 are the two objects of Rational_number class (a user defined class). Identify which of the above two objects will be passed as an argument to the overloaded operator function?
Rational_number_1
Rational_number_2
Both Rational_number_1 & Rational_number_2More CS304 files
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS-304 Latest Mcq's Final Term By Vu Topper RM.pdf (PDF · Final-Term)
- CS-304 Solved Mcq's Final Term By Vu Topper RM.pdf (PDF · Final-Term)
- CS304 - Final Term Papers (www.weblyceum.com) 01.pdf (PDF · Final-Term)
- CS304 - Final Term Papers (www.weblyceum.com) 02.pdf (PDF · Final-Term)
- CS304 - Final Term Papers (www.weblyceum.com) 03.pdf (PDF · Final-Term)
- CS304 - Final Term Papers (www.weblyceum.com) 04.pdf (PDF · Final-Term)
- CS304 - Final Term Papers (www.weblyceum.com) 04.pdf (PDF · Final-Term)