CS304 Quiz 1 Lectures 1-10 by Junaid
- Type
- Quiz
- Course
- CS304 Object Oriented Programming
- Size
- PDF 1.1 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 2, 3, 4 of 14. Download the file for all 14 pages.
Q1. Information hiding can be achieved through__________.
- Encapsulation, Inheritance
- Encapsulation, Polymorphism
3. Encapsulation, Abstraction
- Overloading
Q2. A good model is ................ related to a real life problem.
- Loosely
- Openly
- Closely
Q3. Which of the following features of OOP is used to derive a class from another?
- Encapsulation
- Polymorphism
- Data hiding
4. Inheritance
Q4. Which of the following is a weak relationship between two objects?
- Inheritance
- Composition
3. Aggregation
- None of given
Q5. Data items in a class must be private.
- True
- False
Q6. Which one is a class association
- Simple Association
2. Inheritance
- Composition
- Aggregation
Q7. 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. Which one is not an object association?
- Simple association
2. Inheritance
- Aggregation
- Association
Q9. Using encapsulation we can achieve
Select correct option:
1. Information hiding
- Least interdependencies among modules
- Implementation independence
- All of given options
Q10. In constant member function the type of this pointer is: Select correct option:
- Constant pointer
2. Constant pointer to object
- Constant pointer to class
- Constant pointer to constant object
Q11. 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
Q12. The ability to derive a class from more than one class is called
- Single inheritance
- Encapsulation
3. Multiple inheritance
- Polymorphism
Q13. If MyClass has a destructor what is the destructor named?
- MyClass
- ~MyClass
- My~Class
- MyClass~
Q14. Class abc{ ----- }; Is a valid class declaration?
- yes
- no
Q15. Without using Deep copy constructor, A ____________ problem can occur
- System crash
- Memory Leakage
- Dangling pointer
4. All of the given
Q16. If only one behavior of a derived class is incompatible with base class, then it is:
- Generalization
2. Specialization
- Extension
- Inheritance
Q17. Which of the following may not be an integral part of an object?
- state
- behavior
Related CS304 files
All CS304 files →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.