cS201 grand spring 2021.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Verified Study Resource) covers Full Course Curriculum spanning approximately 280 pages across 8 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
Study Resource
Coverage
Full Course Curriculum

Review this document alongside the official handouts and test your retention in the Interactive MCQs Studio.

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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)

Frequently asked questions

Where can I download cS201 grand spring 2021.pdf for free?

You can preview and download "cS201 grand spring 2021.pdf" (CS201 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-grand-spring-2021-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 Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), 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 1800+ Mid term Mcqs

      Searching file for grand quiz

Created                 by Orange monkey team

                1 file 95% correct
                   st

The ASCII code of null character is --------------

000

Which step is not performed during a proper program

design?

Write details about the performed of program

How many elements are stored stored in the following? In matrix

[4][5]

20

Which of the following is not a valid variable name in

c++?

@student name

If an array has 50 elements what is allowable range of

subscripts

0-49

Compiler is a

System

software

If Num is an integer variable then Num++

means,

Add 1 with Num

For one byte there are    combinations of values that can be stored
in computer

           28

In C/C++ language the header file which is used to perform useful
task and manipulation of character data is

ctype.h

Default case in switch

statement is,

Optional

When break statement is encountered in switch

statement, it

Exits from switch statement

What will be the result of arithmetic expression

6+27/3*3?

33

What is the correct syntax to declare an array of size 10 of int data

type?

int name[10] ;

How many dimensions does n-dimensional array

has?

n dimensions

What will be the correct syntax to access the value of fourth element of
an array using pointer ptr?
ptr[3]

Which of the following values C++ use to represent true and

false?

1 and 0

Declaring structures does not mean that memory is

allocated.

True

For which array, the size of the array should be one more than the
number of elements in an array?

Char

  If a variable is passed by value to a function and the function makes some
  changes to that variable then it

  Does not affect the original

  variable

  In C/C++ the #include is called,

  Preprocessor Directive

  Loops are --------------------- Structure.

  Repetition

  In C/C++ the string constant is

  enclosed

  In double quotes

  Switch statement deals

  with,

  Integer and character

  data

  A record is a group of related                .
  Fields

C++ views each file as a sequential stream of                .
  Bytes

  To access the element of two dimensional array

  we use,

  Double referencin

  If it is required to copy an array to another array

then,

Both arrays must be of the same size and data

type

The precedence of * is higher than dot operator

False

Pointers works by pointing to a data type, which can be of the

form,

All of the given options

Which of the following data type(s) can operate on modulus

operator ‘%’?

Int

What will be the output of following

code? int x = 10 ;

cout<< “x =” << x

;

x=10

Which looping process checks the test condition at the end of the

loop?

do while

What will be the correct syntax of the following

statement?

nt *constptr ;

A function must always return

value.

False

C is a/an

               langugu

ae

function oriented

Assignment operator is used for             .
assigning value to variables

When the logical operator AND (&&) combine two expressions exp1
and exp2 then the result will be true only,

When both exp1 and exp2 are true

Which of the following function(s) is/are included in ctype.h

header file?

All of the above

To access the data members of structure         is

used.

dot operator (.)

The address operator (&) can be used

with,

Variable

Both compiler and interpreter are used to translate program into
machine language code.

True

Missing semicolon ‘;’ at the end of C++

statement is

Syntax error

Switch statement is an alternative of
                                              statemen
Multiple
t        if

Array is passed by value to a function by

default.

False

Which of the following is the correct function call having array named
student of 10 elements as a parameter.

Add Record (student [ ])

What will be the result of expression x%= 2, if x

= 7?

x=1

What will be the output of following code

segment? main(){

int x = 5 ;

{

int x =

4;

cout<x

  }

  Cout<x;

  }

  4, 5

  Which of the following operator is used to access the value of variable
  pointed to by a pointer?

               For loop
The object                   may be used both for file input and file
output
  fstream

  What's wrong with this for

  loop? for (int k = 2, k <=12,

  k++)

  The commas should be

  semicolons

  Union intorDouble{

  Intival;

  Double charvar;

  };

  main()

  {

  intorDouble

  VAZ; int size ;

  size = sizeof(VAZ); }

  What will be the value of variable "size", if int occupies 4 bytes and

double occupies 8 bytes?

C language is

developed by

Dennis Ritchie

Which of the following choice is not an example of an intdatatype?

-4.0

In flow chart, the symbol used for decision

making is,

Diamond

Switch statement deals

with,

Integer and character

data

*doc is                  by
type.
Sequential File

Member function tellg() returns the current location of the
pointer.

get()

Dealing with structures and functions passing by reference is the most
economical method

True

In C/C++ all character strings are terminated

with,

Zero

Word processor

is

Application

software

Which of the following cannot be a variable

name?

10area

Which looping process is best, when the number of iterations is

known?

For

By default an array of characters is passed by value to a

function.

      False

Which of the following operator is used to access the address of a

variable?

& operator

The name of an array represents address of first location of array

element.

True

Data Size of the file is always          the actual size of the
file.
None of the above

When an identifier is declared with keyword

const then,

Its value can not be changed

In C/C++ if we define an array of size eight (8) i.e. intArr [8]; then
the last element of this array will be stored at,

Arr[7]

If it is required to copy an array to another array

then,

Both arrays must be of the same size and data

type

In C/C++ all character strings are terminated

with,

Null character

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank