CS201 Final Term Solved MCQs By JUNAID.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
MCQ, SOLVED, 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 Solved MCQs By JUNAID.pdf for free?

You can preview and download "CS201 Final Term Solved MCQs By JUNAID.pdf" (CS201 PDF, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-final-term-solved-mcqs-by-junaid-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-Introduction to
        Programming
  Final Term Solved MCQs
Prepared by: JUNAID MALIK

AL-JUNAID INSTITUTE GROUP
   ALL answers are verified if found any
   mistake then Correct ACCORDINGLY

Question no.1
   Which of the following function call is “call by Reference” for the
   following function prototype?
 a. Func(&num)
 b. Func(name)

 c. A&b

 d. None of the given option

Question no.2
     When break statement is encountered in switch
     statement,it______
  a. Exits from switch statement
  b. enter from switches statement
  c. both a&b
  d. none of the given option

Question no.3
The operator ++ and – used to increment or decrement the value of
a variable by_______
    a.3
   b.2
   c. 1
   d.4

Question no.4

AL-JUNAID INSTITUTE GROUP
Which of the following operator is used to access the value of
variable pointed by a pointer?
    a. *operator
    b.->operator
   c. &&operator
   d. & operator

Question no.5
In case of single dereferencing the value of the____ is the address of
the _____

  a. Pointer ,variable
  b. pointer, constant
  c. variable, pointer
  d. constant, pointer

Question no.5
The remainder(%) operator is a _______ operator.
 a. logical
 b. Arithmetic
 c. Relational
 d. Conditional

Question no.6
What will be the output of the following code?
Intx=10;
Cout<<”x=”<<x;
  a. x=10
  b. 10
   c. 10=x

Question no.7
The perpose of using cout<<is to______

 AL-JUNAID INSTITUTE GROUP
 a. Read the data from keyboard
 b. Read the data from file
 c. Write into a file
 d. Display information on the screen

Question no.8
When an array element is passed to function, it is passed by _____
 a.reference
 b. data type
 c. value
 d. data

Question no.9
.C is a/an____language.
Ans.function oriented

Question no.10
____ of a function is also known as signature of a function.
  a.
  b. Declaration
  c.
   d.

Question no.11
While programming,it is good to provide an easy to understand and
easy to use interface; this programming skill is called______
  a. Scalability
  b. Reliability
  c. sustainability
  d. usability

Question no.12
How many dimensions does n-dimensional array has?

 AL-JUNAID INSTITUTE GROUP
  a. 2n dimension
  b. (n+1) dimension
  c. (n-1) dimension
  d. n dimensions

Question no.13
Which of the following function call is”call by reference” for the
following function protocol?
Void func(int*)
 a. func(int&num)
 b. func(&num)
 c. func(*num)
 d. func(num)

    Question no.14
    The loop which is most suitable to be used when the number of
    iteration is known is called_____
    a. for
    b. while
    c. do-while
    d. all looping processes require that the iterations be known

Question no.15
 In C/C++, the string constant is enclosed in_____
 a. curly braces()
 b. parentheses()
 c. single quotes’ ’
 d. double quotes” “

Question no.16
 In order to get the right most digit of a number, we divide this
number by 10 and take_____
   a. Its remainder

 AL-JUNAID INSTITUTE GROUP
  b. Its quotient
  c. Its divisor
  d. The number

Question no.17
 What is the correct syntax to declare an array of size 10 of int data
type?
   a. int[10] name;
   b. name[10] int;
   c. int name[10];
   d. int name[];

Question no.18
How many bytes of memory are occupied by array’star’?
 Char str[]=”programming”;
 a. 10
 b. 11
 c. 12
 d. 13

Question no.19
When the if statement consist more than one statement then
enclosing these statement in curly braces is,
 a. Not required
 b. Good programming
 c. Relevant
 d. Must

Question no.20
Suppose that an integer type pointer contains a memory address
0x22f230. What will be the new memory address if we increment
this pointer by one?
 a. 0x22f231

 AL-JUNAID INSTITUTE GROUP
b. 0x22f234
c. 0x22f226
d. 0x22f238

Question no.21
Which of the following if missing would result in infinite recursion in
case of recursive function?
 a. Recursive call
 b. Base case
 c. Function parameters
 d. Local variables

Question no.22
Whenever we use a library function or a predefined object or macro,
we need to use a_____
  a. Source file
  b. Object file
  c. header file
  d. exe file

Question no.23
Switch statement deals with ____type of data
  a. Integer
  b. Float
  c. Character
  d. Both Integer and Character

Question no.24
All a template function must have at least______ generic dats tyoe?
   a. Zero
   b. One
   c. Two
   d. Three

 AL-JUNAID INSTITUTE GROUP
Question no.25
Which one of the following is the declaration of overloaded pre-
increment operator implemented as number of function?
   a. Class-name operator+()
   b. Class-name operator+(int)
   c. Class-name operator++()
   d. Class-name++operator++(int)

Question no.26
Class is a user defined_____.
   a. Data type
   b. Memory reference
   c. Value
   d. None of the given option

Question no.27
How many bytes will the pointer intPtr of type int move in the
following statement? intPtr+=3;
   a. 3 bytes
   b. 6 bytes
   c. 12 bytes
   d. 24 bytes

Question no.28
Which of the following is the correct C++ syntax to allocate space
dynamically for an array 10 int?
  a. new int(10);
  b. new int[10];
  c. int new(10);
  d. int new[10];

Question no.29

 AL-JUNAID INSTITUTE GROUP
A pointer is a special variable that contain
   a. Data values
   b. Memory address
   c. Both data and value
   d. None of the given option

Question no.30
Reference Value Type Data the code is written to___
  a. Implement
  b. Design
  c. Analysis
  d. None of the given option

Question no.31
Operator overloading can be performed through____
  a. Classes
  b. Operator
  c. Function
  d. Reference

Question no.32
When a value is referred by a normal variable then it is known as,
  a. Direct reference
  b. Indirect reference
  c. Partial reference
  d. Proper reference

Question no.33
Which of the following function is used to increase the size of
already allocated memory chunk?
   a. malloc
   b. calloc
   c. realloc

 AL-JUNAID INSTITUTE GROUP
   d. free

Question no.34
Which of the following is NOT a preprocessor directive?
  a. #error
  b. #define
  c. #line
  d. #ndefine

Question no.35

More CS201 files

All CS201 files · Midterm Prep 2026 · MCQs Bank