cs201 past.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum spanning approximately 180 pages across 8 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
MCQ Bank
Coverage
Full Course Curriculum

Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.

What this file covers — CS201 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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. 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 past.pdf for free?

You can preview and download "cs201 past.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-past-pdf-3) with 100% free high-speed downloads and zero registration requirements.

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

This document covers Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, 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 MCQs With Reference
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

We cannot increment ____________.
                                         2.
       1.     pointers
                                         arrays
                                         4.
       3.     references
                                         variables

We can ___________ pointer.

  1.        increment2.    decrement

  3.        reassign 4.    all of the given

We can _____________references.

  1.        increment 2.    decrement

  3.        reassign 4.     None of the given

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);

An instance of a class is called __________.

        1.     structure      2.    data type

        3.     object         4.    member function

The ________ is called automatically when an object destroys

                1.   destructor                  2.    constructor

                3.   main program                4.    default constructor

The destructor is used to ____________.

   1.        allocate memory2.       deallocate memory

   3.        create objects    4.    allocate static memory

___________data isn't accessible by non-member functions or outside classes.

                                     1.   Public              2.     private

                                     3.   Static              4.     Globally declared

Member functions of the class ________ main program.

        1.      are not accessible              2.    are accessible from

        3.      are defined within the          4.    are private to

Overloading means :
             1. Using the same name to perform multiple           2. Using the different name to perform multiple tasks
             tasks or different tasks depending on the situation. or different tasks depending on the situation
             3. Using the same name to perform multiple                  4. Using the same name to perform difficult tasks or
             tasks or same tasks depending on the situation              complex tasks and it does not depend on the situation

The main advantage of function overloading is ____________.

     1.    The program becomes portable2.          The program becomes complex

     3.    The function becomes inline    4.       The program becomes more readable

You cannot overload the _____________ operator

                     1.   ?:             2.    *

                     3.   /              4.    ++

Memory allocated from heap or free store ______________.
          1. can be returned back to the system
                                                                  2.     can be allocated to classes only
          automatically
          3. cannot be returned back unless freed explicitly 4. cannot be returned back unless freed explicitly
          using malloc and realloc                           using free and delete operators

We cannot use ________ pointer for storing and reading data from it.

                                1.                           2.   integer

                                3.   double                  4.   zero

The dynamic memory allocation uses _________ whereas static memory allocation uses
_________.

                                                   1.   heap , stack                  2.   stack , lists

                                                   3.   array , stack                 4.   classes , array

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

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

Symbolic constant PI can be defined as:

        1.     #define PI 3.14 ;                  2.    #define PI 3.14

                                                  4. # include pi=
        3.     #define PI=3.14
                                                  3.14

The parameter passed to isdigit() function is ____________variable.

                         1.     Character                                   2.    Boolean

                         3.     Integer                                     4.    Float

char **argv can be read as__________________.

   1.        pointer to pointer             2.   pointer to char

   3.        pointer to pointer to char 4.       None of the given

To read command-line arguments, the main() function itself must be given ___________
arguments.

                               1.   1                                                       2.   2

                               3.   3                                                       4.   4

The increment of a pointer depends on its___________.

                 1.    variable             2.   value

                 3.    data type            4.   None of the given

                                                                               How many bytes an integer type pointer
                                                                               intPtr will jump in memory if the
                                                                               statement below is executed? intPtr += 2

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank