Skip to content
VUBuddy

CS201 MCQs by Izhar

Introduction to Programming PDF 606 KBUpdated 23 Oct 2026
MCQs CS201 MCQs by Izhar PDF 606 KB
vubuddy.com
Type
MCQs
Course
CS201 Introduction to Programming
Size
PDF 606 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 606 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 1, 2, 3 of 48. Download the file for all 48 pages.

  1. How many times the following loop will execute? int j = 3; while(j > 0) { cout << " Statements" << endl; j -= 2; }
  2. 0
  3. 1
  4. 2
  5. 3
  6. In C++, a variable can be declared anywhere in the program this will increase ________.
  7. writability
  8. readability
  9. portability
  10. efficiency

3. In Flow Chart, flow of control is represented by

  1. Rectangle
  2. Circle
  3. Diamomd
  4. Arrow

4. 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
  5. Once we have defined a symbolic constant value using #define, that value ________ during program execution
  6. can be changed
  7. cannot be changed
  8. varies
  9. becomes zero
  10. The function write() takes ________ as parameter(s).
  11. String of pointer type
  12. String of variable lengths, no. of bytes to be read and flags
  13. Poimter array of characters and a delimiter
  14. String and no. of bytes to be written
  15. ________ will be used for enclosing function statements into a block.
  16. " "
  17. ()
  18. []
  19. {}

Q8. 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

Q9. 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
  3. 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
  2. member
  3. standalone
  4. None of the given

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

  1. Local
  2. Dynamic
  3. Global
  4. Static

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.

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.