cs304_mid_term_3_www.vu786.com.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
Study Resource
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)

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_mid_term_3_www.vu786.com.pdf for free?

You can preview and download "cs304_mid_term_3_www.vu786.com.pdf" (CS304 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-mid-term-3-www-vu786-com-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

       www.vu786.com

                      MIDTERM EXAMINATION
                            SPRING 2007                                 Marks: 40
           CS304 - OBJECT ORIENTED PROGRAMMING                         Time: 90min
                         (Session - 4 )

     StudentID/LoginID:      ______________________________

     Student Name:           ______________________________

     Center Name/Code:       ______________________________

     Exam Date:                    Thursday, May 03, 2007

Please read the following instructions carefully before attempting any
of the questions:
    1. Attempt all questions. Marks are written adjacent to each question.
    2. Do not ask any questions about the contents of this examination
from anyone.
       a. If you think that there is something wrong with any of the
      questions, attempt it to the best of your understanding.
       b. If you believe that some essential piece of information is
      missing, make an appropriate assumption and use it to solve the
      problem.
       c. Write all steps, missing steps may lead to deduction of marks.
       d. All coding questions should be answered using the C ++ syntax.
    3. You are not allowed to use IDE (Dev-C++ or any) in your paper.
    4. This paper is closed handouts.

**WARNING: Please note that Virtual University takes serious note of
unfair means. Anyone found involved in cheating will get an `F` grade
in this course.

                                         For Teacher's use only
 Question      1         2        3       4      5       6      7       8        9    10   Total
  Marks

Question No: 1       ( Marks: 1 )     - Please choose one

 The main function of scope resolution operator (::) is,

      ►            To define an object

      ►            To define a data member

      ► To link the definition of an identifier to its declaration

      ►            All of the given

Question No: 2       ( Marks: 1 )     - Please choose one

What is a class?

      ► A class is a section of computer memory containing objects.

      ► A class is a section of the hard disk reserved for object oriented programs

      ► A class is the part of an object that contains the variables.

      ► A class is a description of a kind of object.

Question No: 3       ( Marks: 1 )     - Please choose one

Which of the following features of OOP is used to derive a class from another?

      ► Encapsulation

      ► Polymorphism

      ► Data hiding

      ► Inheritance

Question No: 4     ( Marks: 1 )    - Please choose one

Which of the following is an advantage of OOP?

      ► OOP makes it easy to re-use the code

      ► It provides an ability to create one user defined data type by extending the other

      ► It provides the facility of defining Abstract data types through which real world
           entities can be defined better

      ► All of the given options

Question No: 5     ( Marks: 1 )    - Please choose one

Objects having identical characteristics belong to

      ► Same class

      ► Two different classes

      ► Any number of different classes

      ► Objects can not have identical characteristics

Question No: 6     ( Marks: 5 )

Write any two advantage(s) of declaring a member function as const?

Question No: 7     ( Marks: 10 )

Write the code for Deep copy constructor for the given class.

class MidTerm
{

private:
char* papername;
int Totalmarks;

// Code for Deep copy constructor

};

Question No: 8     ( Marks: 18 )

Write a program which consists of a class named Zakat and consists of two data members
OwnerName and Totalamount, the class should also consists of three constructors i.e. Default
constructor , one argument constructor and two argument constructor.
The class should further consists of a member function named Cal_zakat () which calculate the
zakat.
It should be keep in mind that the zakat will be calculated only if the Totalamount is greater than
or equal to 20,000.
In main, define three object of this class for respective constructors and also display the zakat for
each object.

Note: The zakat will be calculated by the formula (Totalamount * 2.5)/100;

Question No: 9     ( Marks: 1 )     - Please choose one

At the most, how many instances of certain class can be created?

      ►1

      ►6

      ►3

      ► none of these

Question No: 10     ( Marks: 1 )     - Please choose one

class A
{
public:
   virtual void MyVirtualMethod() = 0;
};

class B : public A
{
public:
   void MyVirtualMethod()
   {
    //do something
   }
};

Considering the given code, which of the following statements is correct?

      ► Class B is a an abstract class

      ► Class A is a concrete class

      ► Object of class A can not be instantiated

      ► Class B is a child class of class A

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank