- Type
- Midterm past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 215 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 5. Download the file for all 5 pages.
CS304 - Object Oriented Programming
Q1. What problem(s) may occur when we copy objects without using deep copy constructor? (1 marks)
Q2. Suppose that the Test class does not have an overloaded assignment operator. What happens when an assignment a=b; is given for two Test objects a and b? (1 marks)
Q3. a’A static member function can be called, even when a class is not (1 marks)
Q4. Identify which of the following overloaded operator function’s declaration is appropriate for the given call? (1 marks)
Ratipnal_number_1 + 2.325 Where Rational_number_1 is an object of user defined class Rational_number.
Q5. __________ provide the facility to access the data member. (1 marks)
Q6. Constant objects cannot change their state, (1 marks)
Q7. The ________ relationship indicates that an object contains other objects. (1 marks)
(Page 53)
Q8. Which one of the following features of OOP is used to derive a class from another? (1 marks)
Polymorphism
(Page 25)
Q9. Please choose (1 marks)
one _______ is a relationship
(Page 25)
Q10. __________ satisfy the condition of polymorphism (1 marks)
Carbon Diamond Coal
(Page 56)
Q11. A generalization-specialization relation between classes are implemented using (1 marks)
friend classes
Q12. The >= operator can be overloaded. (1 marks)
Q13. In order to free the memory occupied by the object, we use ------------- (1 marks)
Shallow Copy Deep Copy
Q14. Which of the following is not an example of multiple inheritances?---------- Mermaid (1 marks)
Woman (Lecture No.5)
Amphibious Vehicle
Q15. Static variable can be initialized more than once. (1 marks)
True False
Q16. A generic class showing all the common attributes and a behavior of other classes represents a very important feature in oop called -------- (1 marks)
(Page 26)
Related CS304 files
All CS304 files →- CS304 Midterm MCQs with References by Moaaz Midterm PDF 326 KB
- 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 Solved Subjective with References by Moaaz Midterm PDF 297 KB
- CS304 Highlighted Handouts Set 4 by VUBuddy Highlighted PDF 3.8 MB
- CS304 Solved Grand Quiz 2020 Quiz PDF 156 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.