Skip to content
VUBuddy

CS304 Quiz 1 Lectures 1-10 by Junaid

Object Oriented Programming PDF 1.1 MBUpdated 23 Oct 2026
Quiz CS304 Quiz 1 Lectures 1-10 by Junaid PDF 1.1 MB
vubuddy.com
Type
Quiz
Course
CS304 Object Oriented Programming
Size
PDF 1.1 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.1 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 2, 3, 4 of 14. Download the file for all 14 pages.

Kindly Visit My Site and Download CS304 Grand · QUIZ FILE · (If you want to Full Marks)

Q1. Information hiding can be achieved through__________.

  1. Encapsulation, Inheritance
  2. Encapsulation, Polymorphism

3. Encapsulation, Abstraction

  1. Overloading

Q2. A good model is ................ related to a real life problem.

  1. Loosely
  2. Openly
  3. Closely

Q3. 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. Which of the following is a weak relationship between two objects?

  1. Inheritance
  2. Composition

3. Aggregation

  1. None of given

Q5. Data items in a class must be private.

  1. True
  2. False

Q6. Which one is a class association

  1. Simple Association

2. Inheritance

  1. Composition
  2. Aggregation

Q7. 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. Which one is not an object association?

  1. Simple association

2. Inheritance

  1. Aggregation
  2. Association

Q9. Using encapsulation we can achieve

Select correct option:

1. Information hiding

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

Q10. In constant member function the type of this pointer is: Select correct option:

  1. Constant pointer

2. Constant pointer to object

  1. Constant pointer to class
  2. 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

  1. Sub-typing
  2. Specialization
  3. Extension

Q12. The ability to derive a class from more than one class is called

  1. Single inheritance
  2. Encapsulation

3. Multiple inheritance

  1. Polymorphism

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

  1. MyClass
  2. ~MyClass
  3. My~Class
  4. MyClass~

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

  1. yes
  2. no

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

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

4. All of the given

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

  1. Generalization

2. Specialization

  1. Extension
  2. Inheritance

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

  1. state
  2. behavior
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.