- Type
- Quiz
- Course
- CS304 Object Oriented Programming
- Size
- PDF 707 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 29. Download the file for all 29 pages.
How can we differentiate between constructor and destructors?
Destructor are preceded by a tilde(~) symbol and constructor are not preceded with any symbol.
If you do not initialize static variable of int type then it is automatically initialized with ____
Choose the correct statement
All of the given options
___ associates the objects of the exact two classes.
Binary association
Which of the following is the advantage of inheritance?
Reusability
Member function defined inside a class declaration are __ by default
Public
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>
Are called Non-type parameters
Which of the following is correct way to define a template class X?
Which of the following is a sequence Container?
Vector
Which of the following may inherit from an ordinary class?
Which of the following is NOT an Associate Container?
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
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;
Defining a function in class body, the compiler treats that function as:
Which of the following statements best describes the Constructor?
Constructor is used to initialize the data members of a class.
Related CS304 files
All CS304 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.