- Type
- Midterm past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 2.2 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
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
- Encapsulation, Polymorphism
3.Encapsulation, Abstraction
- Overloading
Q2. of 10 ( Start time: 01:11:21 AM ) Total Marks: 1
- Loosely
- 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?
- Encapsulation
- Polymorphism
- 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?
- Inheritance
- Composition
3.Aggregation
- None of given
Q5. of 10 ( Start time: 01:14:56 AM ) Total Marks: 1
- True
2.False
Q6. of 10 ( Start time: 01:15:52 AM ) Total Marks: 1
- Simple Association
2. Inheritance
- Composition
- 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
- Name
- Age
- 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?
- Simple association
2. Inheritance
- Aggregation
- Association
Q9. of 10 ( Start time: 01:18:50 AM ) Total Marks: 1
1. Information hiding
- Least interdependencies among modules
- Implementation independence
- All of given options
Q10. of 10 ( Start time: 01:19:43 AM ) Total Marks: 1
- Constant pointer
2.Constant pointer to object
- Constant pointer to class
- 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
- Sub-typing
- Specialization
- Extension
Q2. 1.Single inheritance
- Encapsulation
3.Multiple inheritance
- Polymorphism
Q3. If MyClass has a destructor what is the destructor named?
- MyClass
2.~MyClass
- My~Class
- MyClass~
Q4. Class abc{ ----- }; Is a valid class declaration?
1.yes
- no
Q5. Without using Deep copy constructor, A ____________ problem can occur
- System crash
- Memory Leakage
- Dangling pointer
4.All of the given
Q6. If only one behaviour of a derived class is incompatible with base class, then it is:
- Generalization
2.Specialization
- Extension
- Inheritance
Q7. Which of the following may not be an integral part of an object?
- state
- behavior
- Protected data members
Related CS304 files
All CS304 files →- CS304 Midterm Preparation by MAS All Rounder Midterm PDF 8 MB
- CS304 Midterm Solved File 4 by Team Hadi Midterm PDF 1.8 MB
- CS304 Midterm Important and Repeated Questions Preparation Midterm PDF 5 MB
- CS304 Midterm Preparation by ZB Midterm PDF 702 KB
- CS304 Highlighted Handouts by NB Highlighted PDF 5 MB
- CS304 Quiz 2 Quiz PDF 102 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.