Skip to content
VUBuddy

CS201 Midterm MCQs by VU Topper RM

Introduction to Programming PDF 317 KBUpdated 23 Oct 2026
Midterm past paper CS201 Midterm MCQs by VU Topper RM PDF 317 KB
vubuddy.com
Type
Midterm past paper
Course
CS201 Introduction to Programming
Size
PDF 317 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 317 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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

All CS201 files →
CS201 Introduction to Programming All CS201 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.