CS304-MId-SolvedFULL-FILE.pdf

Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 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
MCQ Bank
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
SOLVED, MIDTERM

Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS304.

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)

Frequently asked questions

Where can I download CS304-MId-SolvedFULL-FILE.pdf for free?

You can preview and download "CS304-MId-SolvedFULL-FILE.pdf" (CS304 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-mid-solvedfull-file-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 Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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

                                   Page 1 of 292

                      By Micro.IT.Corporation
                         Cell# 03344500853
                         Abaid Ur Rehman
Date: 08-11-2010
Question # 1 of 10
Information hiding can be achieved through__________.
1.Encapsulation, Inheritance
2.Encapsulation, Polymorphism
3.Encapsulation, Abstraction
4.Overloading
Question # 2 of 10 ( Start time: 01:11:21 AM ) Total Marks: 1
A good model is ................ related to a real life problem.
Select correct option:
1.Loosely
2.Openly
3.Closely
Question # 3 of 10 ( Start time: 01:12:33 AM ) Total Marks: 1
Which of the following features of OOP is used to derive a class from
another?
Select correct option:
1.Encapsulation
2.Polymorphism
3.Data hiding
4. Inheritance
Question # 4 of 10 ( Start time: 01:13:51 AM ) Total Marks: 1
Which of the following is a weak relationship between two objects?
Select correct option:
1. Inheritance
2.Composition
3.Aggregation
4.None of given
Question # 5 of 10 ( Start time: 01:14:56 AM ) Total Marks: 1
Data items in a class must be private.
Select correct option:
1.True
2.False
Question # 6 of 10 ( Start time: 01:15:52 AM ) Total Marks: 1

                                    Page 2 of 292

Which one is a class association
Select correct option:
1.Simple Association
2. Inheritance
3.Composition
4.Aggregation
Question # 7 of 10 ( Start time: 01:16:55 AM ) Total Marks: 1
Suppose there is an object of type Person, which of the following can
be considered as one of its attributes
Select correct option:
1.Name
2.Age
3.Work()
4.Both Name and Age
Question # 8 of 10 ( Start time: 01:17:52 AM ) Total Marks: 1
Which one is not an object association?
Select correct option:
1.Simple association
2. Inheritance
3.Aggregation
4.Association
Question # 9 of 10 ( Start time: 01:18:50 AM ) Total Marks: 1
Using encapsulation we can achieve
Select correct option:
1. Information hiding
2.Least interdependencies among modules
3. Implementation independence
4.All of given options
Question # 10 of 10 ( Start time: 01:19:43 AM ) Total Marks: 1
In constant member function the type of this pointer is:
Select correct option:
1.Constant pointer
2.Constant pointer to object
3.Constant pointer to class
4.Constant pointer to constant object
Question # 1 of 10
Which of the following is the way to extract common behavior and
attributes from the given classes and make a separate class of those
common behaviors and attributes?
1.Generalization

                                  Page 3 of 292

2.Sub-typing
3.Specialization
4.Extension
Question # 2 of 10
The ability to derive a class from more than one class is called
1.Single inheritance
2.Encapsulation
3.Multiple inheritance
4.Polymorphism
Question # 3 of 10:
If MyClass has a destructor what is the destructor named?
1.MyClass
2.~MyClass
3.My~Class
4.MyClass~
Question # 4 of 10:
Class abc{ ----- }; Is a valid class declaration?
1.yes
2.no
Question # 5of 10:
Without using Deep copy constructor, A ____________ problem can
occur
1.System crash
2.Memory Leakage
3.Dangling pointer
4.All of the given
Question # 6 of 10:
If only one behaviour of a derived class is incompatible with base
class, then it is:
1.Generalization
2.Specialization
3.Extension
4. Inheritance
Question # 7 of 10:
Which of the following may not be an integral part of an object?
1. state
2.behavior
3.Protected data members
4.All of given
Question # 8 of 10:

                                   Page 4 of 292

Only tangible things can be chosen as an object.
1.True
2.False
1.
2. Question # 1 of 10
Information hiding can be achieved through__________.
Encapsulation, Inheritance
Encapsulation, Polymorphism
Encapsulation, Abstraction
Overloading
Question # 2 of 10 ( Start time: 01:11:21 AM ) Total Marks: 1
A good model is ................ related to a real life problem.
Select correct option:
Loosely
Openly
Closely
Question # 3 of 10 ( Start time: 01:12:33 AM ) Total Marks: 1
Which of the following features of OOP is used to derive a class from another?
Select correct option:
Encapsulation
Polymorphism
Data hiding
Inheritance
Question # 4 of 10 ( Start time: 01:13:51 AM ) Total Marks: 1
Which of the following is a weak relationship between two objects?
Select correct option:
Inheritance
Composition
Aggregation
None of given
Question # 5 of 10 ( Start time: 01:14:56 AM ) Total Marks: 1
Data items in a class must be private.
Select correct option:
True
False
Question # 6 of 10 ( Start time: 01:15:52 AM ) Total Marks: 1
Which one is a class association
Select correct option:
Simple Association
Inheritance

                                   Page 5 of 292

Composition
Aggregation
Question # 7 of 10 ( Start time: 01:16:55 AM ) Total Marks: 1
Suppose there is an object of type Person, which of the following can be
considered as
one of its attributes
Select correct option:
Name
Age
Work()
Both Name and Age
Question # 8 of 10 ( Start time: 01:17:52 AM ) Total Marks: 1
Which one is not an object association?
Select correct option:
Simple association
Inheritance
Aggregation
Association
Question # 9 of 10 ( Start time: 01:18:50 AM ) Total Marks: 1
Using encapsulation we can achieve
Select correct option:
Information hiding
Least interdependencies among modules
Implementation independence
All of given options
Question # 10 of 10 ( Start time: 01:19:43 AM ) Total Marks: 1
In constant member function the type of this pointer is:
Select correct option:
Constant pointer
Constant pointer to object
Constant pointer to class
Constant pointer to constant object
Question # 1 of 10
Which of the following is the way to extract common behavior and attributes from
the
given classes and make a separate class of those common behaviors and attributes?
Generalization
Sub-typing
Specialization
Extension

                                     Page 6 of 292

Question # 2 of 10
The ability to derive a class from more than one class is called
Single inheritance
Encapsulation
Multiple inheritance
Polymorphism
Question # 3 of 10:
If MyClass has a destructor what is the destructor named?
MyClass
~MyClass
My~Class
MyClass~
Question # 4 of 10:

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank