CS201P quiz file.pdf

Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope 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
PDF
Type
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

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 CS201P quiz file.pdf for free?

You can preview and download "CS201P quiz file.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201p-quiz-file-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 Quizzes & Objective Exam Scope 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

CS201P
Quiz File
Q.1 We cannot declare a function as a a friend of --------------
classes
Ans: istream or ostream
Q.2 Automatic variable are created constantly and destroyed
Ans: All the time
Q.3:--------are a conditional complication process that is used to
replace a piece of code by its definition in a programe
Ans: function
Q.4: calloc () functions allocates multiple blocks of memory
and each block have-------------?
Ans: same size
Q.5: in C++ sizeof operator is used to determine---------------
Ans: not confirm
Q.6:which of the following header file deals with stream
extraction?
Ans: iostream.h
Q.7: Type to use getch() function without including
#include<conio.h> header file in the program is a ------ error
Ans: compilation
Q.8: in C++ the default constructor takes------------

Ans: Only one argument
Q.9: in C++ the name of the ---------- is the same as that of a class
with a preceding tild (~) sign.
Ans: Destructor
Q10: which of the following option returns the state of end file?
Ans: cin.eof()
Q.11: If the memory in the free store is not sufficient enough to
fulfill the request , malloc () function return-----------
Ans; Null
Q.12: in C/C++ language . memory at runtime is allocated from -
-----------
Ans: Stack
Q.13: When overloading assignment (=) operator, which of the
following syntax is correct?
Ans: void operator(=) const string &other:
Q.14: which of the following code:
Ans :***7
Q.15: For overloading minus (-) operator, which member
operator function will be correct?
Ans: complex operator-(complex c)
Q:16: In C++ which operator is used far memory allocated ?
Ans: New

Q.17:The Statement char array [10]; is an example of a type of --
------------ memory allocation
Ans: staic
Q.18:which of the following option not a source of the output
steam?
Ans: file
Q.19: A sequare matrix has-----------
Ans: Equal number of rows and columns
Q.20:The statement *double** elements; * says that *elements*
is a / an ------ to double.
Ans: Array of pointers
Q.21: A matrix is nothing but a --------- of numbers.
Ans: Two- dimensional array
Q.22: A programmer can ------- the simple matrix class to handle
the integer, float, or double data type as elements of the given
matrix.
Ans: Hide
Q.23: in C and C++ language, every expression has a --------- of its
own?
Ans: Value
Q.24: The cycle of testing and --------- continues until the
program is working perfectly without any problem.
Ans: Bug fixing

Q.25: Default scope for members of structures is -------- and
default visibility for class members is ----
Ans: Public, Private
Q.26: If A and B are two matrices of order M*N to be added then
their resultant matrix will have an order of
Ans: M*N
Q.27: if *m* is a matrix object, then self-assignment can be
avoided by using following code statement
Ans: If (&m!=this);
Q.28: Which of the following is correct formate of template
function?
Ans: Template <class T>
Q.29: In template class, compiler makes a copy of ---- and
convert in to -----
Ans: Source code , Object code
Q.30: Far a matrix, the variables of Rows and Columns should
always be a -------
Ans: Whole Number
Q:31: After implementation of code is completed, we do its -----
to verify that it is behaving properly in all scenarios.
Ans: Testing
Q.32: which three constructs do we need to solve any
problem?

Ans: Classes, structures, functions
Q.33: Declaration and definition of a template function should
be in the -------- file
Ans: same
Q.34: For template function, we must have at least ---------
generic argument.
Ans: One
Q.35: In C++ , which of the following option has the correct
meaning of the expression”a<=b”?
Ans: a is less than or equal to b
Q.36: which of the following code?
Ans: 2 4 6 8
Q.37: What will be the output of the following code?
Int x=15;
Iny y=10;
Int z= 5;
Cout<< x*x-4*y*z;
Ans: 25
Q.38:Which of the following expression is correct in C/C ++
language?
Ans: X=X+3

Q.39: Which of the following C++ statements I used take input
from the user?
Ans: cin
Q.40: Which of the following is an example of logical operator?
Ans: &&,II
Q.41: in C/C ++ , which of the following data type is used to
store real numbers?
Ans: Float
Q.42: C/C++ has many libraries which contain variables and
function names normly starting with ------
Ans: Underscore
Q.42: The coding of a program is translated into machine
language by -------
Ans: Compiler
Q.43:Learning “How to program” is important, because it
develops------- and problem solving abilities.
Ans: Analytical
Q.44: in C/C++ , the algebraic expression (b2-4ac)/2a cab be
written as:
Ans: (b*b-4*a*c)(2*a)
Q.45: In C/C++, which of the following data type is used to store
real member?
Ans: Float

Q.46: To understand programming concepts,------------
programming language being used as a vehicle in cs201
“Introduction to programming” course.
Ans: C/C++
Q.47: The bit manipulators operator------------ is used to check
weather a specific bit is set or not.
Ans: &
Q48.: in C++, which operator is used while accessing through
the pointer to structure?
Ans: ->
Q.49: Function seekg() and seekp() require an argument of
type------ to let them know how many bytes to move forward
backword.
Ans: Long
Q:50: Macro is defined by ------------ preprocessor directive.
Ans: #define
Q.51: In C++ , when accessing files randomly, which function is
used at get current pointer position inside a file?
Ans: tellg()
Q.52:Which is not a preprocessor directive of C-Language?
Ans: # Startif
Q.53:The statement char arr [10]; is an example of a type of -----
-- memory allocation

Ans: Built-in
Q.54: What would be the output of the following statement?
C=13%2;
Ans= 1
Q.55: Which of the following two array are copy-able?
Ans: int a[5],int b[5]
Q.56: A variable declared inside a code block becomes the -------
variable for that block.
Ans: Local
Q.57: Which type of arrays are used while dealing with
sentences?
Ans: Character arrays
Q.58: In the call by reference method, which operator is used to
get the address of a variable?
Ans: &
Q.59: Which of the following is the correct method to declare an
array?
Ans: data-type array-name[size];
Q.60: char name []= “Hello World”;

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank