CS304 Sample Paper Soled by Qalb-e-Momin.pdf
Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum 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
- MCQ Bank
- Coverage
- Full Course Curriculum
Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.
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 Sample Paper Soled by Qalb-e-Momin.pdf for free?
You can preview and download "CS304 Sample Paper Soled by Qalb-e-Momin.pdf" (CS304 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-sample-paper-soled-by-qalb-e-momin-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 Full Course Curriculum 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
Fall 2022
CS304 - Object Oriented Programming
Final Term Sample Paper
1. What is the keyword used in templates in C++?
A. class
B. typename
C. both class & typename (Correct)
D. function
2. What is the purpose of using the "::" template-template parameter in C++?
A. Binding
B. Rebinding
C. Both binding & rebinding (Correct)
D. Reusing
3. What does not require instantiation in C++?
A. Functions
B. Non-virtual member function
C. Member class
D. All of the mentioned (Correct)
4. What is the keyword used to define user-defined data types in C++?
A. def
B. union
C. typedef (Correct)
D. type
5. What is the scope of data types defined with typedef in C++?
A. Inside that block only
B. Whole program (Correct)
C. Outside the program
D. Main function
6. What is a template in C++?
A. A formula for creating a generic class (Correct)
B. A tool for manipulating a class
C. A way of creating attributes
D. None of the given
7. What is used for generic programming in C++?
A. Modules
B. Templates (Correct)
C. Virtual functions
D. Abstract Classes
8. What can be passed by non-type template parameters at compile time in C++?
A. int
B. float
C. Constant expression (Correct)
D. char
9. Function template in C++ is way of creating a function___________.
A. without a class
B. with an exact type
C. without blank spaces
D. without specifying the exact type (Correct)
10. Which of the following is not an advantage of using Templates in C++?
A. High Reliability (Correct)
B. Reusability
C. Writability
D. Generic Programming
11. Which one of the following is not a type of inheritance in C++?
A. public
B. virtual (Correct)
C. private
D. protected
12. In C++ inheritance, is it possible for a child class to initialize its indirect base classes through its
constructor initialization list?
A. Yes, it is possible
B. No, it is not possible (Correct)
C. It depends on the implementation.
D. Only if the indirect base classes are direct base classes of the child class.
13. How many classes are required to implement the multiple inheritance in a program?
A. Only two
B. At least two
C. At least three (Correct)
D. Only four
14. _____________ is used to solve multiple inheritance issues.
A. Virtual inheritance (Correct)
B. Friend functions
C. Generic programming.
D. Templates
15. What is multiple inheritance in Object-Oriented (OO) programming?
A. a derived class inherits from multiple base classes. (Correct)
B. a base class inherits from multiple derived classes.
C. a class inherits from a single base class.
D. a class cannot inherit from any base class.
16. A/an __________ is a template definition of methods and variables of a class and its object cannot
be instantiated.
A. virtual class
B. static class
C. concrete class
D. abstract class(Correct)
17. Specialization (Restriction) can be implemented using both ______ and ___________ inheritance.
A. Public, Protected
B. Private Protected (Correct)
C. Virtual, Protected
D. Public, Virtual
E.
18. Correct format to declare a template function is _______________.
A. template< class T >
void funName( T x ); (Correct)
B. template< classfunction T >
void funName( T x );
C. template< Function T >
void funName( T x );
D. template< class T function F>
void funName( T x );
19. The target function for a call is selected at run-time is known as_____________.
A. Dynamic binding (Correct)
B. Static binding
C. Function binding
D. Object binding
20. A mechanism that enables us to write a single function or class that works for all data types is
known as _________.
A. Generic programming (Correct)
B. Imperative programming
C. Functional programming
D. Logic programming
21. What is the purpose of using a cursor pointer declared outside an aggregate object?
A. Traverse elements (Correct)
B. Store fixed value
C. Store multiple values
D. Store address
22. Which of the following is not a method to traverse the element in a cursor?
A. T* first()
B. T* beyond()
C. T* next( T* )
D. T* prev(T*) (Correct)
23. Cursor works fine when we have _______ memory.
A. Contagious (Correct)
B. Non-contagious
C. Static
D. Dynamic
24. Which of the following is not a key component of STL (Standard Template Library)?
A. Containers
B. Iterators
C. Algorithms
D. Map (Correct)
25. Which of the following is not a Sequence Container?
A. Iterator
B. Deque
C. Map(Correct)
D. List
26. Which of the following is Not a type of Error handling technique?
A. Graceful Termination
B. Return an illegal value
C. Return a value (Correct)
D. Return code form a function
27. Which of the following follows the multi-pass algorithm?
A. Input Iterator
B. Output Iterator
C. Random Access Iterator
D. Bi-directional Iterator(Correct)
28. A copy of an element is made using ____________ , when an element is inserted into a container.
A. Copy constructor
B. Assignment operator
C. Copy constructor and Assignment operator (Correct)
D. Destructor
29. ______________ provides faster retrieval of data based on keys.
A. Associative container (Correct)
B. Sequence container
C. Input Iterator
D. Random Access Iterator
30. _____________ can traverse the elements of a container without exposing the internal
representation of the container.
A. Cursor
B. Iterator (Correct)
C. Algorithm
D. Sequence ContainerMore CS304 files
- CS304 CURRENT PAPER BY Qalb-e-Momin.pdf (PDF · MCQ Bank)
- CS304 CURRENT PAPERS FALL 2021 SOLVED BY ADIL ALVI.pdf (PDF · MCQ Bank)
- CS304 Mega MCQS-1.pdf (PDF · MCQ Bank)
- CS304 Mega MCQS-2.pdf (PDF · MCQ Bank)
- CS304 Mega MCQS.pdf (PDF · MCQ Bank)
- CS304 Mega MCQS.pdf (PDF · MCQ Bank)
- CS304 Mega MCQS.pdf (PDF · MCQ Bank)
- CS304(P)-Sample Paper.docx (DOC · MCQ Bank)