CS304 Final Term Past Papers by Iqra Azhar
- Type
- Final term past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 973 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 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
Related CS304 files
All CS304 files →- CS304 Final Term MCQs by Waqar Siddhu Final term PDF 36.2 MB
- CS304 Final Term Quiz Final term PDF 979 KB
- CS304 Final Term MCQs by VU Topper RM Final term PDF 633 KB
- CS304 Final Term Past Papers Final term PDF 146 KB
- CS304 Highlighted Handouts Set 3 Highlighted PDF 5.7 MB
- CS304 Quiz 2 by Junaid Quiz PDF 1.2 MB
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.