CS201_MID3.doc
Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This DOC document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 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
- DOC
- Type
- Study Resource
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS201.
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)
Frequently asked questions
Where can I download CS201_MID3.doc for free?
You can preview and download "CS201_MID3.doc" (CS201 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mid3-doc) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS201 file?
This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), 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
Q1
When the if statement consists more than one statement then enclosing these statement in curly braces is,
(a) Not required
(b) Good programming
(c) Relevant
(d) Must
Q2
The while loop becomes infinite,
(a) When the condition is always false
(b) . When the condition is less than zero
(c) When the condition is always true
(d) When the condition contains a logical operator
Q3
Which of the following function(s) is/are included in stdlib.h header file?
(a) double atof(const char *nptr)
(b) int atoi(const char *nptr)
(c) char *strcpy ( char *s1, const char *s2)
(d) 1 and 2 only
Q4
If we want to store a string “abc” in an array str then the size of this array must be at least,
(a) 2
(b) 3
(c) 4
(d) 5
Q5
No executable code will be generated if error is found during translation of the program using interpreter.
(a) True
(b) False
Q6
Word processor is
(a) Operating system
(b) Application software
(c) Device driver
(d) Utility software
Q7
Which of the following is the correct syntax to print multiple values or variables in a single command using cout?
(a) cout << "Hello" + x + "\n";
(b) cout << "H" << x << "\n";
(c) cout << "H", x, "\n";
(d) cout << ("H" & x & "\n");
Q8
Which of the following is correct way to initialize a variable x of int type with value 10?
(a) int x ; x = 10 ;
(b) int x = 10 ;
(c) int x, x = 10;
(d) x = 10 ;
Q9
If there is more than one statement in the block of a for loop, which of the following must be placed at the beginning and the ending of the loop block?
(a) parentheses ( )
(b) braces { }
(c) brackets [ ]
(d) arrows < >
Q10
Name of an array is a constant pointer.
(a) True
(b) False
Q11
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
Q12
What will be the value of ‘a’ and ‘b’ after executing the following statements?
a = 3;
b = a++;
(a) 3, 4
(b) 4, 4
(c) 3, 3
(d) 4, 3
Q13
Loader loads the executable code from hard disk to main memory.
(a) True
(b) False
Q14
Which of the following is used with bit manipulation?
(a) Signed integer
(b) Un-signed integer
(c) Signed double
(d) Un-signed double
Q15
Which of the follwoing values C++ use to represent true and false?
(a) 1 and 0
(b) 1 and -1
(c) 11 and 00
(d) Any numerical value
Q16
The argument of the isdigit() function is ___________________
(a) a character,
(b) a C-string,
(c) a C++ string class variable
(d) None of the given options.
Q17
Which data type should be used to store the value 50.7 ?
Float
Q18
Why should goto statement be avoided in C/C++?
Q19
What operator do you use to assign a pointer the address of another variable or constant? Marks: 2
Q20
If there are 2n elements in an array then what would be the number of iterations required to search a number using binary search and linear search? Marks: 3
Q21
Convert the following switch statement into if statements. Marks: 5
switch (operator) {
case '+':
result = op1 + op2;
break;
case '-':
result = op1 - op2;
break;
case 'x':
case '*':
result = op1 * op2;
break;
case '/':
result = operand1 / operand2;
break;
default:
cout << "Unknown operator" ;
}
Q22
Write a recursive function that takes character array and starting subscript as arguments. In each recursive call, the function should display the string from subscript to the end of string. The starting subscript in first call should be 0. In each successive call, the subscript should increse by one and function should print the array from subscript to the end of string. The function should stop processing and return when null character encounters.
Suppose the char string passed to the function is,
"SampleString", then the function will print output as follows,
SampleString
ampleString
mpleString
pleString
so on....
Marks: 10
More CS201 files
- .trashed-1694938944-CS201 IntroductionToPrograming.pdf (PDF · Study Resource)
- 1.png (IMAGE · Study Resource)
- 2.png (IMAGE · Study Resource)
- CS201 - 1.pdf (PDF · Study Resource)
- CS201 - 2.pdf (PDF · Study Resource)
- CS201 - 3.pdf (PDF · Study Resource)
- CS201 - 4.pdf (PDF · Study Resource)
- CS201 - 5.pdf (PDF · Study Resource)