- Type
- Quiz
- Course
- CS304P Object Oriented Programming (Practical)
- Size
- PDF 26 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 6. Download the file for all 6 pages.
VU QUIZ REPORT
Subject: CS304P
Quiz Completed: 1/7/2026, 10:15:28 PM Total Questions: 20
Virtual functions can be used in ________ ways. A. 0 B. 8 C. 6
D. 2
When is a class template instantiated?
Correct answer: At compile time
Which of the given is not a Sequence Container?
Correct answer: Set
Which of the following is an example of general template?
Correct answer: template
Which of the following is the correct syntax for creating a template class X friend of a template class Y?
Correct answer: friend X;
Which of the following is the correct syntax for creating a function Test(T) friend of a template class?
Correct answer: friend void Test(T);
Which of the following is not the correct type of inheritance in C++?
Correct answer: secret
What keyword is used to define a generic function template?
Correct answer: template
Which of the following function is used to add an element to the end of a vector?
Correct answer: push_back()
Which keyword is used to achieve polymorphism?
Correct answer: virtual
For the given class definition, which one is correct? #include using namespace std; class A{ int x,y; public: int Add(int a,int b){return a+b;} int Add(int c){return c;} }; A. Function Add is overridden B. Function Add has an error C. None of the given options
Related CS304P files
All CS304P files →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.