CS201 All term paperz in 1 file (pages 1 to 63) eagle_eye.pdf
Verified academic study resource for CS201 (Introduction to Programming) under the Computer Science at Virtual University of Pakistan. This PDF document (Mega Solved MCQs Question Bank) covers Full Course Curriculum spanning approximately 180 pages across 8 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
- MCQ Bank
- Coverage
- Full Course Curriculum
Cross-verify solutions against official lecture handouts. Practice active recall before checking answers to ensure true concept retention.
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)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- 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 All term paperz in 1 file (pages 1 to 63) eagle_eye.pdf for free?
You can preview and download "CS201 All term paperz in 1 file (pages 1 to 63) eagle_eye.pdf" (CS201 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-all-term-paperz-in-1-file-pages-1-to-63-eagle-eye-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 Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, 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
1
MIDTERM EXAMINATION
Fall 2008
CS201- Introduction to Programming (Session - 2)
Time: 60 min
Marks: 38
Question No: 1 ( Marks: 1 ) - Please choose one
What is the output of the following statement?
int i = 2.5; do { cout i * 2; } while (i > 3 && i < 10);
(a) 510
(b) 5
(c) 48
(d) error
Question No: 2 ( Marks: 1 ) - Please choose one
What does !(7) evaluate to in decimal where ! is a NOT operator?
(a) 7
(b) 8
(c) 9
(d) 10
Question No: 3 ( Marks: 1 ) - Please choose one
The condition in while loop may contain logical expression but not relational expression.
(a) True
(b) False
Question No: 4 ( Marks: 1 ) - Please choose one
Searching is easier when an array is already sorted
(a) True
(b) False
Question No: 5 ( Marks: 1 ) - Please choose one
If an array has 100 elements, what is allowable range of subscripts?
(a) 0 - 99
(b) 1 - 99
(c) 0 - 100
(d) 1 - 100
Question No: 6 ( Marks: 1 ) - Please choose one
What will be the value of ‘a’ and ‘b’ after executing the following statements?
a = 3;
b = a++;
(a) 3, 4
Fantasy.fear@gmail.com
2
(b) 4, 4
(c) 3, 3
(d) 4, 3
Question No: 7 ( Marks: 1 ) - Please choose one
What will be the correct syntax to initialize all elements of two-dimensional array to
value 0?
(a) int arr[2][3] = {0,0} ;
(b) int arr[2][3] = {{0},{0}} ;
(c) int arr[2][3] = {0},{0} ;
(d) int arr[2][3] = {0} ;
Question No: 8 ( Marks: 1 ) - Please choose one
Which of the following function returns the size of a string variable?
(a) strlength()
(b) stringlen()
(c) strlen()
(d) strLength()
Question No: 9 ( Marks: 1 ) - Please choose one
What will be the range of numbers generated by function rand () % 9?
(a) 0 to 9
(b) 1 to 9
(c) 0 to 8
(d) 1 to 8
Question No: 11 ( Marks: 1 ) - Please choose one
Computer can understand only machine language code.
(c) True
(d) False
Question No: 13 ( Marks: 1 ) - Please choose one
What does 5 ^ 6 , evaluate to in decimal where ‘^’ is Exclusive OR operator?
(a) True
(b) False
Detail:-
It mean
5 = 0101
6 = 0110
5^6 = 0011
If both input is same then the output is 0 and if different then output is 1
Question No: 14 ( Marks: 1 ) - Please choose one
If the file is not properly closed in the program, the program ____________.
Fantasy.fear@gmail.com
3
(a) Terminate normally
(b) Indicate Runtime error
(c) Indicate Compile time error
(d) Crashes
Question No: 15 ( Marks: 1 ) - Please choose one
Which of the following header file include string conversion functions?
(a) string.h
(b) stdlib.h
(c) ctype.h
(d) sconvert.h
Question No: 16 ( Marks: 1 ) - Please choose one
In Program commenting the code liberally is
Solution:-
It need to be self-contained and understandable. Comments should be placed liberally.
The comments should explain the logic, not the mechanics. Try to avoid fancy
programming.
Question No: 17 ( Marks: 1 )
Which header file must be included while handling files?
Solution:-
<fstream.h>
Question No: 18 ( Marks: 1 )
What is meant by C++ statement: const int *ptr = &x;
Solution:-
ptr is a pointer to data of type const int type. And to assign the address of x to
pointer ptr
Question No: 19 ( Marks: 2 )
What is a truth Table?
Solution:-
We know the concept of truth table. The truth tables are very important. These are still a
tool available for analyzing logical expressions. We will read logic design in future,
which is actually to do with chips and gate. We find it difficult to evaluate a complicated
logical expression. Sometimes the logic becomes extremely complicated so that even
writing it as a simple syntax statement in any language.
Question No: 20 ( Marks: 3 )
(1) An array day is declared as: int day[] = {1, 2, 3, 4, 5, 6, 7};
How many elements does array 'day' has?
Solution:-
Fantasy.fear@gmail.com
4
7 elements
(2) If the declaration is changed as: int day[7] = {1, 2, 3, 4, 5, 6, 7};
How many elements does array 'day' has?
Solution:-
7 elements
Question No: 21 ( Marks: 5 )
What are similarities and differences between Structures and Unions?
In structures, we have different data members and all of these have their own memory
space. In union, the memory location is same while the first data member is one name for
that memory location. However, the 2nd data member is another name for the same
location and so on. Consider the above union (i.e. intOrChar) that contains an integer and
a character as data members. What will be the size of this union? The answer is the very
simple. The union will be allocated the memory equal to that of the largest size data
member. If the int occupies four bytes on our system and char occupies one byte, the
union intOrChar will occupy four bytes
Question No: 22 ( Marks: 10 )
Write a void function( ); that takes integer numbers from the user and then
displays the sum of odd and even numbers entered by the user. Your program
should terminate if user enters a negative number
Solution:-
#include<iostream.h>
#include<conio.h>
void function(void);
main()
{
function();
getche();
}
void function(void)
{
int n[5];
for(int i=0; i<=5; i++)
{
cout <<"Enter Element = ";
cin >>n[i];
}
cout <<"\nODD Inputs are = \n";
for(int i=0; i<=5; i++)
{
More CS201 files
- 49192415-Almost-300-Solved-MCQs-of-CS201-Introduction-To-Pro (PDF · MCQ Bank)
- CS201 10+ Current Papers 2022 .pdf (PDF · MCQ Bank)
- CS201 10+ Current Papers 2022 .pdf (PDF · MCQ Bank)
- CS201 Current Papers 2018 To 2020.pdf (PDF · MCQ Bank)
- CS201 Current Papers Shared By Students.pdf (PDF · MCQ Bank)
- CS201 Current Papers Shared By Students.pdf (PDF · MCQ Bank)
- CS201 Mcqs Searching File 2021-converted (1).pdf (PDF · MCQ Bank)
- CS201 Mcqs Searching File 2021-converted (1).pdf (PDF · MCQ Bank)