CS201 MID-Term by Attiq Kundi-updated on 28-06-2022.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
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 CS201 MID-Term by Attiq Kundi-updated on 28-06-2022.pdf for free?

You can preview and download "CS201 MID-Term by Attiq Kundi-updated on 28-06-2022.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mid-term-by-attiq-kundi-updated-on-28-06-2022-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

1

                                       CS201
                                     Mid-Term
                                 Quiz by Attiq Kundi
                    SUBSCRIBE “ Knowledge For Us ” ON YOU TUBE
                               100 % CORRECT MCSQ
                                 AND Many MoRe
                                                  CS 201
Also Added Today Quiz                      28-june-2022

    The ASCll code of null character is ---------------- --.
           ( 000)   correct answer

    Which step is not not performed during a proper program design?
           (Write details about the performance of program)     correct answer

    How many elements are stored in the following ? int matrix [4][5];
           (20) correct answer

    Which of the following is not a valid variable name in c++?
           (@studentName) correct answer

    If an array has 50 elements.What is allowable range of subscripts?
           (0-49) correct answer

    <. <=.> .>= are called ----------------------- operators.
           (Relational)     correct answer

    Why we use “cin “?
           (To read data from keyboard) correct answer

    !(x<3)means in c++ that
           (x is greater than 3) correct answer

    The data in the memory is ---------
           (volatile) correct answer

2

    Each array declaration must provide the information about all these things except -----

           The location of the first element to be stored

    What will be the output of the program if x=10? If
    (x!=0&&x<=10)

    {
    Cout <<”condation 1 is true”;
    }
    If(x>=10 && x<=20)
    {

           Condation 1 is true condation 2 is true

    C is widely known developpment language of                   operating system.
           Windows

    A repetition statement specifies that an action is to be continued while
    some           remains true.
           Condition

                  is a substitute of multiple if statement.
           If—elseif statement
    If a               finds an error. It stops translating without generating any executable code.
           Compiler

    Function prototype is wrriten .
           Before call of that function

    The              is an unconditional branch of execution .
           Goto statement

    What will be the output of the following code snippet?
    String str1 = “Hello beautiful”;
    String str2 = “yes we can”;

3

    String str3 = strcpy(str1,str2);
    Cout<<str3<<endI;

           Hello beautiful Yes we can

    In two dimensional array .We use                „for oop(s)‟to populate the array.
           2

    eof is used to check for the             of file when a file is being read.
           End

    How many times the following loop will execute? Int j
    = 3;
    While(j>0)
    {
    Cout << “statements” << endI;
    J=2;
    }

           2

    Null character is used to indicate the           of string.
           End

    There is a pointer named ptr of type float. Which type of variable address can be stored
    by ptr?
           Float

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

           4

    We must include the header file             to convert the value of one type into another
    type using built-infunctions.
           iostream.h

    Use of word processor for writing the code of a program is not good because.

4

          It has no compiler

                     Loop executes atleast one times.
          Do while

    The data . contained in the structure. is defined in the
          Curly braces

    What is the use of ios::trunk mode?
          To truncate an existing file to zero
                  CS201 Solved Quiz No-1 December 13, 2015
    We use                       to open a file or stream for extraction
          in

    Null character is represented by                      in C++.
          /0

    An object of                  class can be created for saving the current position of any
    opened file before reading from the file.
          Streampos (pg215)
           Returns true if c is a digit or a letter and false otherwise.
          int isalnum( int c )

    We use                       to open a file or stream for insertion.
          out

    Base address is the memory address of                      element of an array.
          1st

          allow us to have a memory location and use it as int or char
    interchangeably
          union

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

    Individual characters in a string stored in an array can be accessed directly using array
          .

5

          Subscript

    To manipulate n-dimensional array                         nested loops are required.
          n-1

    A character is stored in the memory in

          String

    What will be the size of following array?
         int arr[29];
          29

    An object of                  class can be created for saving the current position of any
    opened file before reading from the file.
          Streampos

    We use                    to open a file or stream for extraction.
          In

    We use                    to open a file or stream for insertion.
          Out

          are conventional names of the command line parameters of the
          „main()‟ function.
          ‗argc‘ and
          ‗argv‘

    In    , we have different data members and all of these have their own memory space.
          Structures

    How we declare an array of integer data whose size is 20 with array name “count”.
          int
          count[20];

    A     is an array of characters that can store number of character specified.
          String

    File. seekg (-10L, ios:cur)
          backword

6

         direction

    What will be the output of the following while loop? int counter = 0 ; while(counter
         < 15) cout << counter << “ ”; counter++;
         Compile time error

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank