cs201 final notce by mohsin raza (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
- 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
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 notce by mohsin raza (1).pdf for free?
You can preview and download "cs201 final notce by mohsin raza (1).pdf" (CS201 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-final-notce-by-mohsin-raza-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 SUBJECTIVE QUESTION ANSWERS
BY MOHSIN CHINIOTI
03137248280
Q 1: Identify each of the following as system software and
application software.
LINUX, DISK CLEANUP, WORD PROCESSOR,
WINDOWS, STUDENT INFORMATION
Answer:
System software: - Linux, Disk cleanup, windows.
Application software: - Word Processor, Student information
Q 2: Write a program which defines three variables of type
double which store three different values including decimal
points, using set precision manipulators to print all these
values with different numbers of digits after the decimal
number.
Answer:
#include Page 1
int main ()
{
Double x1 = 12345624.72345
Double x2 = 987654.12345
Double x3 = 1985.23456
cout << setprecision (3) << x1<< endl;
cout << setprecision (4) << x2 << endl;
cout << setprecision (5) << x3<< endl;
Return 0 ;}
Q 3: Define static variable also explain life time of static
variable?
Answer: Static variable means maintaining the state of a
variable. It exists and lives around even when we are outside the
function. It is created and initialized only once during the
lifetime of the program and therefore it will be destroyed or
taken out of memory only once during the lifetime of the
program.
Page 2
Q 4: What do you know about run time error?
Answer: Run-Time Errors
• Occur when the program is running and tries to do something
that is against the rules. Example: Accessing a non-existent
variable, property, method, object, etc (e.g. a method name is
misspelled)
• Sources of these can be determined by a careful reading of the
code, but unfortunately, not always.
Q 5: What is limitation of the friendship between classes?
Answer: Friendship relation between classes is a one way
relation that is if one class declare friend another class then the
another class is the friend of first class.
Q 6: what is the source and destination of cin?
Answer: For cin, the source is normally keyboard and the
destination can be an ordinary variable i.e. native-data type
Variables.
Q 7: Write the general syntax of allocation memory
dynamically to an array using new operator?
Answer: Following is the syntax:
New data_type [number_of_locations];
Q 8: What is different between pointers and variable?
Answer: Normal variable contains the value of variable either
int or float whereas pointer variable contains the address of
another variables.
Q 9: What is difference between Unary and binary operators
and how they can be overloaded?
Answer: Unary operator takes one argument.
a ++ is an example of unary operator
Binary take two operators Page 3
+,-,* are example of binary operators
Overloaded binary operator may return any type
Here is general syntax of overloading Return-type operator
symbol (parameters);
Q 10: How many types of templates?
Answer: There are two different types of templates in C++
language i.e.’ function templates and class templates.
Q 11: What will be the output of following function if we call
this function by passing int 5?
Template T reciprocal (T x) {return (1/x) ;}
Answer:
0
The output will zero as 1/5 and its .05 but conversion to int
make it zero
Above is prototype of template class so assume passing an int
and returning an int.
Q 12: Identify the errors in the following member operator
function and also correct them.
Math * operator (math m);
Math * operator (math m)
{
Math temp;
temp.number= number * number; .2
Return number;
Answer:
The errors are in the arguments of the member operation
function and also in the body of operator member function.
Correct function should be
Math *operator (math *m);
Math *operator (math *m) Page 4
{
Math temp;
Temp = m;
temp.number= number * number;
Return number;
Q 13: Define buffer? Explain its usage?
Answer: A program that writes the output data to the disc, it
will be nice to collect the output data (numbers) and write it
on the disc in one write operation instead of writing the numbers
one by one. The area where we gather the numbers is known as
buffer.
Q 14: Why binary search algorithm is efficient than linear
search algorithm?
Answer: Binary search algorithm is more efficient than liner
algorithm because the arrays are sorted in ascending or
descending order and we use “divide and conquer” technique. In
binary search each iteration reduces the search but in the linear
we have the same number of searches as we have the number of
elements. E.g. if we have array of 1000 elements the linear
search will take 1000 iterations however binary search will take
max 10.
Q 15: Syntax of Post increment and pre increment.
Answer:
Classname operator ++ (); ---- pre increment
Classname operator (int) ++ ---- post increment Page 5
Q 16: What is language translator?
Answer: we need a translator which translates the code of our
program into machine language. There are two kinds of
translators which are known as Interpreter and Compilers. These
translators translate our program which is written in C-Language
into Machine language.
Q 17: Write something about testing in designing program?
Answer: Testing. The programmer should design a test plan and
use it to test the program. It is a good idea, when possible, to
have someone else test the program.
Q 18: Read the given below code and explain what task is
being performed by this function.
Matrix:: Matrix ( int row , int col )
{
numRows = row ;
numCols = col ;
Elements = new (double *) [numRows];
For (int i = 0; i < numRows; i ++)
{
Elements [i] = new double [numCols];
For (int j = 0; j < numCols; j ++)
Elements [i] [j] = 0.0;
} Page 6
}
Hint: This function belongs to a matrix class, having
Number of Rows = numRows
Number of Columns = numCols
Which one (copy constructor or assignment operator) will be called
in each of the following code segment?
1) Matrix m1 (m2);
2) Matrix m1, m2;
m1 = m2;
3) Matrix m1 = m2;
Answer:
In this code the matrix function is defined, it gets the number ofMore CS201 files
- CS201 (Final term Notes) Important Topics Covered 2025.pdf (PDF · Final-Term)
- CS201 2 Quiz#3 6 July2023 FINALS by MISS MEHWISH.pdf (PDF · Final-Term)
- CS201 2 Quiz#3 6 July2023 FINALS by MISS MEHWISH.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer-1.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer-1.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer.pdf (PDF · Final-Term)
- CS201 2020 Final Paper Current by VU Answer.pdf (PDF · Final-Term)