CS304 Quiz-3 By Vu Topper RM-2.pdf

Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope spanning approximately 180 pages across 8 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
PDF
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

What this file covers — CS304 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. 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 Quiz-3 By Vu Topper RM-2.pdf for free?

You can preview and download "CS304 Quiz-3 By Vu Topper RM-2.pdf" (CS304 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-quiz-3-by-vu-topper-rm-2-pdf-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 Quizzes & Objective Exam Scope across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, 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

            CS-304 Quiz -3 File
             By Vu Topper RM
Question No:1                 (Marks:1)             Vu-Topper RM
An abstract class is useful when
no classes should be derived from it.
there are multiple paths from one derived class to another.
no objects should be instantiated from its.
you want to defer the declaration of the class.

Question No:2                (Marks:1)                  Vu-Topper RM
In resolution order compiler search firstly _______.
Select correct option:
Generic Template
Partial Specialization
Complete Specialization
Ordinary function

Question No:3                 (Marks:1)                  Vu-Topper RM
template<> class Vector{ void** p; //.... void*& operator[] ((int i); };
This specialization can then be used as the common implimentation for
all Vectors of pointers.
This spcialization can then be used as the all type implimentation for
one type classes.
This specialization can then be used double type pointers.
This specialization should be used for Vectors of all type int types.

Question No:4                 (Marks:1)                  Vu-Topper RM
In private inheritance derived class pointer can be assigned to base class
pointer in,
Main function

   For More Help Contact What’s app 03224021365

In derived class member and friend functions
In base class member and friend functions
None of the these

Question No:5                (Marks:1)                  Vu-Topper RM
Which statement will be true for concrete class?
it implements an virtual concept.
it can be instantiated
it cannot be instantiated

Question No:6               (Marks:1)                   Vu-Topper RM
Target of a _____ function call is determined at run time.
instance
virtual
operator
none of given

Question No:7                (Marks:1)                   Vu-Topper RM
The Specialization pattern after the name says that this specialization is
to be used for every___.
data types
meta types
virtual types
pointers type

Question No:8               (Marks:1)              Vu-Topper RM
c++ dynamic binding and polymorphism will be achieved when
member function will be __.
Select correct option:
private
public
virtual

Question No:9                 (Marks:1)                   Vu-Topper RM
Consider the code below, class class1{ protected: void func1(); }; class
class2 : public class1 { }; Function func1 of class1 is ____ in class2,
   For More Help Contact What’s app 03224021365

Select correct option:
public
protected
private
none of the given options

Question No:10                (Marks:1)                  Vu-Topper RM
Consider the code below, class class1{ protected: int i; }; class class2 :
protected class1 { }; Then int member i of class1 is ____ in class2,
Select correct option:
public
protected
private
none of the given options

Question No:11                 (Marks:1)                  Vu-Topper RM
Consider the code below , class class1{ private: void func1(); }; class
class2 : private class1 { }; Function func1 of class1 is ____ in class2,
Select correct option:
public
protected
private
none of the given options
operator
none of given

Question No:12              (Marks:1)                    Vu-Topper RM
Consider the following statements: 1) int iArray[5]; 2) int *pArr =
iArray;
Select correct option:
These statements will compile successfully
Error in first statement
Error in second statement
None of given options

Question No:13           (Marks:1)                      Vu-Topper RM
   For More Help Contact What’s app 03224021365

Consider the code below, class class1{ private: int i; }; class class2 :
private class1 { }; Then int member i of class1 is ____ in class2,
Select correct option:
public
protected
private
|none of the given options

Question No:14                   (Marks:1)                    Vu-Topper RM
If there is a pointer, p, to objects of a base class, and it contains the
address of an object of a derived class, and both classes contain a virtual
member function, ding(), then the statement p->ding(); will cause the
version of ding() in the ___ class to be executed.
Select correct option:
base
derived
virtual
implemented

Question No:15               (Marks:1)                 Vu-Topper RM
A class template may inherit from another class template.
Select correct option:
True
False

Question No:16                (Marks:1)                 Vu-Topper RM
Derived class can inherit from public base class as well as private and
protected base classes
True
False

Question No:17            (Marks:1)                 Vu-Topper RM
Two functions with same names, parameters and return type can exist
in,
Select correct option:
Function overloading
   For More Help Contact What’s app 03224021365

Function overriding
Operator overloading
None of these options

Question No:18                (Marks:1)                 Vu-Topper RM
An abstract class is useful when
no classes should be derived from it.
there are multiple paths from one derived class to another.
no objects should be instantiated from its.

Question No:19                (Marks:1)                     Vu-Topper RM
In order to define a class template the first line of definition must be:
template <typename T>
typename <template T>
Template Class <ClassName>
Class <Template T>

Question No:20                 (Marks:1)                 Vu-Topper RM
Select correct line of code for composition relationship between
“Keyboard” class and “Keys” class
class keyboard { Keys type;};
class keys{ KeyBoard type; };
class keyboard : private keys
class keys: private KeyBoard

Question No:21                (Marks:1)                  Vu-Topper RM
Select correct line of code for inheritance relationship between “Keys”
class and “SpecialKeys” class. “Keys” is parent class while
“SpecialKeys” is child class
class SpecialKeys: public Keys
class Keys: public SpecialKeys
class SpecialKeys:: public Keys
class Keys:: public SpecialKeys

   For More Help Contact What’s app 03224021365

Question No:22              (Marks:1)              Vu-Topper RM
Methodologies to the development of reusable software relate to
procedural programming
generic programming

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank