CS304-ObjectOrientedProgrammingFinalTerml2009.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 CS304-ObjectOrientedProgrammingFinalTerml2009.docx for free?
You can preview and download "CS304-ObjectOrientedProgrammingFinalTerml2009.docx" (CS304 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-objectorientedprogrammingfinalterml2009-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 Term l 2009
Question No: 1 ( Marks: 1 )
Which one of the following terms must relate to polymorphism?
Static allocation
Static typing
Dynamic binding
Dynamic allocation
Question No: 2 ( Marks: 1 )
Multiple inheritance can be of type
Public
Private
Protected
All of the given
Question No: 3 ( Marks: 1 ) http://www.vuzs.net
When a subclass specifies an alternative definition for an attribute or method of its
superclass, it is ______the definition in the superclass.
overload
overriding
copy riding
none of given
Question No: 4 ( Marks: 1 ) http://www.vuzs.net
Like template functions, a class template may not handle all the types successfully.
True
False
Question No: 5 ( Marks: 1 ) http://www.vuzs.net
It is sometimes useful to specify a class from which no objects will ever be created.
True
False
Question No: 6 ( Marks: 1 ) http://www.vuzs.net
Assume a class Derv that is privately derived from class Base. An object of class Derv
located in main() can access
public members of Derv.
protected members of Derv.
private members of Derv.
protected members of Base.
Question No: 7 ( Marks: 1 ) http://www.vuzs.net
A pointer to a base class can point to objects of a derived class.
True
False
Question No: 8 ( Marks: 1 ) http://www.vuzs.net
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.
Question No: 9 ( Marks: 1 ) http://www.vuzs.net
A function call is resolved at run-time in___________
non-virtual member function.
virtual member function.
Both non-virtual member and virtual member function.
None of given
Question No: 10 ( Marks: 1 ) http://www.vuzs.net
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
Question No: 11 ( Marks: 1 ) http://www.vuzs.net
Each try block can have _____no. of catch blocks.
1
2
3
As many as necessary.
Question No: 12 ( Marks: 1 ) http://www.vuzs.net
Two important STL associative containers are ______and _______.
set,map
sequence,mapping
setmet,multipule
sit,mat
Question No: 13 ( Marks: 1 ) http://www.vuzs.net
The mechanism of selecting function at run time according to the nature of calling object
is called,
late binding
static binding
virtual binding
None of the given options
Question No: 14 ( Marks: 1 ) http://www.vuzs.net
An abstract class is useful when,
We do not derive any class from it.
There are multiple paths from one derived class to another.
We do not want to instantiate its object.
You want to defer the declaration of the class.
Question No: 15 ( Marks: 1 ) http://www.vuzs.net
Which of the following is incorrect line regarding function template?
template<class T>
template <typename U>
Class<template T>
template < class T, class U>
Question No: 16 ( Marks: 1 ) http://www.vuzs.net
Which of the following is/are advantage[s] of generic programming?
Reusability
Writability
Maintainability
All of given
Question No: 17 ( Marks: 1 ) http://www.vuzs.net
By default the vector data items are initialized to ____
0
0.0
1
null
Question No: 18 ( Marks: 1 ) http://www.vuzs.net
Which one of the following functions returns the total number of elements in a vector.
length();
size();
ele();
veclen();
Question No: 19 ( Marks: 1 ) http://www.vuzs.net
Suppose you create an uninitialized vector as follows:
vector<int> 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.
Question No: 20 ( Marks: 1 ) http://www.vuzs.net
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
Question No: 21 ( Marks: 1 ) http://www.vuzs.net
Algorithms can only be implemented using STL containers.
True
False
Question No: 22 ( Marks: 1 ) http://www.vuzs.net
The main function of scope resolution operator (::) is,
To define an object
To define a data member
To link the definition of an identifier to its declaration
To make a class private
Question No: 23 ( Marks: 1 ) http://www.vuzs.net
When is a constructor called?
Each time the constructor identifier is used in a program statement
During the instantiation of a new object
During the construction of a new class
At the beginning of any program execution
Question No: 24 ( Marks: 1 ) http://www.vuzs.net
Consider the code below,
class Fred {
public:
Fred();
...
};
int main()
{
Fred a[10];
Fred* p = new Fred[10];
...
}
Select the best option,
Fred a[10]; calls the default constructor 09 times Fred* p = new Fred[10]; calls the default constructor 10 times
Produce an error
Fred a[10]; calls the default constructor 11 times Fred* p = new Fred[10]; calls the default constructor 11 times
Fred a[10]; calls the default constructor 10 times Fred* p = new Fred[10]; calls the default constructor 10 times
Question No: 25 ( Marks: 1 ) http://www.vuzs.net
Associativity can be changed in operator overloading.
True
False
Question No: 26 ( Marks: 1 ) http://www.vuzs.net
A normal C++ operator that acts in special ways on newly defined data types is said to be
glorified.
encapsulated.
classified.
overloaded.
Question No: 27 ( Marks: 1 ) http://www.vuzs.net
Which operator can not be overloaded?
The relation operator ( >= )
Assignment operator ( = )
Script operator ( [] )
Conditional operator (? : )
Question No: 28 ( Marks: 1 ) http://www.vuzs.netMore 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)