CS201 MID Term Solved MCQs Mega File.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 CS201 MID Term Solved MCQs Mega File.pdf for free?

You can preview and download "CS201 MID Term Solved MCQs Mega File.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mid-term-solved-mcqs-mega-file-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 MID-Term BY Attiq Kundi
Q 1; The ASCll code of null character is ------------.
      ( 000)   correct answer

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

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

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

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

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

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

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

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

Q10; Each array declaration must provide the information about all these things except -----
----
      The location of the first element to be stored

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

Q12; C is widely known developpment language of ____ operating system.
      Windows

Q13; A repetition statement specifies that an action is to be continued while
some_______remains true.
      Condation

Q14; ______is a substitute of multiple if statement.
      If—elseif statement

Q15; If a ______finds an error. It stops translating without generating any executable code.
      Compiler

Q16; Function prototype is wrriten .
      Before call of that function

Q17; The____ is an unconditional branch of execution .
      Goto statement

Q18; What will be the output of the following code snippet?
String str1 = “Hello beautiful”;
String str2 = “yes we can”;
String str3 = strcpy(str1,str2);
Cout<<str3<<endI;
      Hello beautiful Yes we can

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

Q21; eof is used to check for the _____ of file when a file is being read.

        End

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

Q23; Null character is used to indicate the____ of string.
        End

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

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

        4

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

Q27; Use of word processor for writing the code of a program is not good because.
        It has no compiler

Q28; ________Loop executes atleast one times.
        Do while

Q29; The data . contained in the structure. is defined in the___
        Curly braces

Q30; What is the use of ios::trunk mode?
        To truncate an existing file to zero

                CS201 Solved Quiz No-1 December 13, 2015
1. We use _________ to open a file or stream for extraction
   in

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

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

4. ____________________ Returns true if c is a digit or a letter and false otherwise.
   int isalnum( int c )

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

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

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

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

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

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

11.         A character is stored in the memory in _________

   String

12.What will be the size of following array?

   int arr[29];
   29

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

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

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

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

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

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

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

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

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

22.We can access a global variable ___________
   From the functions only
   From the loops only

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

23.A repetition statement specifies that an action is to be continued while some_______
   remains true.
         Condition
   Control
   Asignment
   Operator

24.Loops are _______________ Structure.
   Decision
   Sequential
   Repetition
   None of the given options

25. _________ operator is used to pass the address of a variable in call by reference
   method.
   %
   +
   @
   &
26.How many times the following do-while loop will execute? int k = 10; do { cout <<
   "Statements" << endl; k -= 2; } while(k>0);
    4
   5
   6
   7
27.What is the output of the following code if the 3rd case is true switch (var) { case „a‟:

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank