Skip to content
VUBuddy

CS201 Final Term MCQs and Short Notes 2023 by Learning Zone

Introduction to Programming PDF 279 KBUpdated 23 Oct 2026
Final term past paper CS201 Final Term MCQs and Short Notes 2023 by Learning Zone PDF 279 KB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 279 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 279 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 25. Download the file for all 25 pages.

MCQS

  1. For binary member operators, operands on the drives (calls) the operation.
  2. Left
  3. Right
  4. Both left and right
  5. None of the given

2. We cannot increment

  1. pointers
  2. arrays
  3. references
  4. variables

3. We can

pointer.

  1. increment
  2. decrement
  3. reassign
  4. all of the given

4. We can

references.

  1. increment
  2. decrement
  3. reassign
  4. None of the given

5. What will be the correct syntax for the following function call? float add (int &);

  1. add(int x);
  2. add(&x);
  3. add(x);
  4. add(*x);

6. An instance of a class is called

  1. structure
  2. data type
  3. object
  4. member function

7. The

  1. destructor
  2. constructor
  3. main program
  4. default constructor

8. The destructor is used to

  1. allocate memory
  2. deallocate memory
  3. create objects
  4. allocate static memory

9. data isn't accessible by non-member functions or outside classes.

  1. Public
  2. private
  3. Static
  4. Globally declared

10. Member functions of the class

  1. are not accessible
  2. are accessible from
  3. are defined within the
  4. are private to

11. Overloading means :

  1. Using the same name to perform multiple tasks or different tasks depending on the situation.
  2. Using the different name to perform multiple tasks or different tasks depending on the situation
  3. Using the same name to perform multiple tasks or same tasks depending on the situation
  4. Using the same name to perform difficult tasks or complex tasks and it does not depend on the situation

12. The main advantage of function overloading is

  1. The program becomes portable
  2. The program becomes complex
  3. The function becomes inline
  4. The program becomes more readable

13. You cannot overload the

operator.

  1. ? :
  2. *
  3. /
  4. ++

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

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

15. Memory allocated from heap or free store

  1. can be returned back to the system automatically
  2. can be allocated to classes only
  3. cannot be returned back unless freed explicitly using malloc and realloc
  4. cannot be returned back unless freed explicitly using free and delete operators

16. We cannot use

pointer for storing and reading data from it.

  1. 'NULL
  2. integer
  3. double
  4. zero

17. The dynamic memory allocation uses

whereas static memory allocation uses

  1. heap , stack
  2. stack , lists
  3. array , stack
  4. classes , array

Q18. What will be the output of the given code?

#include #define MAX( A, B ) ((A) > (B) ? (A) : (B)) void main() {

int i, x, y; · x = 23; · y = 45; · i = MAX( x++, y++ );

// Side-effect: // larger value incremented twice cout << "x = " << x << " y = " << y << '\n';

  1. x=23 y=45
  2. x=24 y=46
  3. x=24 y=47
  4. x=22 y=47

19. NULL has been defined in

  1. Iostream.h
  2. Stdlib.h
  3. Stdio.h
  4. String.h

20. Symbolic constant PI can be defined as:

  1. #define PI 3.14 ;
  2. #define PI 3.14
  3. #define PI=3.14
  4. # include pi= 3.14

21. The friend function of a class can have access _

  1. to the public data members only
  2. to the private data members
  3. to the protected data members
  4. to the main program

22. C++ was developed by

  1. Charles Babbage
  2. Graham Bell
  3. Bejarne Stroustrup
  4. Von Nuemann

23. Once the

are created, they exist for the life time of the program.

  1. local variables
  2. non static variables
  3. static variables
  4. automatic variables

24. Encapsulation means

  1. that the data of a class cannot be accessed from outside
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.