CS201 Mid Term By JUANID.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 JUANID.pdf for free?

You can preview and download "CS201 Mid Term By JUANID.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mid-term-by-juanid-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

CS201-Intruduction to Programming
  Solved MCQS for Mid terms papers
  Solved by JUNAID MALIK and Team

                                     0

AL-JUNAID INSTITUE OF GROUP
Question 1
What is the other name of the variable?

     Identifier
     Visual
     Static
     Constant

Question 2
Which of the Following is true about streams?

    A.   It is a sequence of bytes
    B.   It is an ordered sequence
    C.   All bytes can go trough the stream simultaneously
    D.   Bytes that enters first into the stream will go out at last

     A &D
     A only
     C only
     A&B

Question 3
When No. of repetition is know then we use the ------ structure to perform repetition tasks.

     While loop
     For loop
     Switch
     Do while loop

Question 4
Shifting the binary number is similar to shifting the------ number.

     Base 7
     Decimal
     Hexadecimal

                                                                                               1
0304-1659294

AL-JUNAID INSTITUE OF GROUP
     octal

Question 5
We can read, write and manipulate the same file using ---------------.

     Stdio.h
     Fsteram. h
     Iomanp.h
     Iostream.h

Question 6
In do while loop the , condition is checked ----------- one execution of loop.

     Before
     During
     At Any time
     After
Question 7
< , <=, >, >= are called ----- operators.

     Arithmetic
     Conational
     Logical
     Relational
Question 8
For breaking complex problem into smaller pieces we use ------------.

     Function
     Loops
     If/else
     Break statement

Question 9
In three – dimensional array. We use------- ‘for loop(s)’ to populate the array.

    3
     2

                                                                                   2
0304-1659294

AL-JUNAID INSTITUE OF GROUP
     1
     4

Question 10
a = a +1: can be written as ---------------

     1 + a = a:
     a+a+1
     a+=1
     a+1

Question 11
Continue statement usually force the immediate ------ iteration of the loop .

     last
     previous
     first
     next
Question 12
If a file is opened with ios: : out mode . then -----------------.

     We can write in this file
     Content of file discarded
     A new file is created
     File is deleted

Question 13
----------------------- operator is used to pass the address of variable in call by reference method.

    &
     @
     %
     +

Question 14

                                                                                                        3
0304-1659294

AL-JUNAID INSTITUE OF GROUP
C++ is a -------------- language.
     Machine
     Low level
     Assembly language
     High level
Question 15
By writing a file seekg (15L. ios : : cur) we are moving --------------.
     15 bit in the backward direction starting from the pervious position.
     15 bit in the backward direction starting from the current position.
     15 bytes in the backward direction starting from the pervious position.
     15 bytes in the forward direction starting from the pervious
      position.
Question 16
Pointer points to a particular -------------.
     Data types
     Variable
     Memory address
     value

Question 17
If function has not been, declared before it is a -------.
     Run time error
     Logical error
     Syntax error
     Late binding error

Question 18
---------------- statement is used to terminate the processing of a particular case and exit from
switch structure.

     Break

                                                                                                    4
0304-1659294

AL-JUNAID INSTITUE OF GROUP
     If
     Goto
     continue

Question 19
Which one of the following is used to perform bit- wise OR operation?
     ~
     ^
     ||
    |
Question 20
In the following nested For Loop, which loop will run most number of times?
For ( int I = 0 : k : 5 K++)
{
    For (int k = 0 : k <: 5: k++)
{
…………………….
}

      Inner loop
      Depends upon the statements in the inner in the loop body
      Outer loop
      Both loop run equal number of time

Question 21
We can access a global variable ------------.

     From anywhere in the program
     From the main() function only
     From the function only
     From the loop only

Question 22

                                                                              5
0304-1659294

AL-JUNAID INSTITUE OF GROUP
Structures are syntactically defined with the word------------.

     Struct
     Struc
     Structure
     None of the given

Question 23
If y= 20 and z = y++. Then the value of z will be --------------.

     22
     20
     21
     19

Question 24
The structure which can execute zero or more times is called ------------.

      For structure
      Do- while loop
      While structure
      None of the above

Question 25
Which of the following is the correct way to write a compound assignment operator?\

      X + = 4:
      X+=4:
      X+==4:
      None of the above

Question 26
Suppose we have a file with name “my file .txt”. What will be the correct syntax of file opening for the
input.

      myFile. In(“myfile. txt”. Ios : :open):
      myFile. open(“myfile. txt”. Ios : :in):
      myFile. Input(“myfile. txt”. Ios : :open):
      myFile. open(“myfile. txt”. Ios : :inpt):

                                                                                                           6
0304-1659294

AL-JUNAID INSTITUE OF GROUP
Question 27
What will be the value of the variable output in the given piece of the code?

Double output = 0

Out put = (2 + 2)*4+ 2 /(4- 2):

     17                          AL-JUNAID INSTITUE OF GROUP
     11
     15
     12

Question 28
Which one of the following languages has been used to write the compiler of “C ”language?

     Basic
     Fortran

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank