CS304 MIDS MERGE BY ASFAND YARR.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)
Tags
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 MIDS MERGE BY ASFAND YARR.pdf for free?

You can preview and download "CS304 MIDS MERGE BY ASFAND YARR.pdf" (CS304 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs304-mids-merge-by-asfand-yarr-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 lecture 1-10
                           Midterm Quiz
             ORANGE MONKEY TEAM
 1. Which of the following concept is more close to encapsulation

              Information hiding…..confirm

 2. _______ is represented by a line with unfilled diamond head

                Aggregation……confirm

 3. ________is represented by a line with a filled diamond head

                     Composition…..confirm

ORANGE MONKEY TEAM

 4. if some of objects exhibit identical characteristics then they belong to

                                Different classes

 5. Which of the following relationship shows the inheritance?

             Doctor is a person…..confirm

 6. Constructor have ____ return type

               No….confirm

 7. If class b inherits from class a which of the following is child class.

                 Class A…..confirm

ORANGE MONKEY TEAM

   8. Which of the following can be the attribute of an object ali

                          address…..confirm

   9. A car has wheel. What is the relationship between car and wheel

                                  Composition

   10. In order to make any function constant, keyword const is placed ______ the
       parameter list.

                                          After

   11. Which of the following is Not true about inline function?

               Inline function does not substitute the code within the function definition on
a function call….confirm

   12. Normal form of class representation includes ___________.

             Class Name, Attributes, Operation…….confirm

ORANGE MONKEY TEAM

 13. Which of the following is used to create user-defined data type in OOP?

              Classes……confirm

 14. Member functions defined inside a class are ____ by default

                    Private(inline)…..confirm

 15. In which of the following different forms of a single entity exist?

                 Polymophism……confirm

 16. Which of the following is not a pillar of object oriented programming?

                          Normalization….confirm

ORANGE MONKEY TEAM

 17. A/an _____ class represent the abstract concept.

                  Abstract class….confrim

 18. Which of the following statements defines destructor for class student?

                       ~Student(){//-}…..confirm

 19. Constructor is used to __________ the objects of a class

                      Initialize…..confirm

 20. Through ________ objects communicate with outer world.

                  Interface….confirm

 21. There is/are ______ way(s) to create user defined types for objects in c++

                       Two…..confirm

 22. We can allocate dynamic memory in C++ through _______ operator

                   New operator…..confirm

 23. Object hides its information from other this concept is known as ______.

                       Information hiding…..confirm

ORANGE MONKEY TEAM

 24. The concept of derived class is involved in ________.

                              Inheritance

 25. Enclosing all the characteristics of an object within the object itself is described
     as______.

                         Encapsulation….confirm

 26. Generalization is implemented through ________.

                        Inheritance…..confirm

 27. IF we extend our object oriented model and the rest of model is not affected, this
     feature is called_______.

                                Reusability

 28. A class can have only ___ destructor

                 One……confirm

 29. Data member of a class “Student” cannot be _________

                        Char*name;

 30. In OOP, we can achieve reusability through _________.

                          Inheritance…..confirm

 31. Which of the following is not an example of multiple inheritance?

                            Car…..confirm

ORANGE MONKEY TEAM

 32. Student registers course and teacher teaches the course is an example of ______.

                     Ternary association……..confirm

 33. Which of the following method allows to reuse the characteristics of more than one
     parent class?
                     Multiple inheritance.…confirm

 34. If our class involves dynamic memory and we do not write deep copy constructor
     for this class ___________ problem(s) can occur.

                         All options…..confirm

 35. Generalization is __________ approach

                (Top-bottom, bottom to top)….both are correct…..confirm

ORANGE MONKEY TEAM

 36. Statement Yasir is a friend of Ali and Ali is a friend of yasir is an example of
     ______.

             Two way association…….confirm

 37. In which of the following different forms of a single entity exist?
                               Polymorphism……confirm

 38. Which of the following is True about Accessor functions?

                           All option……confirm

 39. Identify the common attribute of the given scenario:
     Circle has color, vertices, and radius. Triangle has color, vertices and angle

                       Color, vertices……confirm

 40. In OOP, inheritance is shown in a class diagram by using __________.

                            Filled arrow….confirm

ORANGE MONKEY TEAM

 41. Which relationship exists between cat and animal class?

                        Association……not sure

 42. Which of the following is not true about destructor?

                Used to free memory allocated through static allocation….confirm

 43. _________ are best candidates to become objects in problem description.

                        Nouns….confirm

 44. Abstraction hides the ________details

                Irrelevant …..confirm

 45. _____ is the reverse process of generalization

                      Specialization…confirm

ORANGE MONKEY TEAM

  Object Oriented Programming (CS304)        VU

                            CS304-Handouts

ORANGE MONKEY TEAM

More CS304 files

All CS304 files · Midterm Prep 2026 · MCQs Bank