- Type
- Quiz
- Course
- CS304 Object Oriented Programming
- Size
- PDF 874 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 34. Download the file for all 34 pages.
If you have three classes in a C++ program A, B, and C where class A inherits from class B, then class _____________ contains all the characteristics of class _________________. A. B, C B. A, C C. B, A
D. A, B
A post-fix unary operator is implemented in C++ using non-member function with __________ argument(s). A. Three B. One
C. Two
D. Zero
Suppose derived class is inherited from base class. What happens when a derived class object is created?
Correct answer: The constructor of base class is executed before the constructor of derived class
________________ represents “IS A” relationship. A. Aggregation B. Simple Association
C. Inheritance
D. Composition
Outside world can access only __________ members of a class using its object. A. Protected
B. Public
C. Private D. No member is accessibl
In C++, the subscript operator [] must be overloaded as a _______ of the class, with one parameter of _______ type.
A. Member function, int
B. Member function, char C. Non-member function, char D. Non-member function, int
We can call base class constructor from derived class constructor, A. We can not call the base class constructor B. From derived class constructor body C. From any member function of derived class
D. From the initializer list of derived class constructor
Which of the following is defined as stream extraction operator in C++?
Correct answer: >>
In C++, which of the following keywords works only with constructors?
Correct answer: explicit
protected: void func1();
A. protected
B. none of the given options C. private D. public
private: int i;
class class2 : public class1
Then int member i of class1 is ______ in class2. A. none of the given options
B. private
C. public D. protected
private: int i;
Then int member i of class1 is ______ in class2. A. none of the given options
B. protected
C. public
Related CS304 files
All CS304 files →- CS304 Highlighted Handouts Lectures 1-45 Highlighted PDF 7.7 MB
- CS304 Final Term Past Paper Fall 2006 Final term ZIP 183 KB
- CS304 Quiz 2 by VU Topper RM Quiz PDF 528 KB
- CS304 Assignment Solution Assignment PDF 250 KB
- CS304 Quiz 1 by Iqra Azhar Quiz PDF 644 KB
- CS304 Quiz File by VU Topper RM Quiz PDF 1.4 MB
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.