CS304 Final Term MCQs Set 2 by VU Topper RM
- Type
- Final term past paper
- Course
- CS304 Object Oriented Programming
- Size
- PDF 634 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 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?
Correct answer: Template < int, char >
Q3. Vu-Topper RM (1 marks)
Which of the following is known as Dereference operator in C++?
Correct answer: *
Q4. Vu-Topper RM (1 marks)
Which of the following is the correct syntax for passing two type argument to a template?
Correct answer: Template < typename T, typename U>
Q5. Vu-Topper RM (1 marks)
Which will be the primary task or task of generic programming?
Correct answer: All of given
Q6. Vu-Topper RM (1 marks)
Which of the following can be passed as type argument to template?
Correct answer: Both
Q7. Vu-Topper RM (1 marks)
Which of the following statement is true about partial specialization?
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?
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
Related CS304 files
All CS304 files →- CS304 Final Term MCQs by VU Topper RM Final term PDF 633 KB
- CS304 Final Term Short Notes Final term PDF 847 KB
- CS304 Final Term Quiz 3 by Wasi Final term PDF 697 KB
- CS304 Final Term Quiz Final term PDF 979 KB
- CS304 Highlighted Handouts by NB Highlighted PDF 5 MB
- CS304 Quiz 3 Set 2 by VU Topper RM Quiz PDF 442 KB
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.