Skip to content
VUBuddy

CS304 Quiz 1 Set 2

Object Oriented Programming PDF 857 KBUpdated 23 Oct 2026
Quiz CS304 Quiz 1 Set 2 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. cout is an object of ____ class.

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

Correct answer: ostream

Q2. Which of the following can be the attribute of an object “Ali”?

  1. Walk
  2. Address
  3. Eat
  4. Sleep

Correct answer: Address

Q3. Which of the following is a strong relationship?

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

Correct answer: Composition

Q4. Interface is a set of __________ of an object exposed to other objects.

  1. Methods
  2. Structures
  3. Attributes
  4. Classes

Correct answer: Methods

Q5. Which of the following can be created without any object of a class?

  1. Array of Objects
  2. Static Data Members
  3. Non-Static Data Members
  4. Instance Variables

Correct answer: Static Data Members

Q6. The concept of derived classes is involved in ___________.

  1. aggregation
  2. abstraction
  3. encapsulation
  4. inheritance

Correct answer: inheritance

Q7. “A fan has wings”. Which type of relationship exists between fan and wings in this sentence?

  1. Composition
  2. Association
  3. Generalization
  4. Aggregation

Correct answer: Aggregation

Q8. Which of the following is part of the class in UML diagram?

  1. Class Name
  2. Attributes
  3. Behaviors
  4. All of the given options

Correct answer: All of the given options

Q9. _______________ are best candidates to become objects in problem description.

  1. Adjectives
  2. Adverb
  3. Nouns
  4. Verbs

Correct answer: Nouns

Q10. Which of the following concept is more close to encapsulation?

  1. Information Hiding
  2. Exception Handling
  3. Polymorphism
  4. Inheritance

Correct answer: Information Hiding

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.