Skip to content
VUBuddy

CS304 Final Term Past Papers by Iqra Azhar

Object Oriented Programming PDF 973 KBUpdated 23 Oct 2026
Final term past paper CS304 Final Term Past Papers by Iqra Azhar PDF 973 KB
vubuddy.com
Type
Final term past paper
Course
CS304 Object Oriented Programming
Size
PDF 973 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 973 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 4, 5, 6 of 23. Download the file for all 23 pages.

Adding a derived class to a base class requires fundamental changes to the base class. True False

True

False

Static

Dynamic Automatic

instance

virtual

operator

Which line will produce error. Class phone: private Transmit, private Receiver { } 1. int main() 2. { 3. phone obj; 4. Tranmit* obj1 = &obj; 5. Received obj2 = &obj; 6. }. 3rd line will produce error 4th line will produce error 3rd and 4th line will produce error.

5th line will produce error

Function overriding is done in context of, Single class Single derived class Single base class

Derived and base classes

: protected class1 { }; Function func1 of class1 is ____ in class2, public

protected

private

The following statements: 1) int iArray[5]; 2) int *pArr = iArray;

Methodologies to the development of reusable software relate to________. Structure programming procedural programming

generic programming

Function template must have a parameter. True

False

The default inheritance mode is, Public inheritance Protected inheritance

Private inheritance

None of these options Two functions with same names, parameters and return type can exist in, Function overloading Function overriding Operator overloading None of these options Consider the code below, class c1{ }; class c2 : public c1 { }; class c3 : public c2 { }; Then c2 is,

Direct child class of c3 None of these

Virtual functions allow you to

create an array of type pointer-to-base class that can hold pointers to derived classes. create functions that can never be accessed. group objects of different classes so they can all be accessed by the same function code. use the same function call to execute member functions of objects from different classes.

True

False

In order to define a class template the first line of definition must be: template <typename T> typename <template T> Template Class < ClassName> Class < Template T>

Consider the following statements: 1) int iArray[5]; 2) int *pArr = iArray;

In c++ dynamic binding and polymorphism will be achieved when member

private public

virtual

inline In type in depended function template should be use where code and behavior must be identical.

True

False

All CS304 files →
CS304 Object Oriented Programming All CS304 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.