Skip to content
VUBuddy

CS201 Midterm Preparation Part 1 by Muhammad

Introduction to Programming PDF 1.6 MBUpdated 23 Oct 2026
Midterm past paper CS201 Midterm Preparation Part 1 by Muhammad PDF 1.6 MB
vubuddy.com
Type
Midterm past paper
Course
CS201 Introduction to Programming
Size
PDF 1.6 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.6 MB

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 77. Download the file for all 77 pages.

  1. 0
  2. 1

3. 2

4. 3

  1. In C++, a variable can be declared anywhere in the program this will increase ________.

1. writability · 2. readability · 3. portability · 4. efficiency

  1. In Flow Chart, flow of control is represented by ________.

1. Rectangle

  1. Circle
  2. Diamomd

4. Arrow

  1. The only operator that the compiler overloads for user define data type by default is

1. Plus (+) operator · 2. MInus (-) operator · 3. Assignment (=) operator · 4. Equal (==) operator

  1. Once we have defined a symbolic constant value using #define, that value ________ during program execution

1. can be changed

2. cannot be changed

  1. varies

4. becomes zero

  1. The function write() takes ________ as parameter(s).

1. String of pointer type

2. String of variable lengths, no. of bytes to be read and flags

3. Poimter array of characters and a delimiter

4. String and no. of bytes to be written

  1. ________ will be used for enclosing function statements into a block.
  2. " "
  3. ()
  4. []

4. {}

8. What will be the result of the expression k = ++m; if initially k = 0 and m = 4?

  1. 0

2. 5 · 3. 6 · 4. 4

9. What will be the correct syntax for initialization of a pointer ptr with string "programming"?

1. char ptr = 'programming'; · 2. char *ptr = "programming"; · 3. char *ptr = 'programming'; · 4. *ptr = "programming";

10. < and > both are ________ operators.

1. Arithmetic

2. Relational

  1. Logical

4. Mathematical

11. ________ are not available in C language.

1. User defned functions · 2. Built in functions · 3. Library functions · 4. Inline functions

12. How many bytes an integer type pointer intPtr will jump in memory if the statement below is executed? intPtr += 2 ;

  1. 2
  2. 4

3. 8

4. 12

13. ostream is a ________ operator.

1. dependent

  1. member

3. standalone

14. ________ variables are those that are defined outside of main.

15. ________ will return the number of bytes reserved for a variable or data type.

1. sizeof operator · 2. free operator · 3. void pointer · 4. new operator

16. What will be the output of the following c++ code? #include<iostream.h> #define max 100 main() 4.

None of the given

1.

Local

2.

Dynamic

3.

Globa

l

4.

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.