CS304 Mcqs MidTerm By Vu Topper RM-2.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
PDF
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

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. 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 Mcqs MidTerm By Vu Topper RM-2.pdf for free?

You can preview and download "CS304 Mcqs MidTerm By Vu Topper RM-2.pdf" (CS304 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-mcqs-midterm-by-vu-topper-rm-2-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

CS-304 Object Oriented Programming
Update MCQS For Mid Term
Solve By Vu Topper RM
          85% To 100% Marks

 For More Help Contact What’s app 03224021365

Question No:1                   (Marks:1)              Vu-Topper RM
Which of the following best describes relationship between Book and
BookChapter classes?
  A. Association
  B. Inheritance
  C. Aggregation
  D. Composition

Question No:2                  (Marks:1)            Vu-Topper RM
The keyword "friend" should be placed in ___________ :
  A. Main Function
  B. Function Definition
  C. Anywhere in program
  D. Function Declaration         Google

Question No:3                   (Marks:1)                Vu-Topper RM
Which of the following stores the address of a variable?
  A. Pointer
  B. Function
  C. Destructor
  D. Constructor

Question No:4                    (Marks:1)                Vu-Topper RM
_____ is creating objects of one class inside another class.
  A. Association
  B. Inheritance
  C. Aggregation
  D. Composition          Page 125

   For More Help Contact What’s app 03224021365

Question No:5                   (Marks:1)               Vu-Topper RM
Which of the following can be used as an alternative to static members?
  A. Local Variables
  B. Array of Objects
  C. Global Variables
  D. Constant Variables

Question No:6                   (Marks:1)             Vu-Topper RM
What is the general syntax of overloading Unary Operator as member
function of the class?
   A. TYPE & operator OP ();
   B. TYPE & operator OP (int);
   C. TYPE & operator OP (TYPE &);
   D. TYPE & operator OP (TYPE &, TYPE &);

Question No:7                   (Marks:1)             Vu-Topper RM
Which of the following operators operate on one operand?
  A. Unary Operators
  B. Ternary Operator
  C. Binary Operators
  D. All of the given options

Question No:8                (Marks:1)              Vu-Topper RM
Composition is __________ and aggregation is ____________
relationship.
   A. Weak, Weak
   B. Weak, Strong
   C. Strong, Weak
   D. Strong, Strong

   For More Help Contact What’s app 03224021365

Question No:9                   (Marks:1)                Vu-Topper RM
Which of the following function declaration is correct to overload the +
operator as member function in Complex class?
  A. Complex +(const Complex & rhs);
  B. operator + Complex (const Complex & rhs);
  C. Complex operator +(const Complex & rhs);
  D. Complex operator + ::(const Complex & rhs);

Question No:10                  (Marks:1)              Vu-Topper RM
Insertion operator is ________________ associative.
   A. Left to Left
   B. Right to Left
   C. Left to Right         Page 160
   D. Right to Right

Question No:11                    (Marks:1)                Vu-Topper RM
Which of the following statement is TRUE about a class's Static
Member Function?
  A. It can access non-static data members.
  B. It is used to access static data members only.
  C. It can only be called by a particular object of class.
  D. It can access constant data members of the class.

Question No:12                   (Marks:1)              Vu-Topper RM
Which of the following is the correct way of declaring a constant
variable named RollNo?
   A. const RollNo;
   B. int const rollNo;
   C. int RollNo const;
   D. const int RollNo;

   For More Help Contact What’s app 03224021365

Question No:13                  (Marks:1)               Vu-Topper RM
Which of the following is defined as stream extraction operator in C++?
  A. *<
  B. <<
  C. *>
  D. >>         Page 158

Question No:14                   (Marks:1)             Vu-Topper RM
What will be the output of the following code?
#include<iostream>
using namespace std;
int main()
{
int const x = 10;cout << ++x;}
   A. 10
   B. Run Time Error
   C. 11
   D. Compile time Error

Question No:15                    (Marks:1)             Vu-Topper RM
In C++, the subscript operator [] must be overloaded as a _______ of the
class, with one parameter of _______ type.
   A. Member function, int              Google
   B. Member function, char
   C. Non-member function, int
   D. Non-member function, char

Question No:16                   (Marks:1)                Vu-Topper RM
We can get the address of a variable stored in a pointer using
__________:
  A. :symbol
  B. :: symbol

   For More Help Contact What’s app 03224021365

  C. ->symbol
  D. & symbol           Google

Question No:17                     (Marks:1)                Vu-Topper RM
Suppose "int a;" is a static data member of a class named test. Which of
the following is the correct way of initializing the static variable outside
the class test?
   A. test a = 0;
   B. int test::a = 0;
   C. int test->a = 0;

Question No:18                 (Marks:1)                Vu-Topper RM
___________ Operator is used to create objects at run time.
  A. New       Page 118
  B. Create
  C. Dynamic
  D. Subscript

Question No:19                      (Marks:1)              Vu-Topper RM
Which of the following statement is NOT true about static variable of a
class?
   A. They are created even when there is no object of a class.
   B. Static variable belongs to a particular instance of a class.
   C. Static variable is initialized once only throughout the program.
   D. They remain in memory even when all Objects of a class are
      destroyed.

Question No:20                  (Marks:1)           Vu-Topper RM
Static Data Members can be accessed through _________.
   A. Semi colon
   B. Dot operator
   C. Scope resolution operator

   For More Help Contact What’s app 03224021365

  D. Dot operator and scope resolution operator

Question No:21                    (Marks:1)                Vu-Topper RM
Suppose we have a class named “Student”; which of the following
statement is correctly declaring the pointer to the object for “Student”
class?
   A. Student obj;
   B. Student &obj;
   C. Student *obj;
   D. *Student obj;

Question No:22                   (Marks:1)               Vu-Topper RM
Which of the following is the correct syntax of declaring static variable
“count” of type int?
  A. int static count;
  B. int count static;

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank