CS201-Midterm-Grand-Solved-Quiz-2.docx
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
- 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-Grand-Solved-Quiz-2.docx for free?
You can preview and download "CS201-Midterm-Grand-Solved-Quiz-2.docx" (CS201 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-midterm-grand-solved-quiz-2-docx) 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
CS201 Midterm Solved Grand Quiz Spring 2021
1. ——- is used for input file or for reading from the file
Tellg()
2. Following is the declaration a —- array int arr[2][2][2];
3-dimensional
3. !(x<3)mean in C++ that
X is greater than 3
4. Which of the following option is correct to complete the declaration of the function —-(parameter1, parameter2) {
//code to be executed}
Void function name
5. Of stream is used for
Output file stream
6. By default the starting index of an array in C++ is—
0
7. How we declare an array of integer data whose size is 20 with array name count
Int count[20];
8. Which of the following is a reserve word for data types in C/C++
Int
9. C was developed with the help of— language
BCPL and B
10. An object of— class can be created for saving the current position of any opened file befor reading from the file
Streampos
11. C++is a — language
High level
12. In while loop the loop counter is initialized at—
Before entering the loop
13. What is the output of the following code if the 3rd case is ture
Switch(var)
{
Case “a”;
Cout<<”apple”<<endl;
}
Mango
14. — character is used to indicate the end of the string
Null
15. Which one of the following is used to perform bit wise exclusive or operation
|
16. If x=11, and x%=3, than values of x will be
2
17. A variable of character data type occupies — bytes in memory
1
18. Null character is represented by — C++
\0
19. In computer system there are mainly — type of software
2
20. There is a pointer variable named ptr of type float which type of variable address can be stored by ptr
Float
21. A character is stored in the memory in—
Byte
22. X is a integer variable what does X++ means
Add 1 X value
23. When we call a function its control
Transfers to its definition
24. “\0” takes — space in the memory
1 Byte
25. —- will be used for enclosing function statement into a block
{}
26. How can we declare an array of characters whose size is 12 with array name “country”
Char country[12];
27. Following is the declaration of 2D array how many column are declared for this array int arr[3][2];
2
28. If we assign 2.06721 to an integer variable x, what will be the output if we print x using cout<<statement
2
29. We can access a global variable—
From anywhere in the program
30. We use — to include all those functions in our program which are located in different files
Linker
31. A character is stored in a memory in —
Byte
32. Which is not true regarding structures
We can declare array of structure
33. Mr .Ahmad sleep thirty hours every day .this sentence is—
Grammatically correct but illogical
34. — will explain the function of a program
Comments
35. Char**argv can be read as—
Pointer to pointer to char
36. What will be output of the following code
String name[4]={“ali”,”bilal”,”omer”,”ayeshan”};
Cout<,name[0];
Ali
39. !(x>3)means is in C++ that
X is less than 3
40. The data type before a function name represents its
Return type
40. The expression((a+b)==10))||((x+y)==20)is true only if
Either ((a+b)==10) OR ((x+y)==20)is true
41. We have opened a file stream my file for reading (getting) myfile tellg() given us the current get position of file pointer it returns a whole number of type—
Long
42. = operator is used for—
Assigning values to variables
43. What is the use of is::trunk mode
To truncate an existing file to zero
44. Structures use—- allocation
Heap
45. Void myclass()
{ cout<<”I am student of BCSC.\n;}
Void my class2()
{ cout<<”I am student of BSIT.\n”;}
Int main()
{ my class2();
My clas();}
I am student of BSIT I am student of BSCS
46. What will be the size of the following character array
Char name[]=”Adeel”;
6
47. A— is an array of characters that can store number of character specified
StringMore 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)