cs201-midterm-solved-mcqs-with-reference-1.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
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- MCQ, 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 cs201-midterm-solved-mcqs-with-reference-1.doc for free?
You can preview and download "cs201-midterm-solved-mcqs-with-reference-1.doc" (CS201 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-midterm-solved-mcqs-with-reference-1-doc-2) 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
2011
CS201- Introduction to Programming
Question No: 1 ( 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: 2 ( Marks: 1 ) - Please choose one
Preprocessor program perform its function before ______ phase takes place.
► Editing
► Linking
► Compiling
► Loading
Question No: 3 ( Marks: 1 ) - Please choose one
If there are 2(n+1) elements in an array then what would be the number of iterations required to
search a number using binary search algorithm?
► n elements
► (n+1) elements
► 2(n+1) elements
► 2(n+1) elements
Question No: 4 ( Marks: 1 ) - Please choose one
Which of the following operator is used to access the value of variable pointed to by a pointer?
► * operator
► -> operator
► && operator
► & operator
Question No: 5 ( Marks: 1 ) - Please choose one
Analysis is the -------------- step in designing a program
► Last
► Middle
► Post Design
► First
Question No: 6 ( Marks: 1 ) - Please choose one_______________
When a pointer is incremented, it actually jumps the number of memory addresses
►According to data type (Pg 160)
►1 byte exactly
►1 bit exactly
►A pointer variable can not be incremented
Question No: 7 ( Marks: 1 ) - Please choose one_____________
Call by reference mechanism should be used in a program when there is
i. large amount of data to be passed
ii. small amount of data to be passed
iii. need to change the passed data
iv. no need to change the passed data
Choose the appropriate option for the above case.
► (i) and (ii) only
►(i) and (iii) only
►(ii) and (iii) only
►(ii) and (iv) only
Question No: 8 ( 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: 9 ( 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: ( Marks: 2 )
A two-dimensional array has 3 rows and 4 columns. Write down the syntax to initialize first element of all three rows of two-dimensional array with value 2.
Ans:
int matrix[0][0]=2
int matrix[1][0]=2
int matrix[2][0]=2
Question No: ( Marks: 2 ) - Please choose one_____________
Explain smart pointer
Question No: ( Marks: 2 )
which standard library we use in programming to read , write files
Question No: ( Marks: 3 )
Identify the errors in the following code segment and give the reason of errors.
main(){
int x = 10
const int *ptr = &x ;
*ptr = 5 ;
}
Ans:
Int x=10….No ending semicolon.
*ptr=5 .. Declaring a pointer to constant integer.You can not use this pointer to change the value being pointed to.
Question No: ( Marks: 3 )
Can you use an assignment operator to assign the value of one C-string to another?
Ans:Yes,we use assignment operator,whenever we use objects that allocate memory it is important that assignment operator should be defined for it,otherwise default operator will copy the value of addressed and pointers.
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)