- Type
- Quiz
- Course
- CS304 Object Oriented Programming
- Size
- PDF 442 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 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
Related CS304 files
All CS304 files →- CS304 Highlighted Handouts Lectures 1-45 Highlighted PDF 7.7 MB
- CS304 Midterm MCQs with References by Moaaz Midterm PDF 326 KB
- CS304 Quiz 3 by Sunrise Zeeshan Quiz PDF 2.5 MB
- CS304 Quiz 2 (Word) Quiz DOCX 12 KB
- CS304 Mega File by Hackerz Quiz PDF 323 KB
- CS304 Assignment 1 Solution Assignment DOCX 95 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.