CS304ObjectOrientedProgrammingFinalTermExamination2010 (1).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 compiled by Amina Zee) 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)
- Compiled by
- Amina Zee
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 CS304ObjectOrientedProgrammingFinalTermExamination2010 (1).docx for free?
You can preview and download "CS304ObjectOrientedProgrammingFinalTermExamination2010 (1).docx" (CS304 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304objectorientedprogrammingfinaltermexamination2010-1-docx-2) 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 Term Examination 2010
CS304 Object Oriented Programming Final Term Examination 2010
www.vuzs.net
Time: 90 minM - 58
CS304 Question No: 1
A template argument is preceded by the keyword ________.
vector
class
template
type*
CS304 Question No: 2
Which of the following causes run time binding?
Declaring object of abstract class
Declaring pointer of abstract class
Declaring overridden methods as non-virtual
None of the given
CS304 Question No: 3
A function template can not be overloaded by another function template.
True
False
CS304 Question No: 4
Which of the following is the best approach if it is required to have more than one functions having exactly same functionality and implemented on different data types?
Templates
Overloading
Data hiding
Encapsulation
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
Template functions use _________ than ordinary functions.
Greater Memory
Lesser Memory
Equal Memory
None of the given options
CS304 Question 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 Question No: 9
Compiler performs ________ type checking to diagnose type errors,
Static
Dynamic
Bound
Unbound
CS304 Question No: 10
Which of the following is/are advantage[s] of generic programming?
Reusability
Writability
Maintainability
All of given
CS304 Question No: 11
Vectors contain contiguous elements stored as a[an] ___.
variable
array
function
datatype
CS304 Question No: 12
Suppose you create an uninitialized vector as follows:
vector evec;
After adding the statment,
evec.push_back(21);
what will happen?
The following statement will add an element to the start (the back) of evec and will initialize it with the value 21.
The following statement will add an element to the center of evec and will reinitialize it with the value 21.
The following statement will delete an element to the end (the back) of evec and will reinitialize it with the value 21.
The following statement will add an element to the end (the back) of evec and initialize it with the value 21.
CS304 Question No: 13
In a de-queue, (chose the best option)
data can be quickly inserted or deleted at any arbitrary location.
data can be inserted or deleted at any arbitrary location, but the process is relatively slow.
data can not be quickly inserted or deleted at either end.
data can be inserted or deleted at either end, but the process is relatively slow.
CS304 Question No: 14
Algorithms can only be implemented using STL containers.
True
False
CS304 Question No: 15
What is a class?
A class is a section of computer memory containing objects.
A class is a section of the hard disk reserved for object oriented programs
A class is the part of an object that contains the variables.
A class is a description of a kind of object.
CS304 Question No: 16
Inheritance is a way to
organize data.
pass arguments to objects of classes.
add features to existing classes without rewriting them.
improve data-hiding and encapsulation.
CS304 Question No: 17
We can use "this" pointer in the constructor in the body and even in the initialization list of any class if we are careful,
True
False
CS304 Question No: 18
________ and ______ methods may not be declared abstract.
private,static
private,public
static,public
none of given
CS304 Question No: 19
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
CS304 Question No: 20
Public methods of base class can --------- be accessed in its derived class
directly
inderectly
simultaniously
non of the given
CS304 Question No: 21
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: 22
------------- members are somewhere between public and private members. They are used in inheritance
protected
public
private
global
CS304 Question No: 23
Which of these are examples of error handling techniques ?
Abnormal Termination
Graceful Termination
Return the illegal
all of the given
CS304 Question No: 24
----------------- follow try block to catch the object thrown.
catch block
throw block
main block
non of the given
CS304 Question No: 25
Graphical representation of the classes and objects is called object model it shows -------
Class Name only
Class Name and attributes
Relationships of the objects and classes
all of the given
CS304 Question No: 26
Destructor can be overloaded
True
False
CS304 Question No: 27 ( M - 2 )
Describe the way to declare a template function as a friend of any class.
Template templatename
Class calssname
{
Friend void friend templatename (classname astric const prt classname);
}
CS304 Question No: 28 ( M - 2 )
State any two reasons why the virtual methods can not be static?
1-virtual method can not be static as it is dynamic
2-as virtual method is dynamic so it works automatically that is also another reason
That virtual method can not be static.
CS304 Question No: 29 ( M - 2 )
Explain the statement below,
vector ivec(4, 3);
CS304 Question No: 30 ( M - 2 )
Explain two benefits of setter functions.
1- It minimize the changes to move the objects in inconsistent states
2- You can write checks in your setter functions to check the validity of data entered by the user, for example age functions to check to calculate the age from date entered.
CS304 Question No: 31 ( M - 3 )
Consider the code below,
template
class T1 {
public:
T i;
protected:
T j;
private:
T k;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)