Skip to content
VUBuddy

CS304P Lab Quiz 5 by Iqra Azhar

Object Oriented Programming (Practical) PDF 581 KBUpdated 23 Oct 2026
Quiz CS304P Lab Quiz 5 by Iqra Azhar PDF 581 KB
vubuddy.com
Type
Quiz
Course
CS304P Object Oriented Programming (Practical)
Size
PDF 581 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 581 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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.

All CS304P files →
CS304P Object Oriented Programming (Practical) All CS304P handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.