.trashed-1694938944-CS201 IntroductionToPrograming.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 .trashed-1694938944-CS201 IntroductionToPrograming.pdf for free?

You can preview and download ".trashed-1694938944-CS201 IntroductionToPrograming.pdf" (CS201 PDF, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/trashed-1694938944-cs201-introductiontoprograming-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

     Almost 300 Solved MCQs of CS201
                                           By

                    http://vustudents.ning.com
Default constructor takes _________.

one parameter
two parameters
no parameters
character type parameter

All the preprocessors directives start with ________.

$
&
#
_

The members of a class declared with the keyword struct are _____________by default.

static
private
protected
public

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

We cannot use ______________ pointer for storing and reading data from it.

NULL
integer
double
zero

http://vustudents.ning.com                                                             1

When an object of a class is defined inside another class then,

Destructor of enclosing class will be called first
Destructor of inner object will be called first
Constructor and Destructor will be called simultaneously
None of the given options
Consider the following code segment. Which of the following will be called while
executing code at line 2? String s1 , s2; s1 = s2 ;

Copy constructor
Default constructor
Assignment operator
Parameterized constructor

We cannot increment ________________.

pointers
arrays
references
variables

In statement Matrix m2 = m1 ;

Assignment operator is being used
Copy constructor is being used.
Statement has syntax error
None of the given options

From the following; which on is the correct syntax of an array declaration: array size is 5
and it is of float data type?

float [5] name;
name[5] float;
float name[5];
None of the given options

If an array has 50 elements, what is allowable range of subscripts?
0 – 49
1 – 49
0 – 50
1 – 50

http://vustudents.ning.com                                                                2

A structure is a collection of _____________under a single name.

values
variables
data
None of the given

If a function has not been declared before its definition, It is a

logical error
syntax error
run time error
None of these

When the if statement consists more than one statement then enclosing these statement in
curly braces is,

Not required
Good programming
Relevant
Must

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

structures
union
construct
None of the given

In Analysis, we try to have a______________

Determined the inputs
Break up of problem
Precise problem statement
None of the given

_______________function give the position of the next character to be read from that
file.

tellp()
tellg()
seekg()
seekp()

http://vustudents.ning.com                                                             3

Pointers store the ____________________ http://vustudents.ning.com

value of a variable
memory address
characters
None of the given

In order to get the right most digit of a number, we divide this number by 10 and take its

Remainder
Quotient
Divisor
None of the given options

___________ Returns true if c is a digit and false otherwise.

int isalpha( int c )
int isalnum( int c )
int isxdigit( int c )
int isdigit( int c )

If int a = 50; then the value of a/= 3; will be,

15
18
16
17

_______________________ contains functions for manipulations of character data.

ctype.h
iostream.h
string.h
None of the given
____________________ Returns true if c is a digit or a letter and false otherwise.

int isalpha( int c )
int isalnum( int c )
int isxdigit( int c )
int isdigit( int c )

http://vustudents.ning.com                                                                   4

If int sum = 54; Then the value of the following statement is sum = sum - 3 ;

52
50
51
57

To get the value stored at a memory address, we use the________________

referencing operator
dereferencing operator
simple operator
None of the given

In C/C++; by default arguments are passed by _______ to a function.

Reference
Value
Type
Data

The string in the array is terminated by a _______

zero
nil
null
one

Structures are syntactically defined with the word_____________.

struc
struct
structure
None of the given

C is widely known as development language of _______ operating system.

Linux
Unix
Windows
Mac OS

http://vustudents.ning.com                                                      5

 http://vustudents.ning.com

At the___________, we try to break up the problem into functional units

analysis phase
design phase
Implementation phase
None of the given

While developing a program; should we think about the user interface?

Yes
No

What will be the result of arithmetic expression 5+25/5*5?

45
6
30
9

Why we use "cin"? http://vustudents.ning.com

To send data to printer
To read data from keyboard
To display message
To display output on the screen

_________operator uses the sign ^.

Bit-wise OR
Exclusive OR
AND Operator
NOT operator

http://vustudents.ning.com                                                6

C++ is a_________________ language.

High level
Low level
Machine
Fourth Generation

12 & 8 = (1000) 2 =________. & is used to AND two numbers bit-wise

4
8
6
12

From the following; which one is used as an assignment operator?

Equal sign ‘=’
Double equal sign ‘==’
Both equal and double equal sign
None of the given options

What will be the value of ‘a’ and ‘b’ after executing the following statements? int a = 9;
int b = a++; cout<<

10,9
9,10
9,9
10,10

These functions seekg() and seekp() requires an argument of type ____________to let
them how many bytes to move forward or backward.

int
short
long
double

http://vustudents.ning.com                                                                   7

A character is stored in the memory in _________

byte
integer
string
None of the given

dereferencing operator is represented by _______

*
+
–
None of the given

______________ transfers the executable code from main memory to hard disk.

Loader
Debugger
Compiler
Linker

When the logical operator OR (||) combine two expressions exp1 and exp2 then the result
will be false only,

When both exp1 and exp2 are true
When both exp1 and exp2 are false
When exp1 is true and exp2 is false
When exp1 is false and exp2 is true

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank