CS304 Midterm Solved MCQs with References by Moaaz
- Type
- Midterm past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 326 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 21. Download the file for all 21 pages.
Spring 2010
Q1. Which part of an object exhibits its state? (1 marks)
Correct answer: Data (Page 23)
Q2. (1 marks)
Correct answer: add features to existing classes without rewriting them. (Page 27)
Q3. Suppose you have been given the following design, (1 marks)
"A person has a name, age, address and sex. You are designing a class to represent a type of person called a patient. This kind of person may be given a diagnosis, have a spouse and may be alive". Given that the person class has already been created, what of the following would be appropriate to include when you design the patient class?
Q4. What problem(s) may occur when we copy objects without using deep copy constructor? (1 marks)
Correct answer: All of the given (Page 147)
Q5. this pointers are not accessible for static member functions. (1 marks)
Correct answer: True (Page 114)
Q6. A static member function cannot be declared. (1 marks)
Q7. _______ remain in memory even when all objects of a class have been destroyed. (1 marks)
Correct answer: Static variables (Page 111)
Q8. Friend functions are _____________ functions of a class. (1 marks)
Correct answer: non-member (Page 136)
Q9. ___________, which means if A declares B as its friend it does NOT mean that A can access private data of B. It only means that B can access all data of A. (1 marks)
Correct answer: Friendship is one way only
Q10. The statement objA=objB; will cause a compiler error if the objects are of different classes. (1 marks)
Correct answer: True
Q11. call? (1 marks)
Correct answer: Rational_number operator+(double& obj); (Page 145)
Q12. Which operator can not be overloaded? (1 marks)
Correct answer: Conditional operator (? : ) (Page 141)
Q13. To convert from a user-defined class to a basic type, you would most likely use (1 marks)
Correct answer: a conversion operator that’s a member of the class.
Q14. The technique in which we visualize our programming problems according to real life’s problems is called (1 marks)
Correct answer: object oriented Programming
(Page 9)
Q15. In object orientated programming, a class of objects cans _____________ properties from another class of objects (1 marks)
Related CS304 files
All CS304 files →- CS304 Midterm Mega File by Ishfaq Midterm PDF 920 KB
- CS304 Midterm MCQs Set 3 by VU Topper RM Midterm PDF 556 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 Highlighted Handouts by NB Highlighted PDF 5 MB
- CS304 Quiz 2 by Smile Quiz PDF 467 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.