CS201 SHORT QUESTION ANSWER SOLVED BY SONU-2.pdf
Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum spanning approximately 180 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
- Type
- MCQ Bank
- Coverage
- Full Course Curriculum
- Tags
- SOLVED, SUBJECTIVE
Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.
What this file covers — CS201 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
- 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 SHORT QUESTION ANSWER SOLVED BY SONU-2.pdf for free?
You can preview and download "CS201 SHORT QUESTION ANSWER SOLVED BY SONU-2.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-short-question-answer-solved-by-sonu-2-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
SONU ILYAS MUGHAL
What is the full form of OOPS?
Object Oriented Programming System.
What is a class?
Class is a blue print which reflects the entities attributes and actions.
Technically defining a class is designing an user defined data type.
What is an object?
An instance of the class is called as object.
List the types of inheritance supported in C++.
Single, Multilevel, Multiple, Hierarchical and Hybrid.
What is the role of protected access specifier?
If a class member is protected then it is accessible in the inherited
class. However, outside the both the private and protected members
are not accessible.
What is encapsulation?
The process of binding the data and the functions acting on the data
together in an entity (class) called as encapsulation.
What is abstraction?
Abstraction refers to hiding the internal implementation and exhibiting
only the necessary details.
What is inheritance?
SONU ILYAS MUGHAL
Inheritance is the process of acquiring the properties of the exiting
class into the new class. The existing class is called as base/parent class
and the inherited class is called as derived/child class.
Explain the purpose of the keyword volatile.
Declaring a variable volatile directs the compiler that the variable can
be changed externally. Hence avoiding compiler optimization on the
variable reference.
What is an inline function?
A function prefixed with the keyword inline before the function
definition is called as inline function. The inline functions are faster in
execution when compared to normal functions as the compiler treats
inline functions as macros.
What is a storage class?
Storage class specifies the life or scope of symbols such as variable or
functions.
Mention the storage classes names in C++.
The following are storage classes supported in C++
auto, static, extern, register and mutable
What is the role of mutable storage class specifier?
A constant class object’s member variable can be altered by declaring
it using mutable storage class specifier. Applicable only for non-static
and non-constant member variable of the class.
Distinguish between shallow copy and deep copy.
Shallow copy does memory dumping bit-by-bit from one object to
another. Deep copy is copy field by field from object to another. Deep
copy is achieved using copy constructor and or overloading assignment
operator.
What is a pure virtual function?
SONU ILYAS MUGHAL
A virtual function with no function body and assigned with a value zero
is called as pure virtual function.
What is an abstract class in C++?
A class with at least one pure virtual function is called as abstract class.
We cannot instantiate an abstract class.
What is a reference variable in C++?
A reference variable is an alias name for the existing variable. Which
mean both the variable name and reference variable point to the same
memory location. Therefore updation on the original variable can be
achieved using reference variable too.
What is role of static keyword on class member variable?
A static variable does exit though the objects for the respective class
are not created. Static member variable share a common memory across
all the objects created for the respective class. A static member
variable can be referred using the class name itself.
Explain the static member function.
A static member function can be invoked using the class name as it exits
before class objects comes into existence. It can access only static
members of the class.
Name the data type which can be used to store wide characters in C++.
wchar_t
What are/is the operator/operators used to access the class
members?
Dot (.) and Arrow ( -> )
Can we initialize a class/structure member variable as soon as the
same is defined?
No, Defining a class/structure is just a type definition and will not
allocated memory for the same.
SONU ILYAS MUGHAL
What is the data type to store the Boolean value?
bool, is the new primitive data type introduced in C++ language.
What is function overloading?
Defining several functions with the same name with unique list of
parameters is called as function overloading.
What is operator overloading?
Defining a new job for the existing operator w.r.t the class objects is
called as operator overloading.
Do we have a String primitive data type in C++?
No, it’s a class from STL (Standard template library).
Name the default standard streams in C++.
cin, cout, cerr and clog.
Which access specifier/s can help to achive data hiding in C++?
Private & Protected.
When a class member is defined outside the class, which operator
can be used to associate the function definition to a particular class?
Scope resolution operator (::)
What is a destructor? Can it be overloaded?
A destructor is the member function of the class which is having the
same name as the class name and prefixed with tilde (~) symbol. It gets
executed automatically w.r.t the object as soon as the object loses its
scope. It cannot be overloaded and the only form is without the
parameters.
What is a constructor?
SONU ILYAS MUGHAL
A constructor is the member function of the class which is having the
same as the class name and gets executed automatically as soon as the
object for the respective class is created.
What is a default constructor? Can we provide one for our class?
Every class does have a constructor provided by the compiler if the
programmer doesn’t provides one and known as default constructor. A
programmer provided constructor with no parameters is called as
default constructor. In such case compiler doesn’t provides the
constructor.
Which operator can be used in C++ to allocate dynamic memory?
‘new’ is the operator can be used for the same.
What is the purpose of ‘delete’ operator?
‘delete’ operator is used to release the dynamic memory which was
created using ‘new’ operator.
Can I use malloc() function of C language to allocate dynamic memory
in C++?
Yes, as C is the subset of C++, we can all the functions of C in C++ too.More CS201 files
- 49192415-Almost-300-Solved-MCQs-of-CS201-Introduction-To-Pro (PDF · MCQ Bank)
- CS201 10+ Current Papers 2022 .pdf (PDF · MCQ Bank)
- CS201 10+ Current Papers 2022 .pdf (PDF · MCQ Bank)
- CS201 All term paperz in 1 file (pages 1 to 63) eagle_eye.pd (PDF · MCQ Bank)
- CS201 Current Papers 2018 To 2020.pdf (PDF · MCQ Bank)
- CS201 Current Papers Shared By Students.pdf (PDF · MCQ Bank)
- CS201 Current Papers Shared By Students.pdf (PDF · MCQ Bank)
- CS201 Mcqs Searching File 2021-converted (1).pdf (PDF · MCQ Bank)