- Type
- Midterm past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 317 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 17. Download the file for all 17 pages.
Q1. Vu-Topper RM (1 marks)
What will be the size of the array declared as int array[1000];
1001
Q2. Vu-Topper RM (1 marks)
Suppose that an integer type contains a memory address 0x22f220. What will be the new memory address if we increment this pointer by one?
0x22f223
0x22f224
Q3. Vu-Topper RM (1 marks)
We use __________ to open a file or stream for extraction.
in
out
Q4. Vu-Topper RM (1 marks)
Whenever some number is added in an array name, it will jump as many __________ as the added number.
rows
value
Q5. Vu-Topper RM (1 marks)
From following; which one is the correct syntax of an array initialize: Array size is 10 and it is of double data type to value 0?
arr[10]={0.0};
double arr[10]={0.0};
Q6. Vu-Topper RM (1 marks)
An object of __________ class can be created of saving the current position of any opened file before reading from the file.
Streampos
Q7. Vu-Topper RM (1 marks)
What will be the size of the following character array?
char name[]=" Adeel";
Q8. Vu-Topper RM (1 marks)
We can say that a pointer is a variable that hold the __________ address.
memory
Q9. Vu-Topper RM (1 marks)
Q10. Vu-Topper RM (1 marks)
1 byte
Q11. Vu-Topper RM (1 marks)
dereferencing operator is represented by _______
Q12. 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.
double dereference (page 175)
Single dereference
Q13. Vu-Topper RM (1 marks)
In_________, we try to have a precise problem statement
Analysis
Design
Q14. Vu-Topper RM (1 marks)
suppose we have int y[10]; To access the 4th element of the array we write_______ y[4]; y[3];
Q15. Vu-Topper RM (1 marks)
From the following; which one is the range of Random number generator function rand()?
0 – 32767 1 – 32767
Q16. Vu-Topper RM (1 marks)
The string in the array is terminated by a_____ null one
Q17. Vu-Topper RM (1 marks)
In C/C++; by default arguments are passed by_____to a function. Reference Value
Q18. Vu-Topper RM (1 marks)
_______Keyword is used to return some value from a function. break return
Q19. Vu-Topper RM (1 marks)
Which of the function call is call by value for the following function prototype? float add(int); add(&x); add(x);
Q20. Vu-Topper RM (1 marks)
The increment of a pointer depends on its_________. variable data type
Q21. Vu-Topper RM (1 marks)
The ASCHI code of null character is_________
Q22. Vu-Topper RM (1 marks)
Pointers are a special type of __________in which a memory address is stored variables Location
Q23. Vu-Topper RM (1 marks)
Transpose of a matrix means that when we interchange rows and columns_____________ the first row becomes the Last column the first row becomes the first column
Q24. Vu-Topper RM (1 marks)
Pointers store the ____________________ value of a variable memory address
Related CS201 files
All CS201 files →- CS201 Midterm Short Questions Updated Midterm PDF 304 KB
- CS201 Midterm Solved MCQs Updated Midterm PDF 437 KB
- CS201 Midterm Past Paper 2 Midterm PDF 437 KB
- CS201 Midterm Short Notes Set 2 Midterm PDF 472 KB
- CS201 Official Handouts Official handout PDF 14.6 MB Free
- CS201 Quiz 3 Set 2 by VU Topper RM Quiz PDF 257 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.