Skip to content
VUBuddy

CS304 Final Term MCQs Set 2 by VU Topper RM

Object Oriented Programming PDF 634 KBUpdated 23 Oct 2026
Final term past paper CS304 Final Term MCQs Set 2 by VU Topper RM PDF 634 KB
vubuddy.com
Type
Final term past paper
Course
CS304 Object Oriented Programming
Size
PDF 634 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 634 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 25. Download the file for all 25 pages.

Q1. Vu-Topper RM (1 marks)

Which of the following is the correct code to instantiate the object of given template vector class of int type?

Template< class T > Class vector {

A. Vector int obj; B. Vector obj<>int;

C. Vector<int> obj;

D. Vector obj ;<int>;

Q2. Vu-Topper RM (1 marks)

Which of the following represents complete specialization?

  1. Template < int, char >
  2. Template < class T, float>
  3. Template< class , class W>
  4. Template <class T. class U.int>

Correct answer: Template < int, char >

Q3. Vu-Topper RM (1 marks)

Which of the following is known as Dereference operator in C++?

  1. +
  2. *
  3. &
  4. ::

Correct answer: *

Q4. Vu-Topper RM (1 marks)

Which of the following is the correct syntax for passing two type argument to a template?

  1. Template <type T.type U>
  2. Template < type T, type U>
  3. Template Typename < T,U >
  4. Template < typename T, typename U>

Correct answer: Template < typename T, typename U>

Q5. Vu-Topper RM (1 marks)

Which will be the primary task or task of generic programming?

  1. All of given
  2. Build concrete models of the concept
  3. Implement generic algorithms based on the concept
  4. Categorize the abstractions in a domain into concepts

Correct answer: All of given

Q6. Vu-Topper RM (1 marks)

Which of the following can be passed as type argument to template?

  1. Primitive type
  2. User defined types `
  3. Both
  4. None of the given options

Correct answer: Both

Q7. 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

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

Q8. Vu-Topper RM (1 marks)

The parameters given in temple definition other than those used for mentioning templates types are called A. Type Parameters

B. Non-Type parameters

C. Default Type Parameters D. None of the given option

Q9. 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

Q10. Vu-Topper RM (1 marks)

Which of the following is the correct way to define a template class X?

  1. Template class C{}
  2. Typename class X{}
  3. Class < typename T>class X{}
  4. Template < typename T> classX{}

Correct answer: Template < typename T> classX{}

Q11. Vu-Topper RM (1 marks)

May inherit from a complete specialization

A. All

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

Q12. Vu-Topper RM (1 marks)

In statement “template<class t.classU.intI=5> ”. then non-type parameters is _______.

A. int I

B. Class T C. Class U D. All of the given option

Q13. Vu-Topper RM (1 marks)

In resolution order compiler search first ______. A. Generic template

B. Ordinary function

C. Partial specialization D. Complete specialization

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.