- Type
- Quiz
- Course
- CS304 Object Oriented Programming
- Size
- PDF 571 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 1, 2, 3 of 18. Download the file for all 18 pages.
CS304 QUIZ 1 SOLVED
Q1. A function call is resolved at run time in
Correct answer: Virtual member function
Q2. If the user does not specify the type if inheritance, then the default type of inheritance is
Correct answer: Private inheritance
- In case of private inheritance, private members of base class will be in derived class?
Correct answer: Hidden
Q4. Then int member i of base class is accessible in class,
Correct answer: derived 2 only
- In case of public inheritance, protected members of base class will be in derived class?
Correct answer: Protected
Q6. By default assignment operator (=) performs,
Correct answer: Shallow copy
Q7. In protected inheritance the public members of base class become _ in derived class.
Correct answer: Protected
Q8. Compiler can automatically generates the following constructor/s for a class,
Correct answer: Both of these
Q9. Friend’s functions of class are _ members of that class.
Correct answer: Private
Q10. Methodologies to the development of reusable software relate to
Correct answer: Generic programming
Related CS304 files
All CS304 files →- CS304 Official Handouts Official handout PDF 2.8 MB Free
- CS304 Midterm Notes Lectures 1-22 Midterm PDF 3.4 MB
- CS304 Assignment 1 Solution Spring 2021 Assignment PDF 381 KB
- CS304 Assignment 1 Solution Fall 2021 Assignment PDF 102 KB
- CS304 GDB Solution 2021 by VUBuddy GDB PDF 456 KB
- CS304 Quiz 2 2022 Quiz PDF 707 KB
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.