- Type
- Midterm past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 64 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 1, 2, 3 of 4. Download the file for all 4 pages.
Time: 60 min Marks: 38
Q1. Suppose there is an object of type Person, which of the following can be considered as one of its attributes (1 marks)
Q2. What a derived class can add? (1 marks)
Q3. ________ is/are used to access information hidden within an object? (1 marks)
Q4. this pointers are not accessible for static member functions. (1 marks)
Q5. A static member function cannot be declared. (1 marks)
Q6. C++ compiler does not allow to dynamically allocate memory for objects (1 marks)
Q7. Given the following class (1 marks)
class Base{ int Age=33;
How you can improve above class with respect to accessing the field Age?
Q8. Friend class and friend function can be used as an alternate to each other (1 marks)
Q9. Which of the following operators always takes no argument if overloaded? (1 marks)
Q10. 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)
Q11. Assume a class C with objects obj1, obj2, and obj3. For the statement obj3 = obj1 - obj2 to work correctly, if the overloaded - operator must (1 marks)
Q12. Which operator can not be overloaded? (1 marks)
Q13. We achieve independence of internal implementation from its external interface through-- (1 marks)
Q14. Which one of the following is not an object association? (1 marks)
Q15. We capture the object attributes and behavior in Object Oriented programming using------ (1 marks)
Related CS304 files
All CS304 files →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.