CS304 Mega MCQS.pdf

Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum 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
MCQ Bank
Coverage
Full Course Curriculum
Tags
MCQ

Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.

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 Mega MCQS.pdf for free?

You can preview and download "CS304 Mega MCQS.pdf" (CS304 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-mega-mcqs-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 Full Course Curriculum 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

   CS304-Object Oriented Program
Solved MCQS for Final terms papers
Solved by JUNAID MALIK and Team

 AL-JUNAID INSTITUTE GROUP

1. Function func1of class1 is       _ in class2.
       ► Public
       ► Protected
       ► Private
       ► None of the given
2. The default inheritance mode is,
   a) Public inheritance
   b) Protected inheritance
   c) Private inheritance
   d) None of the given
3. A template provides a convenient way to make a family of
   a) Variables and data members
   b) Functions and classes
   c) Classes and exceptions
   d) Programs and algorithms
4. Then int member i of base class is accessible in class,
   a) derived 1 only
   b) derived 2 only
   c) both derived 1 derived 2
   d) none of the given options
5. In case of public inheritance, protected members of base class will be     in derived class?
   a) Private
   b) Public
   c) Protected
   d) hidden
6. By default assignment operator (=) performs,
   a) Shallow copy
   b) Deep copy
   c) Both of these
   d) None of these
7. In protected inheritance the public members of base class become _     in derived class.
   a) Public
   b) Private
   c) Protected
   d) None of the given
8. We can access public members of the class from outsides the class using        operator with its
   object pointer
   a) ->

 AL-JUNAID INSTITUTE GROUP
    b) .
    c) &
    d) @
9. Compiler can automatically generates the following constructor/s for a class,
    a) Default constructor
    b) Copy constructor
    c) Both of these
    d) None of these
10. Friend’s functions of class are _        members of that class.
    a) Public
    b) Private
    c) Protected
    d) None of the given
11. Methodologies to the development of reusable software relate to               .
    a) Structure programming
    b) Procedural programming
    c) Generic programming
    d) None of the given
12. Function overriding is done in context of,
    a) Single class
    b) Single derived class
    c) Single base class
    d) Derived and base classes
13. Which of the following is not type of inheritance in c++?
    a) Public
    b) Protected
    c) Restricted
    d) Private
14. 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.
    a) Base
    b) Derived
    c) Virtual
    d) Implemented
15. Target class of a       function call is determined t run time.
    a) Instance
    b) Virtual
    c) Operator
    d) None of the given
16. In c++ dynamic binding and polymorphism will be achieved when the member function will
    be_

 AL-JUNAID INSTITUTE GROUP
    a) Private
    b) Public
    c) Virtual
    d) Inline
17. To make a pure virtual, we need to give      _after() of this function.
    a) =0;
    b) =1;
    c) Null;
    d) None of the given
18. If we have not given any constructor for the class,compiler generates which of the following
    constructors?
    a) Emplicit Default
    Constructor b) Implicit Default
    Constructor
    c) Emplicit Parameterized Constructor
    d) Implicit Parameterized Constructor
19. In c++ by default access of classes is     .
    a) Private
    b) Protected
    c) Public
    d) None of the given
20. In public inheritance the public members of base class become           in derived class
    a) Private
    b) Protected
    c) Public
    d) None of the given
21. A class hierarchy
    a) Shows the same relationships as a organization chart
    b) Describe “has a “relationship.
    c) Describe “is a kind of” relationship.
    d) Shows the same relationships as a family tree.
22. In private Inheritance the public members of the base class become          in derived class
    a) Public
    b) private
    c) Protected
    d) None of the given option
23. In the line No.2, which constructor of student class will be
    a) Default constructor of student class
    b) Copy constructor of student class
    c) Both Default and Copy constructor of student class
    d) No constructor will be called
24. Which of the following is Not casting operator in c++ standard?
    a) Static-cast

 AL-JUNAID INSTITUTE GROUP
    b) Var-cast
    c) Dynamic-cast
    d) Reinterpret-cast
25. Which of the following type of inheritance is used to model “Implemented in terms of”
    relationship?
    a) Public
    b) Private
    c) Protected
    d) Confidential
26. When we want to implement one class in terms of another class then we use, a)
    Public inheritance
    b) Protected inheritance
    c) Private inheritance
    d) None of these options
27. Public inheritance represents;
    a) “IS A “relationship
    b) “Has A” relationship
    c) “IS Special kind of” relationship
    d) None of these option
28. Suppose we have defined derived class copy constructor but have not defined base class copy
    constructor then compiler will,
    a) Use base class default constructor
    b) Generate base class copy constructor itself
    c) Use base class assignment operator
    d) Nine of these option is correct
29. Child class can call constructor of
    its, a) Direct base class
    b) Indirect base class
    c) Both direct and indirect base classes
    d) None of these
30. We can have          type of member functions in a class.
    a) Public
    b) Private
    c) Protected
    d) All of these options
31. Compiler generated copy constructor performs
    a) Shallow copy
    b) Deep copy
    c) Both Shallow and Deep copy
    d) None of these options
32. In c++ generic programming is done using
    a) Procedures

 AL-JUNAID INSTITUTE GROUP
    b) Packages
    c) Templates
    d) None of the given
33. Target class of a      function call is determined at run time.
    a) Instance
    b) Virtual
    c) Operator
    d) None of the given
34. Suppose person is a user defined class.In statement “Person*pPtr”, static type of pPtr is ----.
    a) pPtr
    b) pointer
    c) person
    d) None of the given
35. Which statement is true for concrete class?

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank