Cs304 Quiz 3 Sunrise Zeeshan.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 Sunrise Zeeshan.pdf for free?

You can preview and download "Cs304 Quiz 3 Sunrise Zeeshan.pdf" (CS304 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-quiz-3-sunrise-zeeshan-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

                               Cs304 Quiz no. 3
               All MCqs 100% Confirm
            Subscribe My Youtube Channel
                   Sunrise Zeeshan
                   Contact For Quiz
                     03438509619
1. A function call is resolved at run time in

a) Non virtual members function

b) Virtual member function

c) Both non-virtual and virtual member function

d) None of given

2. If the user does not specify the type if inheritance, then the default type of inheritance is

a) Public inheritance

b) Private inheritance

c) Protected inheritance

d) None of given

3. In case of private inheritance, private members of base class will be in derived class?

a) Private

b) Public

c) Protected

d) Hidden

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

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. 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

9. Friend’s functions of class are _ members of that class.

a) Public

b) Private

c) Protected

d) None of the given

10. Methodologies to the development of reusable software relate to.

a) Structure programming

b) Procedural programming

c) Generic programming

d) None of the given

11. Function overriding is done in context of,

a) Single class

b) Single derived class

c) Single base class

d) Derived and base classes

12. Which of the following is not type of inheritance in c++?

a) Public

b) Protected

c) Restricted

d) Private

13. 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

14. Target class of a function call is determined t run time.

a) Instance

b) Virtual

c) Operator

d) None of the given

15. To make a pure virtual, we need to give _after() of this function.

a) =0;

b) =1;

c) Null;

d) None of the given

16. 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

17. In c++ by default access of classes is .

a) Private

b) Protected

c) Public

d) None of the given

18. In public inheritance the public members of base class become in derived class

a) Private

b) Protected

c) Public

d) None of the given

19. 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.

20. 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

21. 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

22. Which of the following is Not casting operator in c++ standard?

a) Static-cast

b) Var-cast

c) Dynamic-cast

d) Reinterpret-cast

23. Which of the following type of inheritance is used to model “Implemented in terms of”

relationship?

a) Public

b) Private

c) Protected

d) Confidential

24. 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

25. Public inheritance represents;

a) “IS A “relationship

b) “Has A” relationship

c) “IS Special kind of” relationship

d) None of these option

26. 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) None of these

27. 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

28. We can have type of member functions in a class.

a) Public

b) Private

c) Protected

d) All of these options

29. Compiler generated copy constructor performs

a) Shallow copy

b) Deep copy

c) Both Shallow and Deep copy

d) None of these options

30. In c++ generic programming is done using

a) Procedures

b) Packages

c) Templates

d) None of the given

31. Target class of a function call is determined at run time.

a) Instance

b) Virtual

c) Operator

d) None of the given

32. 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

33. Which statement is true for concrete class?

a) It cannot be inherit from an abstract class

b) It can be instantiated

c) It cannot be instantiated

d) None of given

34. In c++, compiler can generate which of the following operators ‘code,

a) ==

b) =

c) &

d) &&

35. In specialization we can,

a) Replace child class with its base class

b) Replace base class with its child class

c) Replace both child and base classes interchangeably

d) None of the given option

36. In private inheritance derived class pointer can be assigned to base class pointer in,

a) Main function

b) In derived class member and friend class function

c) In base class member and friend functions

d) None of the given option

37. When we access private members of the class from outside the class using operator with

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank