Skip to content
VUBuddy

CS201 Final Term MCQs by Sparrows

Introduction to Programming PDF 1.1 MBUpdated 23 Oct 2026
Final term past paper CS201 Final Term MCQs by Sparrows PDF 1.1 MB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 1.1 MB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 1.1 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 1, 2, 3 of 39. Download the file for all 39 pages.

CS201 by Sparrow · Final Term · Fall 2021-2022

Q1. All A template function must have at least ______ generic data type

  1. Zero
  2. One
  3. Two
  4. Three

Correct answer: One

Q2. Which one of the following is the declaration of overloaded pre-increment operator implemented as member function?

  1. Class-name operator + ();
  2. Class-name operator + (int);
  3. Class-name operator ++ ();
  4. Class-name operator ++ (int);

Correct answer: Class-name operator ++ ();

Q3. Class is a user defined ______.

  1. Data type
  2. Memory referee
  3. Value
  4. None of the given options

Correct answer: Data type

Q4. How many bytes will the pointer intPtr of type int move in the following statement? intPtr += 3 ;

  1. Bytes
  2. 6 bytes
  3. 12 bytes
  4. 24 bytes

Correct answer: 12 bytes

Q5. A Pointer is a special variable that contain

  1. Data values
  2. Memory Address
  3. Both data and values
  4. None of the given option

Correct answer: Memory Address

Q6. Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?

  1. new int(10) ;
  2. new int[10] ;
  3. int new(10) ;
  4. int new[10];

Correct answer: new int[10] ;

Q7. Reference Value Type Data The code is written to ____ the program.

  1. Implement
  2. Design
  3. Analysis
  4. None of the given options

Correct answer: Implement

Q8. Operator overloading can be performed through _____.

  1. Classes
  2. Function
  3. Operators
  4. Reference

Correct answer: Function

Q9. When a value is referred by a normal variable then it is known as,

  1. Direct Reference
  2. Indirect Reference
  3. Partial Reference
  4. Proper Reference

Correct answer: Direct Reference

10. Which of the following function is used to increase the size of already allocated

memory chunk?

  1. Malloc
  2. Calloc
  3. realloc
  4. free

Correct answer: realloc

Q11. Which of the following is NOT a preprocessor directive?

  1. #error
  2. #define
  3. #line
  4. #ndefine

Correct answer: #ndefine

Q12. The stream objects cin and cout are included in which header file?

  1. iostream.h
  2. fstream.h
  3. istream.h
  4. ostream.h

Correct answer: iostream.h

Q13. Overloaded delete operator function takes the same parameter as an argument returned by new operator function.

  1. True
  2. False

Correct answer: True

Q14. Static variable which is defined in a function is initialized

  1. Only once during its life time
  2. Compile time of the program
  3. None of the above

Correct answer: Only once during its life time

Q15. When memory for a program is allocated at run time then it is called

  1. static memory allocation
  2. dynamic memory allocation

Correct answer: dynamic memory allocation

Q16. When an array of object is created dynamically then there is no way to provide parameterized constructors for array of objects.

  1. True
  2. False

Correct answer: True

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.