Skip to content
VUBuddy

CS304 Solved Quiz 1

Object Oriented Programming PDF 568 KBUpdated 23 Oct 2026
Quiz CS304 Solved Quiz 1 PDF 568 KB
vubuddy.com
Type
Quiz
Course
CS304 Object Oriented Programming
Size
PDF 568 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 568 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, 3 of 10. Download the file for all 10 pages.

WMIg3Q

CS304 QUIZ 1 SOLVED

Q1. Suppose we have defined derived class copy constructor but have not defined base class copy constructor then compiler will.

  1. Use base class default constructor
  2. Generate base class copy constructor itself
  3. Use base class assignment operator
  4. None of the options is correct

Correct answer: Use base class default constructor

Q2. In case of dynamic memory allocation in our class we should use

  1. Default assignment operator
  2. User defined assignment operator
  3. Default Copy constructor
  4. None of these

Correct answer: User defined assignment operator

WMIg3Q

Q3. The C++ code statement class A: public B shows ___ relationship.

  1. Aggregation
  2. Composition
  3. Inheritance
  4. Simple Association

Correct answer: Inheritance

Q4. Which of the following is TRUE.

  1. Derived class pointer can be used as Base class pointer
  2. Base class pointer can be used as derived class pointer
  3. Both of these options
  4. None of these options

Correct answer: Derived class pointer can be used as Base class pointer

Q5. Public Inheritance represents.

  1. “IS A” relationship
  2. “Has A” relationship

Correct answer: “IS A” relationship

WMIg3Q

c) “IS Special Kind of” relationship d) None of these options

Q6. In protected Inheritance the public members of base class become ___

  1. Public
  2. Private
  3. Protected
  4. None of the given options

Correct answer: Protected

Q7. Static casting is

  1. C++ way of calling base class functions from derived class
  2. C way of calling base class functions from derived class.
  3. Both of these
  4. None of these

Correct answer: C++ way of calling base class functions from derived 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.