Skip to content
VUBuddy

CS304 Quiz 3 Set 2 by VU Topper RM

Object Oriented Programming PDF 442 KBUpdated 23 Oct 2026
Quiz CS304 Quiz 3 Set 2 by VU Topper RM PDF 442 KB
vubuddy.com
Type
Quiz
Course
CS304 Object Oriented Programming
Size
PDF 442 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 442 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 1, 2, 3 of 28. Download the file for all 28 pages.

CS-304 Quiz -3 File

By Vu Topper RM

Q1. Vu-Topper RM (1 marks)

you want to defer the declaration of the class.

Q2. Vu-Topper RM (1 marks)

In resolution order compiler search firstly _______.

Generic Template

Ordinary function

Q3. Vu-Topper RM (1 marks)

template<> class Vector{ void** p; //.... void*& operator[] ((int i); }; This specialization can then be used as the common implimentation for all Vectors of pointers. This spcialization can then be used as the all type implimentation for one type classes. This specialization can then be used double type pointers. This specialization should be used for Vectors of all type int types.

Q4. Vu-Topper RM (1 marks)

In private inheritance derived class pointer can be assigned to base class pointer in,

Main function

In derived class member and friend functions In base class member and friend functions None of the these

Q5. Vu-Topper RM (1 marks)

Which statement will be true for concrete class?

it implements an virtual concept.

it can be instantiated

it cannot be instantiated

Q6. Vu-Topper RM (1 marks)

Target of a _____ function call is determined at run time. instance

virtual

operator

Q7. Vu-Topper RM (1 marks)

The Specialization pattern after the name says that this specialization is to be used for every___. data types meta types virtual types

pointers type

Q8. Vu-Topper RM (1 marks)

c++ dynamic binding and polymorphism will be achieved when member function will be __.

private public

virtual

Q9. Vu-Topper RM (1 marks)

Consider the code below, class class1{ protected: void func1(); }; class class2 : public class1 { }; Function func1 of class1 is ____ in class2, public

protected

private

Q10. Vu-Topper RM (1 marks)

Consider the code below, class class1{ protected: int i; }; class class2 : protected class1 { }; Then int member i of class1 is ____ in class2,

public protected

private

Q11. Vu-Topper RM (1 marks)

Consider the code below , class class1{ private: void func1(); }; class class2 : private class1 { }; Function func1 of class1 is ____ in class2,

public protected private

operator

Q12. Vu-Topper RM (1 marks)

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

These statements will compile successfully Error in first statement

Error in second statement

None of given options

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.