CS304 Midterm searching mcqs.pdf
Verified academic study resource for CS304 (Object Oriented Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 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
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- MCQ, MIDTERM
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS304.
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)
Frequently asked questions
Where can I download CS304 Midterm searching mcqs.pdf for free?
You can preview and download "CS304 Midterm searching mcqs.pdf" (CS304 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-midterm-searching-mcqs-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 Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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 #1
CS304 Quiz #1 by
ᵛᵘ £lon musk ᶠⁱˡᵉˢ
1. Suppose derived class is inherited from base class. What happens when a derived class
object is created?
The constructor of base class is executed before the constructor of derived class.
2. Suppose str1, str2 and str3 are objects of class String. Choose appropriate declaration of
overloaded assignment operator for the following statement to work correctly.
str1 = str2 = str3;
String& operator =(const String &);
3. In C++, which of the following is defined as stream insertion operator?
<<
4. Choose correct declaration of overloaded inequality (!=) operator for class String as non-
member friend function.
None of the given options
5. Relationship in which child object gets destroyed if parent object is destroyed.
Composition
6. How the information hidden within an object can be accessed?
Through its interface
7. Which of the following defines default constructor for class "Student"?
Student() {//...
}
8. The sub-object’s life is not dependent on the life of master class in ___________.
Uncle Orange Monkey
CS304 Quiz #1
Aggregation
9. Hiding the implementation details makes program:
Easy to understand
10. The functions defined inside the class are by default ________.
Inline
11. Which of the following statement is TRUE about static function of a class?
It is used to access static data members.
12. Deconstruct is a function which has the same name as that of class but starts with a—–
sign
~
13. 'this' pointer cannot be passed implicitly to __________ functions.
Static Member
14. Which of the following can be the behavior of an object “Usman”?
Eat
15. In Object Oriented programming, objects communicate with each other through
________
Messages
16. Constructor is used to______the objects of a class.
Initialize
17. Which of the following is NOT an access specifier in C++?
Hidden
18. The other name of subtyping is ________.
Extension
Uncle Orange Monkey
CS304 Quiz #1
19. Suppose a class does not have any constructor. What will happen when an object of this
class is created?
Compiler will call implicit default constructor.
20. In case when we define the function outside the class then we must use the keyword
_________ to make the function inline.
Inline
21. In constant member function the type of this pointer is:
Constant pointer to constant data
22. In ____________, base class can be replaced by the derived class.
Extension
23. We can get the address of a variable stored in a pointer using __________:
& symbol
24. A child inherits characteristics from its _________.
Parent
25. Which of the following function declaration is correct to overload the + operator as
member function in Complex class?
Complex operator +(const Complex & rhs);
26. Which of the following is not true about constant member function?
All of the given options
27. What is the general syntax of overloading Unary Operator as member function of the
class?
TYPE & operator OP ();
28. _____ is creating objects of one class inside another class.
Composition
29. Which of the following is true about constructor?
Uncle Orange Monkey
CS304 Quiz #1
All of the given option
30. Memory is allocated to non static members only, when
Object is created
31. A child inherit characteristics from its ?
parents
32. A post-fix unary operator is implemented in C++ member function with
1 dummy int arguments
33. Which of the following is the example of objects in school?
Books , pages
34. Suppose student is a class, which of the following constructor with one parameter for
class student?
Student()
35. If you have three classes in a C++ program A, B, and C where class A inherits from class
B, then class ______ contains all the characteristics of class ________.
A, C
36. In ____ base class can be replaced by the derived class.
Extension
37. The concept of derived class is involved in _____
inheritance
38. Suppose person is a class which of the following statement defines an object of class
person?
Create person object
39. Which of the following is true about Accessor Functions?
a) They are also used to access private data of the object.
Uncle Orange Monkey
CS304 Quiz #1
b) It can be used to set private data member of the class
c) It can be used to get private data member of the class
d) All of the given options.
40. The other name of subtyping is
Extension
41. Which of the following statement best describes the constructor
constructor is used to initialize the data member of a class.
42. Which of the following is true about inline function?
It is used by compilers to improve efficiency of the program
43. Which of the following is defined as stream extraction operator in c++?
>>
44. An object has ___ interface(s)
One or more than one
45. Which of the following is an advantage of encapsulation?
Better understanding
46. Which of the following represents the two-way association?
Employee works for the company
47. ___ is the weakest link between object.
Simple association
48. Which of the following statement is NOT true about static variable of a class?
Static variable belongs to a particular instance of a class
49. In composition ______ are called from composing objects to compound objects.
Constructor
50. In OOP we can achieve reusability though ______
Inheritance
51. Generalization is implemented through
Inheritance
Uncle Orange Monkey
CS304 Quiz #1
52. Suppose str1, str2, and str3 are objects of class string. Choose appropriate declaration ofMore CS304 files
- CS304 - Midterm MCQS Solved With References By Moaaz.pdf (PDF · Midterm)
- CS304 - Midterm MCQS Solved With References By Moaaz.pdf (PDF · Midterm)
- CS304 - Midterm Subjectives Solved With References by Moaaz. (PDF · Midterm)
- CS304 - Midterm Subjectives Solved With References by Moaaz. (PDF · Midterm)
- CS304 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS304 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS304 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS304 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)