CS201 Midterm MCQs 2020.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
- MCQ, 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 MCQs 2020.pdf for free?
You can preview and download "CS201 Midterm MCQs 2020.pdf" (CS201 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs201-midterm-mcqs-2020-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
CS201
Azi khan
Vu help with me
03126636046
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]
demensional
3. ! ( x < 3 ) means in c++ that
X is greater than 3
4. Which of the following option is correct to compare the declaration of the
function?
---------- (parameter1, parameter2)
{
// code to be executed
}
Void functionNAME
5. Of stream is used for --------
Output file stream
6. By default, the starting index of an arrar 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 before 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 thw following code if the 3rd case is true
Switch (var)
{Case ‘a’;
Cout<<”apple”<<endl;
Mango
14. ----------- character is used to indicate the end of the string.
Null
15. Which of the following is used to perform bit-wise exclusive OR
operation?
|
16. If x = 11, and x % = 3, then value of x will be----
2
17. A variable of character data type occupies ---- bytes in memory.
1
18. Null character is represented by ---- in c ++?
\0
19. In computer system there are mainly ---- type of softwares.
2
20. There is pointer variable named ptr of type float. Which type of variable
address can be store by ptr?
Float
21. A character is stored in the memory in -----
Byte
22. X is an integer variable; what does x++ means,
Add 1 in 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 statements 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 a 2d array, how many columns 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 which are located in different
files.
Linker
31. A character is stored in the memory in ----
Byte
32. Which is not true regarding structure?
We can declare array of structure
33. Mr. ahmad sleeps 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”, Ayesha”};
Cout<< name [0];
Ali
37. The data type before a function name represents its,
Return type
37. The expression ((a+b) = = 10) || ((x+y) = = 20) is true only if?
Either ((a+b) = =) OR ((x + y) = =20) is true
38. = operator is used for ----
Assigning values to variables
39. What is the use of ios::trunc mode?
To truncate an existing file to zero
40. X is an integer variable; what does x ++ means,
Add 1 in x value
41. Structures use ---- allocation.
Heap
42. What will be the size of the following character array?
Char name[] = “adeel”;
6
43. A ---- is an array of characters that can store number of character
specified.
String
44. ----- statement is used to terminate the processing of a particular case
and exit from switch structure.
Break
45. If y = 20 and z = y ++, then the valye of z will be------
2146. If Int a = 17; int b = 3; double c
= a/b; what will be value of
variable c?
5
47. What will be the output of the following code?
String grade [3] = {“a’, “b”, “c”};
Grade[2] = “f”;
Cout<< grade[2];
F
48. Declaration of two-dimensional array of integers having 3 rows and
5 columns is following?
Int arr [3][5];
49. A = a + 1; can be written as ----
A+ = 1;
50. A record is a group of related
Fields
51. What will be the result of arithmetic expression 6+48/4*3?
42
52. ---------- construct is used to execute a set of instructions when a
condition is true and other set when it is false?
If\else
53. If an array has 50 elements, what is allowable range of subscripts?
0 – 49
54. If int a = 50; then the value of a/= 3; will be?
16
55. Which of the following option is/are correct about array?
Only one type of elements can store in an array
56. Whenever some number is added in an array name, it will jump as many
--- as the added number?
Rows
57. --------- returns true if c is a digit or a letter and false otherwise. Int
isalnum(int c)
58. which of the following is the default mode of the opening using of
ofstream class?
Ios::trunc
59. In which language the compiler of c language is written?
C
60. While loop executes at least?
One time
61. String are accessed by variable of type----
Char
62. Which of the following is the correct operator to compare the values of
two variables?
==
63. Not operator is a -----
Single input operator
64. Pointer points to a particular-----
Memory address
65. A function is a block of statements that can be defined once and used---
in the program.
As many times as user wants
66. -------- function is used to find the number of characters in a string?
Strlen()
67. ! = operator is used to check whether the operand on the left-hand side
is------to the operand on the right-hand-side.
Not equal
68. A while loop may execute ----- or more times.
0
69. How we declare an array of integer data whose size is 20 with array
name “count”.
Int count[20];
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)