CS201 Final Term and Today Quizs 16-07-2021-1.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Final-Term Solved Past Paper & Examination Pack) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 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
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Tags
FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS201, regardless of midterm scores.

What this file covers — CS201 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. 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 Final Term and Today Quizs 16-07-2021-1.pdf for free?

You can preview and download "CS201 Final Term and Today Quizs 16-07-2021-1.pdf" (CS201 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-final-term-and-today-quizs-16-07-2021-1-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 Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (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 QUIZ-1 BY Attiq Kundi
                                      &
               CS201 Final Term all MCQS
          SUBSCRIBE “Knowledge For Us” ON YOU TUBE
                 CS504 100 % CORRECT MCSQ
                             AND Many MoRe

         Humari Mehnat k liye Ager ho sakay to Humaray
         channel ko Zaroor Subcribe Karen..*JazakAllah*
                           “Knowledge For Us”
Question # 1

< and > both are _________ operators.

Arithmetic
Relational
Logical
Mathematical
Question # 2

Find out the logical error in following lines
of code. If (x = 10) cout “x is 10”;

10 should be enclosed in quotations
There is no semicolon at the end of if condition
Assignment operator should not be used
for Comparison
Variable x should not be inside parenthesis

Question # 3

What will be the result of the expression
j = i++; if initially j = 0 and i = 5?

0
5

6
4

Question # 4

Default mechanism of calling a function by
passing it array is call by ________ and in
case of passing variable is call by ___.

Reference, Reference
Reference, value
Value, Reference
Value, Value

Question # 5

When the break statement is encountered
in a loop’s body, it transfers the control
________from the current loop.

Inside
Outside
To break statement
To continue statement
Question # 6

________statement is used to terminate the
 processing of a particular case and exit
from switch structure.

If
Goto
Break
Continue

Question # 7

If we pass more than one arguments to a
function then they are separated by____.

Comma, Lecture 9
Semicolon;
Colon:

Brackets ()

                      OUR WHATSAPP GROUP JOIN

Question # 8

What will be the value of the variable output in the
given piece of code?
double output = 0; output = (2 + 2) * 4 + 2 / (4 – 2);

15
17
12
1

Question # 9

If we assign 2.06721 to an integer variable x, what
will be the output if we print x using cout statement?

2
2.1
2.06
2.07

Question # 10

__________ will be used for clarity and to force
the order of evaluation in an expression.
 ""
() PG32
 ''
 []

Question # 11

What will be the size of following array? int arr[29];

0
30 PAGE 105-106
29
28
f a function has not been declared before

its definition, It is logical error
syntax error        LECTURE NO 9
logical Error
run time error
none of these

Question # 13

When the break statement is encountered in
a loop‟s body, it transfers the control from
the current loop.

Inside
Outside By using break the loop will terminate.
To break statement
To continue statement

Question # 14

When we access a multidimensional array,
each array index is surrounded by_.

Single quotes ' '
Double quotes " "
Brackets[] Lecture 11
None of the given

Question # 15

char name [] = “Hello World” ; In the above
statement, a memory of ____characters
will be allocated

12 Lecture 12
10
11
13

Question # 16

A variable declared within a code block becomes
variable for that block.
Static

 Integer
 Local Lecture 9
 Global

Question # 17

When the, if statement consists of more than
one statement then enclosing these statement
in braces, is _________.

Compulsory
Optional
Not required
Relevant

Question # 18

Characters of a string stored in an array
can be accessed directly using array.

Manipulation
Superscript
Subscript Page No 123
Postscript

Question # 19

A variable declared within a code block
becomes variable for that block.
Static
Integer
Local Lecture 9
Global

Question # 20

The data type before a function name

represents its,

Return Type
Function data
Function arguments
Function name

Question # 21

From following; which one is the correct syntax
of an array initialize: Array size is 10 and it is of
double data type to value 0?

arr[10] = {0.0};
double arr[10]= 0.0;
Double arr[10] = {0.0}; Lecture 12
double arr[] = 0.0;

Question # 22

In C/C++, by default arguments are passed
by__to a function.

Value Lecture 9
Reference
Prototype
None of the given

Question # 23

By default, the starting index of an array in C++ is
0 Lecture 11
2

1
-1

     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

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

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

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank