Skip to content
VUBuddy

CS304 Quiz 2 by Junaid

Object Oriented Programming PDF 1.2 MBUpdated 23 Oct 2026
Quiz CS304 Quiz 2 by Junaid PDF 1.2 MB
vubuddy.com
Type
Quiz
Course
CS304 Object Oriented Programming
Size
PDF 1.2 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.2 MB

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

FOR FINAL TERM VISIT MY SITE:

  1. A function template must have a parameter
  • True
  •  False
  1. Child class can call constructor of its,

 Direct base class

  •  Indirect base class
  •  Both direct and indirect base classes

Q3. Which statement will be true for concrete class?

  •  It implements an virtual concept.

 It can be instantiated

  •  It cannot be instantiated
  1. A class D can be derived from a class C, which is derived froma class B, which is derived from a class A
  • True
  •  False
  1. Adding a derived class to a base class requires fundamental changes to the
  • True
  •  False
  1. A Class or class template can have member ___________ that are themselves templates.
  •  Variable

 Function

  •  Objects

Q7. Which will be the Primary task or tasks of generic programming?

  •  Categorize the abstractions in a domain into concepts
  •  Implement generic algorithms based on the concepts
  •  Build concrete models of the concepts

 All of given

  1. The default inheritance mode is,
  2. If there is a pointer, p, to objects of a base class, and it contains the address of an object of a derived class, and both classes contain a virtual member function, ding(), then the statement p->ding(); will cause the version of ding() in the __________class to be executed.
  •  Base
  •  Derived

 Virtual

  •  Implemented
  1. Sender of the message does not need to know the exact class of receiver in________.
  •  Abstraction

 Polymorphism

  •  Inheritance
  1. A template provides a convenient way to make a family of

variables and data members

functions and classes

classes and exceptions programs and algorithms

  1. A class template may inherit from another class template.

True

False

  1. 1Target of a _____ function call is determined at run time.

instance

virtual

operator

  1. A class hierarchy

shows the same relationships as an organization chart. describes “has a” relationships. describes “is a kind of” relationships. shows the same relationships as a family tree.

  1. Sender of the message does not need to know the exact class of receiver in______.

Abstraction

Polymorphism

Inheritance

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.