Skip to content
VUBuddy

CS304P Quiz Jan 2026

Object Oriented Programming (Practical) PDF 26 KBUpdated 23 Oct 2026
Quiz CS304P Quiz Jan 2026 PDF 26 KB
vubuddy.com
Type
Quiz
Course
CS304P Object Oriented Programming (Practical)
Size
PDF 26 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 26 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 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?

  1. When linked
  2. When declared
  3. At runtime
  4. At compile time

Correct answer: At compile time

Which of the given is not a Sequence Container?

  1. List
  2. Vector
  3. Set
  4. Deque

Correct answer: Set

Which of the following is an example of general template?

  1. template
  2. template
  3. template
  4. template

Correct answer: template

Which of the following is the correct syntax for creating a template class X friend of a template class Y?

  1. X;
  2. X friend;
  3. friend X;
  4. friend X;

Correct answer: friend X;

Which of the following is the correct syntax for creating a function Test(T) friend of a template class?

  1. void Test(T) friend;
  2. void friend Test(T);
  3. void Test(T);
  4. friend void Test(T);

Correct answer: friend void Test(T);

Which of the following is not the correct type of inheritance in C++?

  1. protected
  2. private
  3. secret
  4. public

Correct answer: secret

What keyword is used to define a generic function template?

  1. template
  2. typename
  3. generic
  4. class

Correct answer: template

Which of the following function is used to add an element to the end of a vector?

  1. end()
  2. insert()
  3. push_back()
  4. back()

Correct answer: push_back()

Which keyword is used to achieve polymorphism?

  1. pure virtual
  2. poly
  3. virtual
  4. 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

All CS304P files →
CS304P Object Oriented Programming (Practical) All CS304P 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.