CS304 P General Quiz#3 12July23 FINALS by MISS MEHWISH.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 compiled by Miss Mehwish) 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
PDF
Type
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Compiled by
Miss Mehwish
Tags
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

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. 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 P General Quiz#3 12July23 FINALS by MISS MEHWISH.pdf for free?

You can preview and download "CS304 P General Quiz#3 12July23 FINALS by MISS MEHWISH.pdf" (CS304 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-p-general-quiz-3-12july23-finals-by-miss-mehwish-pdf-3) 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

We also provide Past papers for Mids. and Finals
Cross Check your answers before submitting directly from the file. We are not
responsible for 100% correction as human error exists

1. Which of the following operator overloading declaration can be used for pre-increment operators
implemented as a member function of the class Complex?

 a) Complex & operator ++ ();

 b) Complex & Complex::operator++();

 c) None of the given options

 d) Complex && operator ++ ();

 Correct option: b) Complex & Complex::operator++();

2. A class that defines the cin and stream extraction operator is called:

 a) kstream

 b) kstreamfstream

 c) ostream

 d) istream

 Correct option: d) istream

3. While operator overloading, the binary operator is always called with reference to the ____________.

 a) Left-hand argument

 b) Right-hand argument

 c) Pointer argument

 d) Dot operator

 Correct option: a) Left-hand argument

4. Consider the following program, and choose the most appropriate concept implemented in the
following program:

 ```cpp

 class shape {

       public:

         void findArea() {};

 };

 class triangle: public shape {

       public:

         void findArea() {};

 };

 class circle: public shape {

       public:

         void findArea() {};

 };

 int main() {

       triangle t;

       t.findArea();

       circle c;

       c.findArea();

 }

 ```

 a) Aggregation

 b) Association

 c) Composition

 d) Polymorphism

 Correct option: d) Polymorphism

5. Following code is equivalent to which option:

 ```cpp

 class Shape {

 protected:

       string type;

 };

 ```

 a) class Shape {

           string type;

      };

 b) class Shape public: {

           string type;

      };

 c) class Shape {

           private: string type;

      };

 d) class Shape {

           protected: string type;

      };

 Correct option: d) class Shape {

               protected: string type;

          };

6. Consider the following statement. What is the best statement about this line of code: `char &
operator()(int);`

 a) Overloading of int operator

 b) Overloading of & operator

 c) Overloading of char operator

 d) Overloading of () operator

 Correct option: d) Overloading of () operator

7. Suppose c1, c2, and c3 are objects of the Complex class, and we overloaded the + operator. `c3 = c1 +
c2;` In this statement, which object will be passed as an argument when the + operator is called?

 a) c1

 b) c2

 c) c1 and c2

 d) c3

 Correct option: c) c1 and c2

8. Which one is the best description of polymorphism?

 a) None of the given option

 b) It is the ability for undefined message/data to be processed in at least one way

 c) It is the ability for many messages/data to be processed in many ways

 d) It is the ability for a message/data to be processed in more than one form

 Correct option: d) It is the ability for a message/data to be processed in more than one form

9. The subscript operator is overloaded as a member function of the class, and there will be only one
parameter with ____________ data type.

 a) char

 b) string

 c) float

 d) int

 Correct option: d) int

10. Which of the following will be affected by overloading an operator?

  a) Associativity

  b) Arity of an operator

  c) None of the given options

  d) Precedence of an operator

  Correct option: b) Arity of an operator

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank