CS304P Lab Quiz 5 by Iqra Azhar
- Type
- Quiz
- Course
- CS304P Object Oriented Programming (Practical)
- Size
- PDF 581 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 of 4. Download the file for all 4 pages.
Which of the following is true about the friend functions?
Prototypes of friend functions appear in the class definition. Access specifiers has no impact on friend functions or classes All of the given options Friend functions can be placed anywhere in the class The correct option is: Prototypes of friend functions appear in the class definition.
Which of the following offers a programmer the facility of using a specific class object into other classes?
Polymorphism Abstraction
The correct option is: Inheritance. Why do we need relationships between classes?
To use the functionality of one class into derived classes To increase code re-usability All of the given option To enhance the communication between classes The correct option is: All of the given options.
In object-oriented programming, the design of relationships between classes is crucial for building maintainable, modular, and extensible software systems. What is the purpose of new operator?
Allocates memory for an object or array Allocates memory for an object or array and returns a particular pointer Used to declare any new thing in a program Used as return type when an object is created The correct option is: Allocates memory for an object or array and returns a particular pointer.
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.