CS201_MID_SPRING2006.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
- 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_MID_SPRING2006.pdf for free?
You can preview and download "CS201_MID_SPRING2006.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-mid-spring2006-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
www.VUPages.com
CS201 Introduction to Programming
Mid Term Examination – Spring 2006
Time Allowed: 90 Minutes
Please read the following instructions carefully before
attempting any of the questions:
1. Attempt all questions. Marks are written adjacent to each
question.
2. Do not ask any questions about the contents of this
examination from anyone.
a. If you think that there is something wrong with any of the
questions, attempt it to the best of your understanding.
b. If you believe that some essential piece of information is
missing, make an appropriate assumption and use it to solve
the problem.
c. Write all steps, missing steps may lead to deduction of
marks.
d. All coding questions should be answered using the C ++
syntax.
You are allowed to use the Dev-C++ compiler to write and test
your code. If you do so please remember to copy and paste your
code into the examination solution area. (Do NOT share your
code; your colleague could get higher marks than you!!)
**WARNING: Please note that Virtual University takes serious note of
unfair means. Anyone found involved in cheating will get an `F` grade in
this course.
Question No. 1 Marks : 10
Write the function definitions for the following:
a) A function test() that would take three integer values x, y and z (as
parameters), find the largest and return the result to the calling function.
b) A function sum() that would take the one integer array myArray[ ] of size 10
(as parameter), calculate the sum of the elements of myArray[ ] and display
the result.
Note: The function sum() returns no value.
Question No. 2 Marks : 6
Write a program that will create and display the following series:
65, 44, 27, 14, 5, 0, -1, 2, 9, 20.
Hint:
The series is created by the formula 2x2 – 3x
for x=-5 to 4
The variable x is of type integer.
Question No. 3 Marks : 2
The value of 2*15/3*7+3*2 is
146
76
8
70
Question No. 4 Marks : 2
Carefully analyze the following lines of code and chose the correct option.
ch1=”a”;
ch2=’a’;
ch1 and ch2 are strings
ch1 is string and ch2 is character
ch2 is string and ch1 is character
ch1 and ch2 are characters
Question No. 5 Marks : 2
The size of a double variable is
2 bytes
4 bytes
8 bytes
10 bytes
Question No. 6 Marks : 2
An array is also called
an array variable
array declaration
struct
constant pointer
Question No. 7 Marks : 10
What will be the output of the following programs?
a) Program1
#include <iostream>
int main()
{
unsigned short x = 1;
for (int i = 0; i < 10; i++)
{
cout << x << endl;
x = x << 1;
}
return 0;
}
b) Program2
#include <iostream.h>
int main()
{
unsigned short x = 1024;
while(x>=1)
{
cout <<x << endl;
x =x >> 1;
}
return 0;
}
Question No. 8 Marks : 6
Calculate the following expressions for
x=3 and y=2
1) ++x++*++y
2) 3*++x+--y
3) ++x*4*++y
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)