CS201 FINAL TERM FILE 5 SOLVED BY TEAM HADI.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack compiled by Team Hadi) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.

Course
CS201 – Introduction to Programming
Faculty
Computer Science
Format
PDF
Type
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Compiled by
Team Hadi
Tags
SOLVED, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS201, regardless of midterm scores.

What this file covers — CS201 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download CS201 FINAL TERM FILE 5 SOLVED BY TEAM HADI.pdf for free?

You can preview and download "CS201 FINAL TERM FILE 5 SOLVED BY TEAM HADI.pdf" (CS201 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-final-term-file-5-solved-by-team-hadi-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS201 file?

This document covers Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.

What is the passing criteria for CS201 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 CS201 solved past papers and handouts verified for 2026 exams?

Yes. All CS201 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

CS201 FINAL TERM
 PAST PAPER BY
   TEAM HADI
     LAHORE
   (03087122922)

1. For binary member operators, operands on the ________ drives (calls) the
   operation.
      1. Left
      2. Right
      3. Both left and right
      4. None of the given
2. We cannot increment ________.
      1. pointers
      2. arrays
      3. references
      4. variables
3. We can ________ pointer.
      1. increment
      2. decrement
      3. reassign
      4. all of the given

4. We can ________ references.
        1. increment
        2. decrement
        3. reassign
        4. None of the given
5. What will be the correct syntax for the following function call?
    float add (int &);
        1. add(int x);
        2. add(&x);
        3. add(x);
        4. add(*x);
6. An instance of a class is called ________.
        1. structure
        2. data type
        3. object
        4. member function
7. The ________ is called automatically when an object destroys
        1. destructor
        2. constructor
        3. main program
        4. default constructor
8. The destructor is used to ________.
        1. allocate memory
        2. deallocate memory
        3. create objects
        4. allocate static memory
9. ________ data isn't accessible by non-member functions or outside classes.
        1. Public
        2. private
        3. Static
        4. Globally declared
10. Member functions of the class ________ main program.
        1. are not accessible
        2. are accessible from
        3. are defined within the
        4. are private to
11. Overloading means :
        1. Using the same name to perform multiple tasks or different tasks depending on
            the situation.
        2. Using the different name to perform multiple tasks or different tasks depending on
            the situation
        3. Using the same name to perform multiple tasks or same tasks depending on the
            situation
        4. Using the same name to perform difficult tasks or complex tasks and it does not
            depend on the situation
12. The main advantage of function overloading is ________.

       1. The program becomes portable
       2. The program becomes complex
       3. The function becomes inline
       4. The program becomes more readable
13. You cannot overload the ________ operator.
       1. ? :
       2. *
       3. /
       4. ++
14. In C++, a variable can be declared anywhere in the program this will increase
    ________.
       1. writability
       2. readability
       3. portability
       4. efficiency
15. Memory allocated from heap or free store ________.
       1. can be returned back to the system automatically
       2. can be allocated to classes only
       3. cannot be returned back unless freed explicitly using malloc and realloc
       4. cannot be returned back unless freed explicitly using free and delete operators

16. We cannot use ________ pointer for storing and reading data from it.
       1. 'NULL
       2. integer
       3. double
       4. zero
17. The dynamic memory allocation uses ________ whereas static memory allocation
    uses ________.
       1. heap , stack
       2. stack , lists
       3. array , stack
       4. classes , array
18. What will be the output of the given code?

   #include #define MAX( A, B ) ((A) > (B) ? (A) : (B))
   void main() {
   int i, x, y;
   x = 23;
   y = 45;
   i = MAX( x++, y++ );
   // Side-effect: // larger value incremented twice
   cout << "x = " << x << " y = " << y << '\n';
   }
       1. x=23 y=45

       2. x=24 y=46
       3. x=24 y=47
       4. x=22 y=47
19. NULL has been defined in ________ header file.
       1. Iostream.h
       2. Stdlib.h
       3. Stdio.h
       4. String.h
20. Symbolic constant PI can be defined as:
       1. #define PI 3.14 ;
       2. #define PI 3.14
       3. #define PI=3.14
       4. # include pi= 3.14
21. The friend function of a class can have access ________.
       1. to the public data members only
       2. to the private data members
       3. to the protected data members
       4. to the main program
22. C++ was developed by ________.
       1. Charles Babbage
       2. Graham Bell
       3. Bejarne Stroustrup
       4. Von Nuemann
23. Once the ________ are created, they exist for the life time of the program.
       1. local variables
       2. non static variables
       3. static variables
       4. automatic variables
24. Encapsulation means ________.
       1. that the data of a class cannot be accessed from outside
       2. that the data of a class can be accessed from outside
       3. the data becomes public
       4. that the data can be accessible anywhere within a main program
25. An address is a ________, while a pointer is a ________.
       1. constant, variable
       2. variable, constant
       3. global, variable
       4. non static variable, constant
26. The syntax of declaration of a function that returns the reference to an integer is
    ________.
       1. int & myfunc();
       2. int myfunc();
       3. int myfunc() &;
       4. integer & myfunc();
27. Which one of the following is mandatory preprocessor directive for c++?
       1. #undef

        2. #include
        3. #undef
        4. All of the given
28. The members of a class declared with the keyword struct are ________ by default.
        1. static
        2. Private
        3. protected
        4. public
29. getche() is a ________ function and defined in ________ header file.
        1. user-define function , conio.h
        2. built-in function , conio.h
        3. built-in function, stlib.h
        4. built -in function, iostream.h
30. ________ Operators are the ones that require two operands on both sides of the
    operator.
        1. Double
        2. Tow sided
        3. Binary
        4. None of the given
31. ________ will return the number of bytes reserved for a variable or data type.
        1. sizeof operator
        2. free operator
        3. void pointer
        4. new operator
32. ________ are not available in C language.
        1. User defned functions
        2. Built in functions
        3. Library functions

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank