CS304 - Midterm MCQS Solved With References By Moaaz.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 compiled by Moaaz Siddhu) 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)
Compiled by
Moaaz Siddhu
Tags
MCQ, SOLVED, 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 - Midterm MCQS Solved With References By Moaaz.pdf for free?

You can preview and download "CS304 - Midterm MCQS Solved With References By Moaaz.pdf" (CS304 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-midterm-mcqs-solved-with-references-by-moaaz-pdf-2) 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- Object Oriented Programming
                       LATEST SOLVED MCQS FROM             Nov 07,2011
                           MIDTERM PAPERS

MC100401285   Moaaz.pk@gmail.com   MC100401285@gmail.com      Latest Mcqs

                                      MIDTERM EXAMINATION
                                            Spring 2010

Question No: 1 ( Marks: 1 ) - Please choose one
Which part of an object exhibits its state?

    ► Data (Page 23)
    ► Operations
    ► Any public part
    ► Any private part

Question No: 2 ( Marks: 1 )     - Please choose one
Inheritance is a way to

    ► organize data.
    ► pass arguments to objects of classes.
    ► add features to existing classes without rewriting them.       (Page 27)
    ► improve data-hiding and encapsulation.

Question No: 3 ( Marks: 1 ) - Please choose one
 Suppose you have been given the following design,
"A person has a name, age, address and sex. You are designing a class to represent a type of person
called a patient. This kind of person may be given a diagnosis, have a spouse and may be alive".
Given that the person class has already been created, what of the following would be appropriate to
include when you design the patient class?

    ► registration date and diagnosis        Click here for Detail
    ► age and sex
    ► sex and diagnosis
    ► diagnosis and age

Question No: 4 ( Marks: 1 ) - Please choose one
What problem(s) may occur when we copy objects without using deep copy constructor?

    ► Dangling pointer
    ► Memory Leakage
    ► All of the given (Page 147)
    ► System crash

Question No: 5 ( Marks: 1 ) - Please choose one
this pointers are not accessible for static member functions.
    ► True (Page 114)
    ► False

Question No: 6 ( Marks: 1 ) - Please choose one
A static member function cannot be declared.

    ► Static
    ► Implicit
    ► Explicit
    ► Virtual     Click here for detail

Question No: 7 ( Marks: 1 ) - Please choose one
_______ remain in memory even when all objects of a class have been destroyed.

    ► Static variables (Page 111)
    ► Instance variable
    ► Primitive variables
    ► None of given

Question No: 8 ( Marks: 1 ) - Please choose one
Friend functions are _____________ functions of a class.

    ► None of given
    ► object member
    ► non-member (Page 136)
    ► data member

Question No: 9 ( Marks: 1 ) - Please choose one
 ___________, which means if A declares B as its friend it does NOT mean that A can access private data
of B. It only means that B can access all data of A.

    ► Friendship is one way only
    ► Friendship is two way only
    ► NO Friendship between classes
    ► Any kind of friendship

Question No: 10 ( Marks: 1 ) - Please choose one
The statement objA=objB; will cause a compiler error if the objects are of different classes.

    ► True
    ► False

Question No: 11 ( Marks: 1 ) - Please choose one
 Identify which of the following overloaded operator function’s declaration is appropriate for the given
call?

Rational_number_1 + 2.325
Where Rational_number_1 is an object of user defined class Rational_number.

    ► Rational_number operator+( Rational_number & obj);
    ► Rational_number operator+(double& obj);            (Page 145)
    ► Rational_number operator+(Rational_number &obj, double& num);
    ► operator+(double& obj);

Question No: 12 ( Marks: 1 ) - Please choose one
Which operator can not be overloaded?

    ► The relation operator ( >= )
    ► Assignment operator ( = )
    ► Script operator ( [] )
    ► Conditional operator (? : ) (Page 141)

Question No: 13 ( Marks: 1 ) - Please choose one
To convert from a user-defined class to a basic type, you would most likely use

    ► a built-in conversion operator.
    ► a one-argument constructor.
    ► an overloaded = operator.
    ► a conversion operator that’s a member of the class.

Question No: 14 ( Marks: 1 ) - Please choose one
The technique in which we visualize our programming problems according to real life’s problems is
called
----------------
     ► structured programming
     ► object oriented Programming        (Page 9)
     ► procedural programming
     ► non of the given

Question No: 15 ( Marks: 1 ) - Please choose one
In object orientated programming, a class of objects cans _____________ properties from another class
of objects

    ► Utilize
    ► Borrow
    ► Inherit       Click here for detail
    ► Adopt

Question No: 16 ( Marks: 1 ) - Please choose one
A C++ class is similar to --------------------

    ► Structure           Click here for detial
    ► Header File
    ► Library File
    ► None of the given

                                        MIDTERM EXAMINATION
                                              Spring 2010

Question No: 1 ( Marks: 1 ) - Please choose one
What problem(s) may occur when we copy objects without using deep copy constructor?

    ► Dangling pointer
    ► Memory Leakage
    ► All of the given     (Page 147)
    ► System crash

Question No: 2 ( Marks: 1 ) - Please choose one
 Suppose that the Test class does not have an overloaded assignment operator. What happens when an
assignment a=b; is given for two Test objects a and b?

    ► The automatic assignment operator is used
    ► The copy constructor is used          Click here for detial
    ► Compiler error
    ► Run-time error

Question No: 3 ( Marks: 1 ) - Please choose one
a’A static member function can be called, even when a class is not __________.

    ► Declared
    ► Define
    ► Instantiated        C++ How to Program, Fifth Edition(Page 871)
    ► Called

Question No: 4 ( Marks: 1 ) - Please choose one
Identify which of the following overloaded operator function’s declaration is appropriate for the given
call?
Rational_number_1 + 2.325
Where Rational_number_1 is an object of user defined class Rational_number.

    ► Rational_number operator+( Rational_number & obj);
    ► Rational_number operator+(double& obj);        (Page 145)

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank