CS304 Quiz-2 By Vu Topper RM.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-2 By Vu Topper RM.pdf for free?

You can preview and download "CS304 Quiz-2 By Vu Topper RM.pdf" (CS304 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-quiz-2-by-vu-topper-rm-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 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 Oject Oriented Programming
  Update MCQS For Quiz- 2 File
  Solve By Vu Topper RM
         80 To 100% Marks

For More Help Contact What’s app 03224021365

Which of the following best describes relationship between Book and
BookChapter classes?
  A. Association
  B. Inheritance
  C. Aggregation
  D. Composition

The keyword "friend" should be placed in ___________ :
  A. Main Function
  B. Function Definition
  C. Anywhere in program
  D. Function Declaration         Google

Which of the following stores the address of a variable?
 A. Pointer
 B. Function
 C. Destructor
 D. Constructor

_____ is creating objects of one class inside another class.
  A. Association
  B. Inheritance
  C. Aggregation
  D. Composition          Page 125

Which of the following can be used as an alternative to static members?
 A. Local Variables
 B. Array of Objects
 C. Global Variables
 D. Constant Variables

What is the general syntax of overloading Unary Operator as member
function of the class?

   For More Help Contact What’s app 03224021365

  A. TYPE & operator OP ();
  B. TYPE & operator OP (int);
  C. TYPE & operator OP (TYPE &);
  D. TYPE & operator OP (TYPE &, TYPE &);

Which of the following operators operate on one operand?
 A. Unary Operators
 B. Ternary Operator
 C. Binary Operators
 D. All of the given options

Composition is __________ and aggregation is ____________
relationship.
   A. Weak, Weak
   B. Weak, Strong
   C. Strong, Weak
   D. Strong, Strong

Which of the following function declaration is correct to overload the +
operator as member function in Complex class?
  A. Complex +(const Complex & rhs);
  B. operator + Complex (const Complex & rhs);
  C. Complex operator +(const Complex & rhs);
  D. Complex operator + ::(const Complex & rhs);

Insertion operator is ________________ associative.
   A. Left to Left
   B. Right to Left
   C. Left to Right         Page 160
   D. Right to Right

Which of the following statement is TRUE about a class's Static
Member Function?

   For More Help Contact What’s app 03224021365

  A. It can access non-static data members.
  B. It is used to access static data members only.
  C. It can only be called by a particular object of class.
  D. It can access constant data members of the class.

Which of the following is the correct way of declaring a constant
variable named RollNo?
   A. const RollNo;
   B. int const rollNo;
   C. int RollNo const;
   D. const int RollNo;

Which of the following is defined as stream extraction operator in C++?
 A. *<
 B. <<
 C. *>
 D. >>          Page 158

What will be the output of the following code?
#include<iostream>
using namespace std;
int main()
{
int const x = 10;cout << ++x;}
   A. 10
   B. Run Time Error
   C. 11
   D. Compile time Error

In C++, the subscript operator [] must be overloaded as a _______ of the
class, with one parameter of _______ type.
   A. Member function, int              Google
   B. Member function, char

   For More Help Contact What’s app 03224021365

  C. Non-member function, int
  D. Non-member function, char

We can get the address of a variable stored in a pointer using
__________:
         a. symbol
  B. :: symbol
  C. ->symbol
  D. & symbol          Google

Suppose "int a;" is a static data member of a class named test. Which of
the following is the correct way of initializing the static variable outside
the class test?
   A. test a = 0;
   B. int test::a = 0;
   C. int test->a = 0;

___________ Operator is used to create objects at run time.
  A. New       Page 118
  B. Create
  C. Dynamic
  D. Subscript

Which of the following statement is NOT true about static variable of a
class?
   A. They are created even when there is no object of a class.
   B. Static variable belongs to a particular instance of a class.
   C. Static variable is initialized once only throughout the program.
   D. They remain in memory even when all Objects of a class are
      destroyed.

Static Data Members can be accessed through _________.
   A. Semi colon

   For More Help Contact What’s app 03224021365

  B. Dot operator
  C. Scope resolution operator
  D. Dot operator and scope resolution operator

Suppose we have a class named “Student”; which of the following
statement is correctly declaring the pointer to the object for “Student”
class?
   A. Student obj;
   B. Student &obj;
   C. Student *obj;
   D. *Student obj;

Which of the following is the correct syntax of declaring static variable
“count” of type int?
  A. int static count;
  B. int count static;
  C. static count int;
  D. static int count;

In composition ____________ are called from composing objects to
composed objects.
   A. Pointers
   B. Destructors       Page 131
   C. Constructors
   D. Member Functions

In C++, Composition is a relationship between ____________ and
_______________ objects.
   A. Whole, part
   B. Parent, child
   C. Base, derived
   D. All given options are correct.

   For More Help Contact What’s app 03224021365

In which of the following OOP paradigm objects cannot exist
independently?
   A. Aggregation
   B. Inheritance
   C. Composition
   D. Polymorphism            Page 56
_______ remain in memory even when all objects of a class have been
destroyed.
   A. Primitive Variables
   B. Static Data Members           Page 114
   C. Constant Data Members
   D. Instance Data Members

We can access a private static data member of a class through
_________________.
  A. Static data member              Google
  B. Global data member
  C. Static member function
  D. Global member function

Copy constructor is called when:
  A. An object is deleted.
  B. An object is created.
  C. An array of objects is created.
  D. An object is created in term of pre existing object.

In expression b = c / d , the arity of division (/) operator is ________:
   A. 1
   B. 4
   C. 2
   D. 3

   For More Help Contact What’s app 03224021365

If you do not initialize static data member of a class of int type, it is
automatically initialized with _________.
   A. 0
   B. 1
   C. Null
   D. -32767

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank