cs201 midterm important MCQs (vusolutionpoint.com).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, IMPORTANT, 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 midterm important MCQs (vusolutionpoint.com).pdf for free?

You can preview and download "cs201 midterm important MCQs (vusolutionpoint.com).pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-midterm-important-mcqs-vusolutionpoint-com-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

        CS-201 Introduction To Programming
          Update MCQS For Mid Term
            Solve By Danish Hanif
              80 To 100% Marks

Question No:1               Danish Hanif
To read command line argument the main() function itself must be
given—

  A. 1
  B. 2
  C. 3
  D. 4

Question No:2                   Danish Hanif
eof is used to check for the ________ of file when a file is being read.
   A. Start
   B. End
   C. Middle
   D. Name

Question No:3                Danish Hanif
The ASCHI code of null character is __________.
  A. 000
  B. 010
  C. 111 D. 110

Question No:4                Danish Hanif
__________ contains functions for manipulations of character data.
  A. Ctype.h
  B. Iostream.h
  C. String.h
  D. None of the given

Question No:5                   Danish HanifAt the design phase, we
try to break up the problem into __________.
   A. Small units
   B. Functional units
     C.     Non -functional units
     D.     None of the given

Question No:6                     Danish Hanif
From the following; hich one is the correct syntax of an array
declaration: array size 5 and it is of float data type?
   A. float [5] name;
   B. name [5] float;
   C. float name[5];
   D. None of the given options

Question No:7                 Danish Hanif
char name [] ="Hello World";
In the above statement, a memory of __________ charaters will be
allocated.
   A. 13
   B. 11
   C. 12
   D. 10

Question No:8                    Danish Hanif
Each array declaration must provide the information about all these
things expect __________.
   A. Name of the array
   B. Type of data stored in the array
   C. The location of the first element to be stored
   D. Number of elements of the array

Question No:9               Danish Hanif
When we access a multidimensional array, each array index is
surrounded by __________.
   A. Single quotes ''
   B. Double quotes ""

  C. Brackets []
  D. Commas ,,

Question No:10                   Danish Hanif
In the case of pointer to pointer or __________, the first pointer
contains the address of the second pointer, which contains the address
of the variable, which contains the desired value.
   A. Different
   B. Float and double
   C. Single dereference
   D. Double dereference             Page 175

Question No:11              Danish Hanif
Whenever some number is added in an array name, it will jump as
many __________ as the added number.
  A. Rows
  B. Value
  C. Column
  D. None of the given

Question No:12               Danish HanifThe statement cout <<
yptr will show the __________the yptr points to.
  A. Value
  B. Variable
  C. None of given
  D. Memory Address

Question No:13                Danish Hanif
char **argv can be read as__________________.

A. Pointer to Pimter
B. Pointer to Char
C. Pointer to Pointer to Char   Page 177
D. None of given

Question No:14
______are conventional names of the command line parameters of the
‘main()’ function.
  A. ‘argb’ and ‘argv’
  B. ‘argc’ and ‘argv’
  C. ‘argc’ and ‘argu’
  D. None of Given

Question No:15                 Danish Hanif

___________ Returns true if c is a digit and false otherwise.
  A. int isalpha( int c )
  B. int isalnum( int c )
  C. int isxdigit( int c )
  D. int isdigit( int c )

Question No:16                  Danish Hanif
dereferencing operator is represented by _______
   A. +
   B. *
   C. –
   D. None

Question No:17                Danish Hanif
In_________, we try to have a precise problem statement
   A. Analysis
   B. Design
   C. Coding

  D. None of the given

Question No:18               Danish Hanif
To read command-line arguments, the main() function itself must be
given ___________ arguments.
   A. 2
   B. 3

  C. 1
  D. 4

Question No:19                 Danish Hanif
For the following statement, how much memory will be allocated to
myarray[0] Char*myarray[] = {“arif”,”sadia”}
A. 5 bytes
  B. 4 bytes
  C. 3 bytes
  D. 1 bytes

Question No:20                  Danish Hanif
Following is the declaration of a __________ array. int arr[2][2];
  1. 1 dimensional
  2. 2 dimensional
  3. 4 dimensional
  4. 3 dimensional

Question No:21                 Danish Hanif
A file opened with ____ is used for input and cannot be used for output.
   A. Ifstream               Page 220
   B. Ostream
   C. Istream
   D. Fstream

Question No:22                   Danish Hanif
A structure is a collection of _____________under a single name.
   A. Array
   B. Pointer
   C. Datatype
   D. Variables

              23
Following is an array of ____ rows and _____ columns. int num[3][4];
  A. 4 and 4
  B. 3 and 4
  C. 4 and 3
  D. 3 and 3

Question No:24                  Danish Hanif
What is output of following code?
Int data [10] = {10,20,30,40,50,60,70,80,90,100};
Int*xptr=&data[4];
Int *xptr =&data [6]; Cout<
< xptr+yptr++;?
   A. 120
   B. 110
   C. 115

  D.
  125

Question No:25                  Danish Hanif
What will be the output of following program?
Int data[10]=[10,20,30,40,50,60,70,80,90,100];
Int*yptr=&data[5];
Cout<<++yptr
   A. 61
   B. 51
   C. 60
   D. 52

Question No:26                  Danish Hanif
What will be the output of the following code segment?
Char myName[]=”student ID”;
Int n=sizeof(myName);
Cout<<n;
   A. 10

  B. 11
  C. 12
  D. 15

              27
Base address is the memory address of _______ element of an array.
  A. 1st
  B. 2nd
  C. 3rd
  D. 4th

Question No:28                   Danish Hanif
The string in the array is terminated by a_____
  A. Null
  B. One
  C. Two
  D. Five

Question No:29                   Danish Hanif
What will be the size of the following character array?
char name[]="Adeel";
   A. 6
   B. 5
   C. 4
   D. 3

Question No:30
By default, the starting index of an array in C++ is __________.
  A. 2
  B. 0
  C. 1
  D. 3
  31
Following is the declaration of 2D array how many column are
declared for this array int arr[3][2];
  A. 3
  B. 4
  C. 2
     D
     .
     1

Question No:32                Danish Hanif
In computer system there are mainly — type of software
   A. 4
   B. 2
   C. 6
      D.
      8

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank