Skip to content
VUBuddy

CS304 Midterm Solved File Complete

Object Oriented Programming PDF 2.2 MBUpdated 23 Oct 2026
Midterm past paper CS304 Midterm Solved File Complete PDF 2.2 MB
vubuddy.com
Type
Midterm past paper
Course
CS304 Object Oriented Programming
Size
PDF 2.2 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 2.2 MB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 451. Download the file for all 451 pages.

By Micro.IT.Corporation

Abaid Ur Rehman

Date: 08-11-2010

Q1. 1.Encapsulation, Inheritance

  1. Encapsulation, Polymorphism

3.Encapsulation, Abstraction

  1. Overloading

Q2. of 10 ( Start time: 01:11:21 AM ) Total Marks: 1

  1. Loosely
  2. Openly

3.Closely

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

  1. Encapsulation
  2. Polymorphism
  3. Data hiding

4. Inheritance

Q4. of 10 ( Start time: 01:13:51 AM ) Total Marks: 1 Which of the following is a weak relationship between two objects?

  1. Inheritance
  2. Composition

3.Aggregation

  1. None of given

Q5. of 10 ( Start time: 01:14:56 AM ) Total Marks: 1

  1. True

2.False

Q6. of 10 ( Start time: 01:15:52 AM ) Total Marks: 1

  1. Simple Association

2. Inheritance

  1. Composition
  2. Aggregation

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

  1. Name
  2. Age
  3. Work()

4.Both Name and Age

Q8. of 10 ( Start time: 01:17:52 AM ) Total Marks: 1 Which one is not an object association?

  1. Simple association

2. Inheritance

  1. Aggregation
  2. Association

Q9. of 10 ( Start time: 01:18:50 AM ) Total Marks: 1

1. Information hiding

  1. Least interdependencies among modules
  2. Implementation independence
  3. All of given options

Q10. of 10 ( Start time: 01:19:43 AM ) Total Marks: 1

  1. Constant pointer

2.Constant pointer to object

  1. Constant pointer to class
  2. Constant pointer to constant object

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

  1. Sub-typing
  2. Specialization
  3. Extension

Q2. 1.Single inheritance

  1. Encapsulation

3.Multiple inheritance

  1. Polymorphism

Q3. If MyClass has a destructor what is the destructor named?

  1. MyClass

2.~MyClass

  1. My~Class
  2. MyClass~

Q4. Class abc{ ----- }; Is a valid class declaration?

1.yes

  1. no

Q5. Without using Deep copy constructor, A ____________ problem can occur

  1. System crash
  2. Memory Leakage
  3. Dangling pointer

4.All of the given

Q6. If only one behaviour of a derived class is incompatible with base class, then it is:

  1. Generalization

2.Specialization

  1. Extension
  2. Inheritance

Q7. Which of the following may not be an integral part of an object?

  1. state
  2. behavior
  3. Protected data members
All CS304 files →
CS304 Object Oriented Programming All CS304 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.