CS304 Quiz 2 Solution By MCS of Virtuallians.pdf
Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope spanning approximately 180 pages across 8 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS304 – Object Oriented Programming
- Faculty
- Computer Science
- Format
- Type
- Quiz
- Coverage
- Quizzes & Objective Exam Scope
Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.
What this file covers — CS304 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS304 Quiz 2 Solution By MCS of Virtuallians.pdf for free?
You can preview and download "CS304 Quiz 2 Solution By MCS of Virtuallians.pdf" (CS304 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-quiz-2-solution-by-mcs-of-virtuallians-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS304 file?
This document covers Quizzes & Objective Exam Scope across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS304 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS304 solved past papers and handouts verified for 2026 exams?
Yes. All CS304 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
CS304 Quiz No.2 Spring 2020 by MCS of Virtuallians
1. 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
2. Which of the following is the correct way to define a template class X?
a. Class < typename T>class X{}
b. Template class C{}
c. Template < typename T> classX{}
d. Typename<class T > class X{}
3. In resolution order of function template, compiler searches for _______in the end
a. Complete specialization
b. Partial specialization
c. Ordinary function
d. Generic template
4. ___________may inherit from a complete specialization
a. Partial specialization
b. Complete specialization
c. Ordinary class
d. All of given options
5. Which of the following may inherit form the ordinary class?
a. Class template
b. Partial specialization
c. Complete specialization
d. All of given option
6. Which of the following is a sequence container?
a. Map
b. Vector
c. Set
d. multiset
7. Each ____________of a template class by default becomes function template
a. Date member
b. Member function
c. Type parameter
d. Object
8. When we specialize a function template, it is called __________________
a. Function overloading
b. Function overriding
c. Function template overloading
d. Function template overriding
9. Which of the following is NOT an associative container?
a. Set
b. Multiset
c. Map
d. Group
10. A ____________is a pointer which is declared outside the ________
a. Container, cursor
b. Cursor, container
c. Container, class
d. This, cursor
11. Which of the following are collectively referred to as the first class containers?
a. Associative containers and containers adapters
b. Sequence containers and associative containers
c. Sequence containers and container adapters
d. None of the given options
12. ________ class is a single class that provides functionality to operate on different type
of data
a. Friend
b. Template
c. Ordinary
d. None of the give options
13. Which of the following can be passed as type argument to template?
a. Primitive type
b. User defined types
c. Both primitive type and user defined types
d. None of the given options
14. Which of the following is known as Dereference operator in C++?
a. +
b. *
c. &
d. ::
15. We can change behavior of template using___________
a. Template parameters
b. Function parameters
c. Class Templates
d. none of the given options
16. Which of the following represents partial specialization?
a. Template < int, char >
b. Template < class T, Type t>
c. Template<class T, Class U, int>
d. Template< typename T, class W>
17. When we declare template function as friend of any class, then which of the following
specialization(s) of template function also become friend of the class granting
friendship?
a. Explicit
b. Implicit
c. Partial
d. All of the given options
18. In statement “template <class T, class U, int I = 5>” then non-type parameters is
_____
a. Class T
b. Class U
c. int I
d. All of the given option
19. Which of the following is the correct syntax for passing two type argument to a
template?
a. template < type T, type U>
b. template < typename T, typename U>
c. template <type T,U>
d. template Typename < T,U >
20. Which of the following represents complete specialization?
a. Template < int, char >
b. Template < class T, float>
c. Template<class T, Class U , int>
d. Template< class , class W>
21. Which of the following is/are the key component of standard template library?
a. Containers
b. Iterators
c. Algorithm
d. All of the given option
22. Which of the following statement is true about partial specialization?
a. Function templates cannot have partial specialization
b. Class template cannot have partial specialization
c. Both class templates and function template can have partial specialization.
d. None of the given
23. Which of the following is correct code portion to initialize static data member “value”
of int type for class X?
a. Template <class T> X::value =0;
b. Template<class T>int X::value =0;
c. Template<class T> int X < T >::value = 0;
d. Template<class T> X < T >::value =0;
24. When we want to have exactly identical operations on different data type,
________are used
a. Function Template
b. Function Overloading
c. Function Overriding
d. None of the given option
25. In order to define a class template the first line of definition must be:
a. Template <typename T>
b. typename < template T>
c. Template class <ClassName>
d. Class <Template T>
26. In case of template specialization, if compiler cannot find required complete
specialization then it searches for some _______
a. General template
b. Complete template
c. Partial specialization
d. None of the given
27. 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 obj <int>;
b. Vector obj <> int;
c. Vector <int>obj;
d. Vector int obj;
28. Which of the following types of container is NOT provided by standard Template
Library?
a. Sequence containers
b. Structured containers
c. Associative containers
d. Container adapters
29. A class template ___________More CS304 files
- CS 304 Quiz 1 27-Nov-2023 Sufyan JUTT.pdf.pdf (PDF · Quiz)
- CS 304P Quiz 1 21-Nov-2023 Sufyan JUTT.pdf (PDF · Quiz)
- CS304 GRAND QUIZ BY JUNAID.pdf (PDF · Quiz)
- CS304 GRAND QUIZ BY JUNAID.pdf (PDF · Quiz)
- CS304 GRAND QUIZ BY JUNAID.pdf (PDF · Quiz)
- CS304 GRAND QUIZ BY JUNAID.pdf (PDF · Quiz)
- CS304 Grand Quiz Spring 2021 Solved by Riz Mughall.pdf (PDF · Quiz)
- CS304 Grand Quiz Spring 2021 Solved by Riz Mughall.pdf (PDF · Quiz)