Skip to content
VUBuddy

CS304 Quiz 2

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

CS304 quiz 2, 2022

______________ Class is a single class provides functionally to operate on different type of data.

Template

Which of the following may inherit from an ordinary class?

Which of the following represents complete specialization?

Template <int.char>

The parameters given in template definition other than those used for mentoring templates types are called

Non-type parameters

Which of the following is correct way to define a template class X?

typename &lt;class T &gt; class X {};

Which of the following is a sequence Container?

Vector

In resolution order of function template compiler searches for ___________in the end. Generic template __________ may inherit from a complete specialization.

Which of the following may inherit from an ordinary class?

Which of the following is NOT an Associate Container?

Group

When was specialize a function template .it is called___________

Function template overriding

Which of the following is/are key component(s) of standard Template Library?

Each ____________ of a template class by default becomes function template. Member function

In statement “template<class U,int |=5>”the non type parameter is

Int |

Solution order highest priority is given to ________ in template

Complete template

In case of template specialization ,if compiler cannot find required complete

Partial specialization

_________ is a pointer which is declared outside the _________

Cursor, Container

Suppose a template class “Test” has a static data member. How many copies of this static data member following line of C++ code?

Three

In statement template <class T,class U ,int |=5> the non-parameter is ______.

Class U

A template argument is preceded by the keyword ____________. Class. We can have ________ type of member functions in a class.

Which of the following is NOT casting operator in C++ standard?

var_cast

Which of the following types of Inheritance is used to model "Implemented in terms of" relationship?

Private

In case of protected inheritance, public members of base class will be ________ in derived class?

protected

In C++ by default access of classes is ________.

Private

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. derived Suppose we have defined derived class copy constructor but have not defined base class copy constructor then compiler will,

Use base class default constructor

In case of private inheritance, private members of base class will be ________ in derived class.

hidden

________ defines the order of evaluation of an operator in an expression.

Operator Precedence

Which of the following is the correct syntax of declaring static variable "count" of type int? static int count;

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.