CS304 Midterm MCQs Set 2 by VU Topper RM
- Type
- Midterm past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 537 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 14. Download the file for all 14 pages.
Q1. Vu-Topper RM (1 marks)
Which of the following best describes relationship between Book and BookChapter classes?
Correct answer: Composition
Q2. Vu-Topper RM (1 marks)
The keyword "friend" should be placed in ___________ : A. Main Function B. Function Definition C. Anywhere in program
D. Function Declaration Google
Q3. Vu-Topper RM (1 marks)
Which of the following stores the address of a variable?
Correct answer: Pointer
Q4. Vu-Topper RM (1 marks)
_____ is creating objects of one class inside another class. A. Association B. Inheritance C. Aggregation
D. Composition Page 125
Q5. Vu-Topper RM (1 marks)
Which of the following can be used as an alternative to static members?
Correct answer: Global Variables
Q6. Vu-Topper RM (1 marks)
What is the general syntax of overloading Unary Operator as member function of the class?
Correct answer: TYPE & operator OP ();
Q7. Vu-Topper RM (1 marks)
Which of the following operators operate on one operand?
Correct answer: Unary Operators
Q8. Vu-Topper RM (1 marks)
Composition is __________ and aggregation is ____________ relationship. A. Weak, Weak B. Weak, Strong
C. Strong, Weak
D. Strong, Strong
Q9. Vu-Topper RM (1 marks)
Which of the following function declaration is correct to overload the + operator as member function in Complex class?
Correct answer: Complex operator +(const Complex & rhs);
Q10. Vu-Topper RM (1 marks)
Insertion operator is ________________ associative. A. Left to Left B. Right to Left
C. Left to Right Page 160
D. Right to Right
Q11. Vu-Topper RM (1 marks)
Which of the following statement is TRUE about a class's Static Member Function?
Correct answer: It is used to access static data members only.
Q12. Vu-Topper RM (1 marks)
Which of the following is the correct way of declaring a constant variable named RollNo?
Correct answer: const int RollNo;
Related CS304 files
All CS304 files →- CS304 Midterm Solved MCQs by Junaid Midterm PDF 2.7 MB
- CS304 Midterm Past Paper 6 Midterm PDF 69 KB
- CS304 Midterm Solved MCQs with References Set 2 by Moaaz Midterm PDF 308 KB
- CS304 Midterm MCQs Midterm PDF 268 KB
- CS304 Highlighted Handouts Highlighted PDF 4 MB
- CS304 Solved Grand Quiz 2020 by Sonu Ilyas Quiz PDF 14.4 MB
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.