Skip to content
VUBuddy

CS304P Quiz 1 Set 4

Object Oriented Programming (Practical) PDF 857 KBUpdated 23 Oct 2026
Quiz CS304P Quiz 1 Set 4 PDF 857 KB
vubuddy.com
Type
Quiz
Course
CS304P Object Oriented Programming (Practical)
Size
PDF 857 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 857 KB

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 of 2. Download the file for all 2 pages.

Q1. How many entities are involved in a ternary relationship?

  1. exactly 3
  2. 3 or more
  3. More than 3
  4. less than 3

Correct answer: exactly 3

Q2. Interaction of different objects in OO model is known as ______.

  1. Encapsulation
  2. Abstraction
  3. Inheritance
  4. Association

Correct answer: Association

Q3. Chair is a(an) ______ object and patent is a(an) _____ object.

  1. Intangible, Intangible
  2. Intangible. Tangible
  3. Tangible, Intangible
  4. Tangible, Tangible

Correct answer: Tangible, Intangible

Q4. Which of the following is the default access specifier for members of a class?

  1. public
  2. protected and public
  3. private
  4. protected and private

Correct answer: private

Q5. Which of the following concept deals with the security of data?

  1. Polymorphism
  2. Inheritance
  3. Generalization
  4. Data Hiding

Correct answer: Data Hiding

Q6. Which of the following is NOT true about constructor?

  1. Constrcutor can be a constant function
  2. Constructor does not have return type
  3. Constructor is a special function having the same name as the class name
  4. Constructors are commonly public members

Correct answer: Constrcutor can be a constant function

Q7. Which of the following is correct way of declaring the attribute as a public?

  1. class Student public: { char *name;};
  2. class Student { char *name;};
  3. class Student { public: char *name;};
  4. class public Student { char *name;};

Correct answer: class Student { public: char *name;};

Q8. ___________ is a concept to extract common behaviours by using Bottom to Top approach.

  1. Specialization
  2. Sub-typing
  3. Generalization
  4. Extension

Correct answer: Generalization

Q9. Which of the following can be the attribute of the Employee class?

  1. Roll Number
  2. GPA
  3. Salary
  4. Course

Correct answer: Salary

Q10. Which of the following class cannot exist standalone in an object model?

  1. Concrete Class
  2. Abstract Class
  3. Derived Class
  4. Friend Class

Correct answer: Abstract Class

All CS304P files →
CS304P Object Oriented Programming (Practical) All CS304P 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.