Skip to content
VUBuddy

CS304 Quiz 1 by Sir Afzal

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

CS304 QUIZ 1 SOLVED

Q1. A function call is resolved at run time in

  1. Non virtual members function
  2. Virtual member function
  3. Both none-virtual and virtual member function
  4. None of given

Correct answer: Virtual member function

Q2. If the user does not specify the type if inheritance, then the default type of inheritance is

  1. Public inheritance
  2. Private inheritance
  3. Protected inheritance
  4. None of given

Correct answer: Private inheritance

Q4. Then int member i of base class is accessible in class,

  1. derived 1 only
  2. derived 2 only
  3. both derived 1 derived 2
  4. none of the given options

Correct answer: derived 2 only

  1. In case of public inheritance, protected members of base class will be in derived class?
  1. Private
  2. Public
  3. Protected
  4. Hidden

Correct answer: Protected

Q6. By default assignment operator (=) performs,

  1. Shallow copy
  2. Deep copy
  3. Both of these
  4. None of these

Correct answer: Shallow copy

Q7. In protected inheritance the public members of base class

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

Correct answer: Protected

Q8. Compiler can automatically generates the following constructor/s for a class,

  1. Default constructor
  2. Copy constructor
  3. Both of these
  4. None of these

Correct answer: Both of these

Q9. Friend’s functions of class are _ members of that class.

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

Correct answer: Private

Q10. Methodologies to the development of reusable software relate to .

  1. Structure programming
  2. Procedural programming
  3. Generic programming
  4. None of the given

Correct answer: Generic programming

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.