CS304ObjectOrientedProgrammingFinal2010PaperbyIMRANJEE.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 CS304ObjectOrientedProgrammingFinal2010PaperbyIMRANJEE.docx for free?
You can preview and download "CS304ObjectOrientedProgrammingFinal2010PaperbyIMRANJEE.docx" (CS304 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304objectorientedprogrammingfinal2010paperbyimranjee-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 2010 Paper by IMRAN JEE
FINAL TERM EXAMINATION
SPRING 2010
CS304- OBJECT ORIENTED PROGRAMMING
CS304 Question No: 1
Classes like TwoDimensionalShape and ThreeDimensionalShape would normally be concrete, while classes like Sphere and Cube would normally be abstract.
► True
► False
CS304 Question No: 2
Each try block can have ______ no. of catch blocks.
► 1
► 2
► 3
► As many as necessary.
CS304 Question No: 3
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 Question No: 4
Consider the following statement
Cupboard has books
What is the relationship between Cupboard and books?
► Composition
► Aggregation
► Inheritance
► None of the given options
CS304 Question No: 5
Identify the correct way of declaring an object of user defined template class A for char type members?
► A obj;
► A obj;
► A obj;
► Obj A;
CS304 Question No: 6
The user must define the operation of the copy constructor.
► True
► False
CS304 Question No: 7
Default constructor is such constructor which either has no ---------or if it has
some parameters these have -------- values
► Parameter, temporary
► Null, Parameter
► Parameter, default
► non of the given
www.vuzs.net
CS304 Question No: 8
The type that is used to declare a reference or pointer is called its ---------
► default type
► static type
► abstract type
► reference type
CS304 Question No: 9
How the information hidden within an object can be accessed?
► Through its interface
► Through its private data members
► Through its private member functions
► Through both public and private members
CS304 Question No: 10
The sub-object’s life is not dependant on the life of master class in __________.
► Separation
► Composition
► Aggregation
► None of the given
CS304 Question No: 11
Encapsulation means
►Extending the behaviour of class in another class
►Data and behaviour are tightly coupled within an entity
►One entity takes all the attributes and operations of the other
►Taking out the common features and put those in a separate class
CS304 Question No: 12
Algorithms can only be implemented using STL containers.
► True
► False
CS304 Question No: 13
When we write a class template the first line must be:
► template < class class_name>
► template < class data_type>
► template
Here T can be replaced with any name but it is preferable.
► class class-name()
class template<class_name>
<
CS304 Question No: 14
An STL container can not be used to,
► hold objects of class employee.
► store elements in a way that makes them quickly accessible.
► compile c++ programs.
► organize the way objects are stored in memory
CS304 Question No: 15
___________, 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 Question No: 16
Which of the following may not be an integral part of an object?
► State
► Behavior
► Protected data members
► All of given
CS304 Question No: 17
Public methods of base class can --------- be accessed in its derived class
► directly
► inderectly
► simultaniously
► non of the given
CS304 Question No: 18
If a class D has been derived using protected inheritance from class B (If B is a protected base and D is derived class) then public and protected members of B -------- accessed by member functions and friends of class D and classes derived from D
► can be
► cannot be
► does restirct to be
► not given
CS304 Question No: 19
What is true about function templates?
► The compiler generates only one copy of the function template
► The compiler generates a copy of function respective to each type of data
► The compiler can only generate copy for the int type data
► None of the given.
CS304 Question No: 20
Which of the following is an integral part of an object?
► State
► Behavior
► Unique identity
► All of the given
CS304 Question No: 21
When the base class and the derived class have a member function with the same name, you must be more specific which function you want to call (using ___________).
► scope resolution operator
► dot operator
► null operator
► Operator overloading
CS304 Question No: 22 ( M - 2 )
Describe the way to declare a template function as a friend of any class.
CS304 Question No: 23 ( M - 2 )
Explain two benefits of constructor.
CS304 Question No: 24 ( M - 2 )
Can a constructor throws an exception. How to handle error when the constructor fails?
CS304 Question No: 25 ( M - 2 )
Write the code for a function template
CS304 Question No: 26 ( M - 3 )
Write three advantages of Iterator.
CS304 Question No: 27 ( M - 3 )
What is the difference between Virtual and Multiple Inheritance?
CS304 Question No: 28 ( M - 5 )
What is random_iterator? What is relation between random_iterator and Vector?
CS304 Question No: 29 ( M - 5 )
The code given below has one template function as a friend of a template class,
1. You have to identify any error/s in this code and describe the reason for error/s.
2. Give the correct code after removing the error/s. template
void Test(U);
template
class B {
int data;
public:
friend void Test( T );
};
template
void Test(U u){
B b1;
b1.data = 7;
}
int main(int argc, char *argv[])
{
char i;
Test(i);
system("PAUSE");
return 0;
}
More 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)