- Type
- Midterm past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 268 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 13. Download the file for all 13 pages.
In expression c1*c2+c3-c4 which of the following will be executed in first order C1*c2
Inheritance is a way to Add features to existing classes without rewriting them --------------- represent “IS A ”relationship Constructor without any parameter is called: Default constructor
Which of the following stores the address of a variable? Pointer
A Post-fix unary operator is implemented in C ++ using Member function with 1 dummy int argument
Which of the following statement(s) describe constant member functions? composition is a strong relation relationship because Composed object cant exist independency How many interactions are there in the following scenario Imran has the car. he drive the car and car has four wheels and doors if we extend our model ,and the rest of the model is not affected then it is called------ Flexibility
choose correct declaration of overload*=1 operator for class complex as Member function Complex and operator*=(const complex & c) Consider the following class A{int a,b,c; A,b,c public: A():B(10),C(0)a(7) }; Class is a blue print of Objects Suppose we have a class student which of the following statement is correctly declaring the pointer to the object of student class? Student*object
In c++ composition is relationship between -------and------objects Whole, part
Which of the following Depicts the proper definition of class? a class is description of a kind of object in class attributes are represented by ---- and------ respectively data member, Member function which of the following represents the two Association Employee works for the company Entities in OO model are represented by Rectangle Which of the following features of OOP is used to derive a class from another? In C ++ which of the following is defined as a stream insertion operator? choose the correct declaration of overloaded equality (==)operator for class string as a Member function Bool operator==(const string and s)
object hides its information from others this concept is known as
in abstraction provides information according to user perspective
which of the following is not an object Association which of the following classes are used by amphibious vehicle to inherit both land and water vehicle characteristics both states and
choose correct declaration of overloaded inequality operator for class string as non friend pool operator ! =(const string &s1,const string &2) How many objects of a given class may be constructed in an application? as many as the application ask for how many objects of a given class may be constructed in an application as many as the application ask for Which of the following statements describe constant member functions? student *ptr=new student(" Ali"); is an static memory allocation in------- base class can be replaced by the derived class extension
Which of the following is a correct way of declaring constant variable ROLLNO? cosnst int Roll no;
which of the following operator doesn't take argument hit overloaded choices which of the following is part of the Class diagram a child inherits characteristic from its parent which of the following issues can be caused by the use of friend function programming Bugs
which of the following is not true about constant number function Which one is not the main features of object oriented programming? exception handling
messages
Related CS304 files
All CS304 files →- CS304 Midterm MCQs with References by Moaaz Midterm PDF 326 KB
- CS304 Midterm Notes Lectures 1-22 Midterm PDF 3.4 MB
- CS304 Midterm MCQs Set 2 by VU Topper RM Midterm PDF 537 KB
- CS304 Midterm Past Papers File 1 Midterm PDF 2.4 MB
- CS304 Highlighted Handouts Set 3 Highlighted PDF 5.7 MB
- CS304 Assignment Solution by Orange Monkey Assignment DOCX 137 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.