Skip to content
VUBuddy

CS304P Quiz 10

Object Oriented Programming (Practical) PDF 844 KBUpdated 23 Oct 2026
Quiz CS304P Quiz 10 PDF 844 KB
vubuddy.com
Type
Quiz
Course
CS304P Object Oriented Programming (Practical)
Size
PDF 844 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 844 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 page 1 of 1. Download the file for all 1 page.

CS304P - Quiz No.10

Date: 04 January 2026

Q1. Suppose you have a function: void sum(); Choose correct syntax from the given options which will make this function pure virtual function.

  1. void sum()=0;
  2. void sum() virtual=0;
  3. virtual void sum()=0;
  4. sum()=0;

Correct answer: virtual void sum()=0;

Q2. Which keyword is used to achieve polymorphism?

  1. pure virtual
  2. polymorphism
  3. poly
  4. virtual

Correct answer: virtual

Q3. A class with pure virtual function is called ________ class.

  1. abstract
  2. concrete
  3. normal
  4. solid

Correct answer: abstract

Q4. Virtual functions can be used in ________ ways.

  1. 2
  2. 6
  3. 8
  4. 0

Correct answer: 2

Q5. virtual void print(); is an example of_________________.

  1. simple function
  2. template function
  3. virtual function
  4. pure virtual function

Correct answer: virtual function

Generated With VU Toolkit Made with ♥ by Paradoxical

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.