CS304 Midterm MCQs Set 3 by VU Topper RM
- Type
- Midterm past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 556 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 File 1 by Team Hadi Midterm PDF 2.4 MB
- CS304 Midterm Solved MCQs with References by Moaaz Midterm PDF 326 KB
- CS304 Midterm Solved Subjective with References by Moaaz and Irfan Midterm PDF 297 KB
- CS304 Midterm Solved Subjective with References by Moaaz Midterm PDF 297 KB
- CS304 Handouts by VUBuddy Handout PDF 2.8 MB
- CS304 Quiz 3 MCQs Fall 2022 MCQs PDF 13.3 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.