CS201 MIDTERM SUBJECTIVE 2010 to 2019.pdf
Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF 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
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- SUBJECTIVE, MIDTERM
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 MIDTERM SUBJECTIVE 2010 to 2019.pdf for free?
You can preview and download "CS201 MIDTERM SUBJECTIVE 2010 to 2019.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-midterm-subjective-2010-to-2019-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 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
PREPARED BY ADIL ALVI
UNSOLVED CS201 MIDTERM SUBJECTIVE QUESTIONS 2010 TO 2019
1) Loops iterations.
2) Functions calling techniques.
3) Diagonal of matrix [N] [N].
4) Arithmetic solutions to check order.
5) Diagonal and quotient questions
Dec 17, 2019
1) Why program is evaluated? Two techniques of evaluation?
2) Write three type of system software
3) How system software control all the.....
4) 2 programs were given ... Weight in kg convert it in pound and one more
5) One question was from Array
6) Errors Puchay Thy Aur kuch ki Output Show Karna thi
7) Write the functionality of following function: strcpy & strncpy (3 marks)
8) Using not operator write the output: true? False? (3 marks)
9) Write a program of 4 digits which gives the first and last digit :( 5 marks)
10) Code given tha error find krny thy :( 5 marks)
11) Program likhna tha :( 5 marks)
12) Program for class
13) Write program to copy one array into another array and array of 5 elements
14) Find errors in the given code
15) Calloc and Malloc function
16) Write program for constructor
17) Difference between default and parameterized constructors.
18) Use three variable to expose the dec, hex, and Oct.
19) Write c++ programs with three variable salary, no. Of days and rate and salary account by
the formula Salary= no. days*rate. Take out of no of days with the daily rate of 1000 per day.
20) write c++ program with 2 variable (i) Calculate rows and columns (ii) Calculate transpose of
matrix
21) Function of default function
22) If you agree prototype of ordinary function and special function of a class are same. Justify
with comment.
23) define output for given code (loop).
24) Write salary program to calculate tax using switch statement.
25) Use pointer to reverse the order of array.
26) Show output for following code (strcpy, strcat) ke functions thay code main
27) Output of the following code for loop
28) Main () function ka procedure aya tha
29) System software ki types or work
30) Program 15 array change uppercase latter to lowercase latter and lowercase latter to
uppercase latter aya tha
31) 2 part thy wrong code ki identification krni the
Cin<< count:
If x<y
Int x;
For any query feel free to ask adilalvi21@gmail.com
PREPARED BY ADIL ALVI
Else
Int y;
32) What happens if the file 'myfile.txt' does not exist and we still try to open it using the
function file.Open (“myfile.txt”, ios: out)?
33) Would the open () function create a new file and open it OR it will generate an error?
34) Determine the output of the given code segment.
Int x = 2;
Switch(x){
Case 1:
X += 1;
Break;
Case 2:
X += 2;
Case 3:
X +=3;
Break;
Case 4:
X += 4;
Break;
}
Cout x;
35) Transform the following If-else statement into switch statement.
If (x == 5)
Else if (x == 10 || x == 11)
Else if (x == 8)
Else if (x == 9)
Else
36) Write a C++ program which calculates the Net price of a book and displays it on the screen.
The Net price of book can be calculated by the following formula:
Net price = Retail Price + Sales Tax + Income Tax
Retail Price, Sale Tax and Income Tax are taken as input from the user.
37) write a program which opens a file named "writefile.txt" and moves the file pointer 100
characters forward starting from the beginning of the file and then writes the message "Reached
at position 101" at the new position in the file.
Dec 26, 2019
All statements like for loop, arrays, pointers, functions and file handling starting from lec no 17
onward, these are very imp topics for paper
Jun 23, 2019
1) Write the code of the following arrays; (i) Float array length 8 (ii) Float array length 8 to
pointer
2) Find the error in the following. Marks (3)
{
Int number;
If(number/2==0)
Cout"The number is even:";
For any query feel free to ask adilalvi21@gmail.com
PREPARED BY ADIL ALVI
Else()
Cout"The number is odd:";
Getch();
3) Write a program in C++ to calculate the Average Price of the book. Calculations given
the. Inputs ly kr display krwana tha.
4) Give the output of the following
{
Int It=1 nt=o s;
Int number=8;
If(nt<number/2)
{
Coutit"\t";
S=nt+It
Nt=It
S=It
}
5) Write a code to find the product. Product= number *2^5. Input ly kr output show krwani the.
Jun 23, 2018
1) Comments ka long sawal tha
2) Programming Questions
3) Software ka function pa kia asar hota
4) Long Array Wala topic acha sy KR lena (Array main sy Program aye thy)
5) F stream function ka program write krna tha
6) Questions error find krny thy
7) Voding m sy flie stream wala question tha [Marks 5]
8) Lines hight light ki hui thin un ka batana tha k ye line ka is coding m kia kaam hy
9) Array ka aik question tha add () name sy aik function bnana tha jis m 2 integer leny thy or un
ka sum lena tha or result show krwana tha [Marks= 3]
10) General syntax of switch statement
11) Applications software’s with examples
12) Output of program having arrays
13) To write a program arrays of 10 elements. Sorting. Find minimum and maximum number
Jun 23, 2018
1) Write down the output of the code given below :
Hint:
Size of char is 1 byte
Size of int is 2 byte
Size of float is 4 byte
#include <iostream.h>
union mytypes_t {
char c;
int i;
float f;
} mytypes;
For any query feel free to ask adilalvi21@gmail.com
PREPARED BY ADIL ALVI
int main(){
mytypes.c = 'H';
mytypes.i = 15;
cout sizeof(mytypes)endl;
mytypes.i = 15;
mytypes.c = 'H';
cout sizeof(mytypes)endl;
system("PAUSE");
return 0;
}
2) Identify the errors in the following code segment and give the reason of errors.
Main(){
int x = 10
const int *ptr = &x ;
*ptr = 5 ;
}
3) 1 programme likhna tha convert weight wala
Dec 10, 2017
Q No. 19: (2 Marks) write the output of the following program:
Int x = 5;
Int y = 10;
X = x + 10 * 5 + 5;
Y = x / 10 + 6;
Cout x endl;
Cout y endl;
Q No. 20: (3 Marks) write the output of the following program:
Int num[3][2] = { 51, 53, 47, 64, 39, 48 };
For ( j = 0; j < 3; j++ ) {
Cout *(*( num + j ) + 1 ) endl;
}
Q No. 21: (5 Marks) Write a Function Definition which takes 3 Arguments (saletax, income tax,
books price) and calculates the net price. (Net Price = sale tax + income tax + books price).More CS201 files
- 1_CS201 MID TERM SOLVED PAPER.docx (DOC · Midterm)
- 1_CS201 MID TERM SOLVED PAPER.pdf (PDF · Midterm)
- 23.-Download_CS201-Midterm-Solved-MCQs-with-Reference-Sadia- (PDF · Midterm)
- CS201 GRAND QUIZ MIDTERM 2020.pdf (PDF · Midterm)
- CS201 Grand Quiz for Mid Term Prepration by VU Stars.pdf (PDF · Midterm)
- CS201 MID TERM SOLVED PAPER-1.doc (DOC · Midterm)
- CS201 MID TERM SOLVED PAPER.doc (DOC · Midterm)
- CS201 MID Term Solved MCQs Mega File.pdf (PDF · Midterm)