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

You can preview and download "cs304_mid_term_1_www.vu786.com.pdf" (CS304 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-mid-term-1-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 2006                             Marks:
                 CS304 – object oriented programming (Session - 1 )       Time: 120min

             StudentID/LoginID:      ______________________________

             Student Name:           ______________________________

             Center Name/Code:       ______________________________

             Exam Date:

   Please read the following instructions carefully before attempting any
question:

      1. This examination is closed book, closed notes, closed neighbors.

      2. Answer all questions.

            a. There is no choice.

            b. You will have to answer all questions correctly in this examination to
                get the maximum possible marks.

      3. 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.

      4.    Examination also consists of multiple-choice questions. Choose only one
           choice as your answer.

            a. If you believe that two (or more) of the choices are the correct ones for
                a particular question, choose the best one.

            b. On the other hand, if you believe that all of the choices provided for a
               particular question are the wrong ones, select the one that appears to
               you as being the least wrong.

      **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: 2 )

int *p=new int;
      In the code given above, memory is allocated during program:

      compilation
      linking
      execution
      loading

Question No: 2 ( Marks: 2 )
The proper syntax to free the memory allocated to array a of five objects is

      free(a,5);
      delete(a,5);
      delete a;
      delete [] a;

Question No: 3 ( Marks: 6 )
What methods would you add to make this class declaration very useful?

   Class Cat
   {
        int GetAge() const;
        private:
             int itsAge;
   };

Question No: 4 ( Marks: 18 )
Write a class Coordinate that performs the mathematical operations (Addition and
Multiplication) on its coordinates with the help of operator overloading.

Class Coordinate should have the following Private data members
      1. xCord
      2. yCord

a) Write a parameterized constructor to initialize its coordinates/data members.
b) Write member functions to Overload the following Operators and Display the Results
after Operations.
    1. +
    2. *

Question No: 5 ( Marks: 17 )
Create a class named Employee, its data members are

    i. empName
    ii. empDesignation
    iii. empSalary

   a) Create the object of this class using parameterized constructor in order to initialize
      all the three data members i.e. empName, empDesignation and empSalary
   b) Write a member function of this class named increment (), this function will
      calculate the incremented salary of the employee. In increment function user will
      enter the increment amount in the current salary of the employee and displays the
      incremented salary after the addition of increment.
   c) write the getter and setter functions for the data members of this class

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

A system call

     ►    Is an entry point into the kernel code

     ►    Allows a program to request a kernel service

     ►    Is a technique to protect I/O devices and other system resources

     ►    All of the these

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

Logical address is generated by,

     ►        CPU

     ►        Compiler

     ►        Hard disk

     ►        None of the these

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank