- Type
- Quiz
- Course
- CS304P Object Oriented Programming (Practical)
- Size
- PDF 844 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 page 1 of 1. Download the file for all 1 page.
CS304P - Quiz No.9
Date: 28 December 2025
Q1. There are ________ types of inheritance in C++.
Correct answer: 4
Q2. Which of the following is not the correct type of inheritance in C++?
Correct answer: secret
Q3. class A { public: int Test(int x) {return x*x;} int Test(int x,int y) {return x*y;} }; class B : public A { public: int Test(int x) { return x*x*x;} }; In the above class, the method Test is_______.
Correct answer: Both
Q4. For the given class definition, which one is correct? #include<iostream> using namespace std; class A{ int x,y; public: int Add(int a,int b){return a+b;} int Add(int c){return c;} };
Correct answer: Function Add is overloaded
Q5. In case of public inheritance between Base class A and Derived class B, which of the folllowing data members of Base class will be hidden in Derived class?
Correct answer: private
Generated With VU Toolkit Made with ♥ by Paradoxical
Related CS304P files
All CS304P 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.