Skip to content
VUBuddy

CS304 Quiz 4 by VU Topper RM

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

Q1. Vu-Topper RM (1 marks)

Which of the following statement is true about partial specialization?

  1. None of the given
  2. Class template cannot have partial specialization
  3. Function templates cannot have partial specialization
  4. Both class templates and function template can have partial specialization.

Correct answer: Both class templates and function template can have partial specialization.

Q2. Vu-Topper RM (1 marks)

In C++ generic programming is done using_________ A. Packages

B. Templates

C. Procedures D. None of the given

Q3. Vu-Topper RM (1 marks)

When we want to have exactly identical operations on different data types, ______________ are used. A. Function Overriding

B. Function Template

C. Function Overloading D. None of the given options

Q4. Vu-Topper RM (1 marks)

Each ___________ of a template class by default becomes function template. A. Object B. Date member C. Type parameter

D. Member function

Q5. Vu-Topper RM (1 marks)

Which of the following may inherit from an ordinary class?

  1. Class template `
  2. All of given option
  3. Partial specialization
  4. Complete specialization

Correct answer: All of given option

Q6. Vu-Topper RM (1 marks)

___________ may inherit from a complete specialization.

A. All of the given

B. Ordinary class C. Partial specialization D. Complete specialization

Q7. Vu-Topper RM (1 marks)

In resolution order, compiler searches for _________ firstly. A. Generic template

B. Ordinary function

C. Partial specialization D. Complete specialization

Q8. Vu-Topper RM (1 marks)

In case of template specialization, if compiler cannot find required complete specialization then it searches for some

A. General template B. None of the given C. Complete template

D. Partial specialization

Q9. Vu-Topper RM (1 marks)

A class template ____________

A. Facilitates reuse of class

B. Does not support static members C. Dose not facilitates reuse of class D. Does not support generic methods

Q10. Vu-Topper RM (1 marks)

Which of the following represents partial specialization?

  1. Template < int, char >
  2. Template < class T, Type t>
  3. Template<classT,classu,int>
  4. Template< typename T, class W>

Correct answer: Template<classT,classu,int>

Q11. Vu-Topper RM (1 marks)

A template provides a convenient way to make a family of

A. Functions and classes

B. Classes and exceptions C. Programs and algorithms D. Variables and data members

Q12. Vu-Topper RM (1 marks)

We can change behavior of a template using __________. A. Class Templates B. Function parameters

C. Template parameters

D. none of the given options

Q13. Vu-Topper RM (1 marks)

_________________ class is a single class that provides functionality to operate on different types of data. A. Friend B. Ordinary

C. Template

D. None of the give 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.