Skip to content
VUBuddy

CS304 Quiz 1

Object Oriented Programming PDF 857 KBUpdated 23 Oct 2026
Quiz CS304 Quiz 1 PDF 857 KB
vubuddy.com
Type
Quiz
Course
CS304 Object Oriented Programming
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. Which of the following is NOT an access specifier in C++?

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

Correct answer: hidden

Q2. Which of the following statements shows the inheritance relationship?

  1. Doctor can be a person.
  2. Doctor has a person.
  3. Doctor is a person.
  4. Doctor may be a person.

Correct answer: Doctor is a person.

Q3. cout is an object of ____ class.

  1. fstream
  2. istream
  3. instream
  4. ostream

Correct answer: ostream

Q4. “Object hides its information from others”, this concept is known as ________.

  1. Specialization
  2. Polymorphism
  3. Information Hiding
  4. Inheritance

Correct answer: Information Hiding

Q5. Generalization is _________ approach.

  1. Bottom-up
  2. Top-bottom
  3. Right-Left
  4. Left-Right

Correct answer: Bottom-up

Q6. Inheritance is a way to _________________.

  1. organize data
  2. add features to existing classes without rewriting them
  3. improve data-hiding and encapsulation.
  4. clean data

Correct answer: add features to existing classes without rewriting them

Q7. Generalization is implemented through ____________.

  1. Inheritance
  2. Composition
  3. Polymorphism
  4. Aggregation

Correct answer: Inheritance

Q8. Identify the abstract class from the given statement: "Vehicle class is base class. Bus, Car, and Truck are derived classes."

  1. Truck
  2. Bus
  3. Car
  4. Vehicle

Correct answer: Vehicle

Q9. In OOP, which of the following feature is used to derive a class from another class?

  1. Inheritance
  2. Data hiding
  3. Encapsulation
  4. Polymorphism

Correct answer: Inheritance

Q10. Static Data Member of a class is declared ___________.

  1. Inside the class
  2. Inside main() method
  3. Outside the class
  4. Outside the main() method

Correct answer: Inside the class

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.