CS304P Lab Quiz 5 by VUBuddy
- Type
- Quiz
- Course
- CS304P Object Oriented Programming (Practical)
- Size
- PDF 851 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 20. Download the file for all 20 pages.
Q1. Which of the following is a weak relationship?
Q2. Which of the following is true about the aggregation?
The aggregation is a relationship between container and contained objects. studywithhamza25 b. c. The life of the sub-object is dependent on the life of the master class. d. All of the given options
Q3. Which of the following offers a programmer the facility of using a specific class object into other classes?
Q4. Why do we need relationships between classes?
Q5. Which of the following creates the strongest relationship between two objects?
Q6. What is the purpose of new operator?
particular pointer. studywithhamza25 d. Allocates memory for an object or array
Q7. Which of the following is true about the friend functions?
Q8. A doctor can see patients. This type of relationship is known as ________.
Q9. In C++, if new operator is used, when is the constructor called?
When an object of a class is the data member of another class, it is called as _________. a. inheritance b. Association c. aggregation
11. In the call by reference method, which operator is used to get the address of a variable? a. % b. &
d. # 12. Which of the following two arrays are copy-able? a. int a[4], int b[5] b. int a[5], float b[5] c. float a[4], int b[5] d. int a[5], int b[5] . studywithhamza25 13. Which of the following is the correct way to initialize all the elements of array with 0?
Related CS304P files
All CS304P files →- CS304P Final Term Preparation by Qalb-e-Momin Final term PDF 13.8 MB
- CS304P Lab Quiz 3 by Iqra Azhar Quiz PDF 426 KB
- CS304P Quiz 1 by Iqra Azhar Quiz DOCX 481 KB
- CS304P Quiz July 8 2025 by Lucky Quiz PDF 745 KB
- CS304P Graded Quiz 3 Jan 2026 Quiz PDF 31 KB
- CS304P Lab Quiz 4 by Iqra Azhar Quiz PDF 650 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.