23.-Download_CS201-Midterm-Solved-MCQs-with-Reference-Sadia-Ali-1.pdf

Verified academic study resource for CS201 (Introduction to 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
CS201 – Introduction to Programming
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
MCQ, SOLVED, 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 CS201.

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)

Frequently asked questions

Where can I download 23.-Download_CS201-Midterm-Solved-MCQs-with-Reference-Sadia-Ali-1.pdf for free?

You can preview and download "23.-Download_CS201-Midterm-Solved-MCQs-with-Reference-Sadia-Ali-1.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/23-download-cs201-midterm-solved-mcqs-with-reference-sadia-ali-1-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 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 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

       COMPOSED BY (SADIA ALI)
               MIDTERM EXAMINATION
             COMPOSED BY (SADIA ALI)
          Spring 2009 CS201- Introduction to Programming

Question No: 1 ( Marks: 1 ) - Please choose one_______
There are mainly------------------- types of software
     Two
     Three
     Four
     Five
Question No: 2 ( Marks: 1 ) - Please choose one____
In C/C++ the #include is called,
     Header file
     Preprocessor Directive
     Statement
     Function
Question No: 3 ( Marks: 1 ) - Please choose one___________
&& is------------------ operator.
     An arithmetic
     Logical
     Relational
     Unary
Question No: 4 ( Marks: 1 ) - Please choose one_______
In flow chart, the symbol used for decision making is,
     Rectangle
     Circle
     Arrow
     Diamond
Question No: 5 ( Marks: 1 ) - Please choose one______
The correct syntax of do-while loop is,
    (condition ) while; do { statements; };
    { statements; } do-while ();
    while(condition); do { statements; };
    do { statements; } while (condition);
Question No: 6 ( Marks: 1 ) - Please choose one___________
C++ views each file as a sequential stream of________________ .

                                                                  1

        COMPOSED BY (SADIA ALI)
      Bytes
      Bits
      0’s or 1’s
      Words
Question No: 7 ( Marks: 1 ) - Please choose one__________________
If the elements of an array are already sorted then the useful search algorithm is,
      Linear search
      Binary search
      Quick search
      Random search
Question No: 8 ( Marks: 1 ) - Please choose one___________
The address operator (&) can be used with,
      Statement
      Expression
      Variable
      Constant
Question No: 9 ( Marks: 1 ) - Please choose one_______________
When a pointer is incremented, it actually jumps the number of memory addresses
      According to data type
      1 byte exactly
      1 bit exactly
      A pointer variable can not be incremented
Question No: 10 ( Marks: 1 ) - Please choose one______________
Each pass through a loop is called a/an
      enumeration
      iteration
      culmination
      pass through
Question No: 11 ( Marks: 1 ) - Please choose one_____________
Call by reference mechanism should be used in a program when there is
i. large amount of data to be passed
ii. small amount of data to be passed
iii. need to change the passed data
iv. no need to change the passed data
Choose the appropriate option for the above case.
     (i) and (ii) only
     (i) and (iii) only
     (ii) and (iii) only

                                                                                      2

        COMPOSED BY (SADIA ALI)
    (ii) and (iv) only
Question No: 12 ( Marks: 1 ) - Please choose one________
Which of the following is the starting index of an array in C++?
    0
    1
    -1
    any number
Question No: 13 ( Marks: 1 ) - Please choose one________
The return type of a function that do not return any value must be __________
    int
    void
    double
    float
Question No: 14 ( Marks: 1 ) - Please choose one_________
Which of the following is an extension of header file?
    .exe
    .txt
    .h
    .c
Question No: 15 ( Marks: 1 ) - Please choose one__________
We want to access array in random order which approach is better?
    Pointers
    Array index
    Both pointers and array index are better
    None of the given options.
Question No: 16 ( Marks: 1 ) - Please choose one____________
When we declare a multidimensional array the compiler store the elements of
multidimensional array in the form of,
    Columns
    Rows
    Contiguous memory location
    Matrix
Question No: 17 ( Marks: 1 )__________
What is the output of the following program?
#include iostream.h
main ( ) {
int RollNo;
int rollno;

                                                                                3

        COMPOSED BY (SADIA ALI)
RollNo = 5;
rollno = 8;
cout << “Roll No is ” << rollno; }

Solution:
Program should not compile due to missing <> from following statement
#include iostream.h
if we ignore this then output should be
Roll No is 8
Question No: 18 ( Marks: 1 )_____________________
Why we include iostream.h in our programs?
Solution:
Because standard stream handling function are stored in this file. Before using these
function in our program it is necessary to tell compiler about the location of these
functions.
Question No: 19 ( Marks: 2 )
Find out error in the code given below:
if ( num % 2 = 0 )
cout << "The number is even" << endl;
Solution:
if ( num % 2 = 0 ) There should be extra = sign following is right statement
if ( num % 2 = =0 )
Question No: 20 ( Marks: 3 )
How learning to design programs is like learning to play soccer?
Solution:
“Learning to design programs is like learning to play soccer. A player must learn to trap a
ball, to dribble with a ball, to pass, and to shoot a ball. Once the player knows those basic
skills, the next goals are to learn to play a position, to play certain strategies, to choose
among feasible strategies, and, on occasion, to create variations of a strategy because
none fits. “
Question No: 21 ( Marks: 5 )
Write the procedure of data insertion in middle of the files by Merge Method practiced in
older systems?
Solution:
    Opened the data file and a new empty file.
    Started reading the data file from beginning of it.
    Kept on copying the read data into the new file until the location we want to
     insert data into is reached.
    Inserted (appended) new data in the new file.
    Skipped or jumped the data in the data file that is to be overwritten or replaced.
    Copied (appended) the remaining part of the file at the end of the new file

                                                                                           4

        COMPOSED BY (SADIA ALI)
Question No: 22 ( Marks: 10 )

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank