1_CS201 MID TERM SOLVED PAPER.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
- SOLVED, 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 1_CS201 MID TERM SOLVED PAPER.pdf for free?
You can preview and download "1_CS201 MID TERM SOLVED PAPER.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/1-cs201-mid-term-solved-paper-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
MIDTERM EXAMINATION
Spring 2009
CS201- Introduction to Programming
Question No: 1 ( Marks: 1 ) - Please choose one
A precise sequence of steps to solve a problem is called
► Statement
► Program
► Utility
► Routine
Question No: 2 ( Marks: 1 ) - Please choose one
The Compiler of C language is written in
► Java Language
► UNIX
► FORTRON Language
► C Language
Question No: 3 ( Marks: 1 ) - Please choose one
Initialization of variable at the time of definition is,
► Must
► Necessary
► Good Programming
► None of the given options
Question No: 4 ( Marks: 1 ) - Please choose one
In if structure the block of statements is executed only,
► When the condition is false
► When it contain arithmetic operators
► When it contain logical operators
► When the condition is true
Question No: 5 ( Marks: 1 ) - Please choose one
Which of the following function(s) is/are included in stdlib.h header file?
► double atof(const char *nptr)
► int atoi(const char *nptr)
► char *strcpy ( char *s1, const char *s2)
► 1 and 2 only
Question No: 6 ( Marks: 1 ) - Please choose one
Dealing with structures and functions passing by reference is the most economical method
► True
► False
Question No: 7 ( Marks: 1 ) - Please choose one
Pointer is a variable which store,
► Data
► Memory Address
► Data Type
► Values
Question No: 8 ( Marks: 1 ) - Please choose one
Preprocessor program perform its function before ______ phase takes place.
► Editing
► Linking
► Compiling
► Loading
Question No: 9 ( Marks: 1 ) - Please choose one
Which of the following can not be a variable name?
► area
► _area
► 10area
► area2
Question No: 10 ( Marks: 1 ) - Please choose one
Which looping process is best, when the number of iterations is known?
► for
► while
► do-while
► all looping processes require that the iterations be known
Question No: 11 ( Marks: 1 ) - Please choose one
Which character is inserted at the end of string to indicate the end of string?
► new line
► tab
► null
► carriage return
Question No: 12 ( Marks: 1 ) - Please choose one
How many bytes are occupied by declaring following array of characters?
char str[] = “programming”;
► 10
► 11
► 12
► 13
Question No: 13 ( Marks: 1 ) - Please choose one
Which of the following header file defines the rand() function?
► iostream.h
► conio.h
► stdlib.h
► stdio.h
Question No: 14 ( Marks: 1 ) - Please choose one
Commenting the code _____________________
► Makes a program easy to understand for others.
► Make programs heavy, i.e. more space is needed for executable.
► Makes it difficult to compile
► All of the given options.
Question No: 15 ( Marks: 1 ) - Please choose one
What's wrong with this for loop?
for (int k = 2, k <=12, k++)
► the increment should always be ++k
► the variable must always be the letter i when using a for loop
► there should be a semicolon at the end of the statement
► the commas should be semicolons
Question No: 16 ( Marks: 1 ) - Please choose one
For which array, the size of the array should be one more than the number of elements in an
array?
► int
► double
► float
► char
Question No: 17 ( Marks: 1 )
To Which category of the software “Compiler and Interpreter” belongs?
System Software
Question No: 18 ( Marks: 1 )
What is the result of the expression x = 2 + 3 * 4 – 4 / 2
Question No: 19 ( Marks: 2 )
Write a declaration statement for an array of 10 elements of type float. Include an initialization
statement of the first four elements to 1.0, 2.0, 3.0 and 4.0.
Question No: 20 ( Marks: 3 )
Write down the output of the following code?
int array[7], sum = 0;
for(int i=0;i<7;i++)
{
array[i] = i;
sum+= array[i];
}
cout<< “ Sum = “ <<sum;
What will be the output of the following segment of C++ code?
int A[5] = {1 , 2, 3, 4};
int i;
for (i=0; i<5; i++)
{
A[i] = 2*A[i];
cout << A[i] << " ";
}
Question No: 22 ( Marks: 10 )
Write a C++ program that will determine if a departmental store customer has exceeded the
credit limit on a charge account.
Program should input the following facts in five variables
1. Account number
2. Balance at the beginning of month (Beginning balance)
3. total of all items charged by customer this month (charges)
4. total of all credits (credits)
5. allowed credit limit
Calculate the new balance
New balance = Beginning balance + charges – credits
Determine if new balance exceeds the allowed credit limit. For those customers whose credit
limit is exceeded. The program should display the message “Credit Limit exceeded.”
MID-TERM 2009
Question No: 1 ( Marks: 1 ) - Please choose one
In C/C++ the string constant is enclosed
► In curly braces
► In small braces
► In single quotes
► In double quotes
Question No: 2 ( Marks: 1 ) - Please choose one
The size of int data type is
► 1 bytes
► 2 bytes
► 3 bytes
► 4 bytes
Question No: 3 ( Marks: 1 ) - Please choose one
In Flow chart process is represented by
► Rectangle
► Arrow symbol
► Oval
► Circle
Question No: 4 ( Marks: 1 ) - Please choose one
If the break statement is missed in switch statement then,
► The compiler will give error
► This may cause a logical error
► No effect on program
► Program stops its execution
Question No: 5 ( Marks: 1 ) - Please choose one
When we are using const keyword with a variable x then initializing it at the time of
declaration is,
► Must
► Optional
► Not necessary
► A syntax error
More CS201 files
- 1_CS201 MID TERM SOLVED PAPER.docx (DOC · 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)
- CS201 MID-Term by Attiq Kundi-updated on 15-06-2022.pdf (PDF · Midterm)