CS304 Final Term MCQ's By Sparrows.pdf
Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This PDF 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
- Type
- Final-Term
- Coverage
- Final-Term Exam Scope (Lectures 23 to 45)
- Tags
- MCQ, FINALTERM
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 Final Term MCQ's By Sparrows.pdf for free?
You can preview and download "CS304 Final Term MCQ's By Sparrows.pdf" (CS304 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-final-term-mcq-s-by-sparrows-pdf) 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
CS304 by Sparrow
Final Term
Fall 2021-2022
1. In c++ dynamic binding and polymorphism will be achieved when member function
will be __.
Private
Public
virtual#
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.#
3. In order to define a class template the first line of definition must be:
template <class T>#
typename <template T>
4. Suppose derived class is inherited from base class. What happens when a derived
class object is created?
The constructor of base class is executed before the constructor of
derived class.
5. Which of the following causes run time binding?
Declaring object of abstract class
Declaring pointer of abstract class
Sparrow +923313000225 1
CS304
Declaring overridden methods as non-virtual#
6. Which of the following is/are advantage[s] of generic programming?
Reusability
Writability
Maintainability
All of given#
7. 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
8. The concept of derived class is involved in _____
Inheritance
9. Template functions use _________ than ordinary functions.
Greater Memory
Lesser Memory#
Equal Memory
10. Non Template Friend functions of a class are friends of ________instance/s of that
class.
All #
One specific
11. By default the vector data items are initialized to ____
0#
0.0
1
12. A copy constructor is invoked when
a function do not returns by value.
an argument is passed by value.#
13. Like template functions, a class template may not handle all the types successfully.
True #
False
Sparrow +923313000225 2
CS304
14. In Private _____ only member functions and friend classes or functions of a derived
class can convert pointer or reference of derived object to that of parent object
specialization
inheritance #
Abstraction
15. Then int member i of base class is accessible in class,
derived 1 only
derived 2 only #
16. In case of public inheritance, protected members of base class will be in derived
class?
Private
Public
Protected#
17. Friend’s functions of class are _ members of that class.
Public
Private #
18. By default assignment operator (=) performs,
Shallow copy#
Deep copy
19. In protected inheritance the public members of base class become ___ in derived
class.
Public
Private
Protected #
20. Compiler can automatically generates the following constructor/s for a class,
Default constructor
Copy constructor
Both of these #
21. ______________ Class is a single class provides functionally to operate on different
type of data.
Template
Sparrow +923313000225 3
CS304
22. In type in depended function template should be use where code and behavior must
be identical.
True#
False
23. In private inheritance derived class pointer can be assigned to base class pointer in.
Main function#
In derived class member and friend functions
24. An abstract class is useful when
no classes should be derived from it.
there are multiple paths from one derived class to another.
We do not want to instantiate its object #
25. template<> class Vector{ void** p; //.... void*& operator[] ((int i); };
This specialization can then be used as the common implementation for all
Vectors of pointers.
This specialization can then be used as the all type implementation for one type
classes.
This specialization can then be used double type pointers.#
26. It is illegal to make objects of one class members of another class.
True#
False
27. In resolution order compiler search firstly _______.
Generic Template
Partial Specialization
Complete Specialization
Ordinary function#
28. Which of the following represents complete specialization?
Template < int, char >
29. Which of the following may inherit from an ordinary class?
All of the given
30. In C++, which of the following is defined as stream insertion operator?
Sparrow +923313000225 4
CS304
<< #
//
31. Which of the following are collectively referred to as the first class containers?
Associative containers and containers adapters
Sequence containers and associative containers #
32. _____ class is a single class that provides functionality to operate on different type of
data
Friend
Template #
Ordinary
33. We can change behavior of template using ___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)