CS201 Midterm MCQs Set 2 by VU Topper RM
- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 690 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 29. Download the file for all 29 pages.
Q1. Vu-Topper RM (1 marks)
To read command line argument the main() function itself must be given— A. 1
B. 2
C. 3 D. 4
Q2. Vu-Topper RM (1 marks)
eof is used to check for the ________ of file when a file is being read. A. Start
B. End
C. Middle D. Name
Q3. Vu-Topper RM (1 marks)
The ASCHI code of null character is __________.
A. 000
B. 010 C. 111 D. 110
Q4. Vu-Topper RM (1 marks)
__________ contains functions for manipulations of character data.
A. Ctype.h
B. Iostream.h C. String.h D. None of the given
Q5. Vu-Topper RM (1 marks)
At the design phase, we try to break up the problem into __________. A. Small units
B. Functional units
C. Non-functional units D. None of the given
Q6. Vu-Topper RM (1 marks)
From the following; hich one is the correct syntax of an array declaration: array size 5 and it is of float data type?
Correct answer: float name[5];
Q7. Vu-Topper RM (1 marks)
char name [] =" Hello World"; In the above statement, a memory of __________ charaters will be allocated. A. 13 B. 11
C. 12
D. 10
Q8. Vu-Topper RM (1 marks)
Each array declaration must provide the information about all these things expect __________. A. Name of the array B. Type of data stored in the array
C. The location of the first element to be stored
D. Number of elements of the array
Q9. Vu-Topper RM (1 marks)
When we access a multidimensional array, each array index is surrounded by __________. A. Single quotes '' B. Double quotes ""
C. Brackets []
D. Commas ,,
Q10. Vu-Topper RM (1 marks)
In the case of pointer to pointer or __________, the first pointer contains the address of the second pointer, which contains the address of the variable, which contains the desired value. A. Different B. Float and double C. Single dereference
D. Double dereference Page 175
Q11. Vu-Topper RM (1 marks)
Whenever some number is added in an array name, it will jump as many __________ as the added number.
A. Rows
B. Value C. Column D. None of the given
Q12. Vu-Topper RM (1 marks)
The statement cout << yptr will show the __________the yptr points to. A. Value B. Variable C. None of given
D. Memory Address
Q13. Vu-Topper RM (1 marks)
char **argv can be read as__________________.
A. Pointer to Pimter B. Pointer to Char
C. Pointer to Pointer to Char Page 177
D. None of given
Related CS201 files
All CS201 files →- CS201 Midterm Mega File by Adil Alvi Midterm PDF 10.6 MB
- CS201 Midterm Solved File 2 by Team Hadi Midterm PDF 4.2 MB
- CS201 Midterm Solved File 7 by Team Hadi Midterm PDF 14.4 MB
- CS201 Midterm Solved File 6 by Team Hadi Midterm PDF 5.8 MB
- CS201 Midterm Highlighted Handouts by VU Topper RM Highlighted PDF 2.1 MB
- CS201 Short Notes Best Way to Pass Quiz PDF 120 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.