Skip to content
VUBuddy

CS201 Quiz Jan 2026

Introduction to Programming PDF 15 KBUpdated 23 Oct 2026
Quiz CS201 Quiz Jan 2026 PDF 15 KB
vubuddy.com
Type
Quiz
Course
CS201 Introduction to Programming
Size
PDF 15 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 15 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 3. Download the file for all 3 pages.

VU QUIZ REPORT

Subject: CS201

Quiz Completed: 1/7/2026, 10:18:14 PM Total Questions: 10

Once the _______________ are created, they exist for the life time of the program

A. global variables

B. local variables C. automatic variables D. non static variables

The return type of the overloaded new operator must be?

  1. void (nothing)
  2. object pointer
  3. int pointer
  4. void pointer

Correct answer: void pointer

When the compiler overloads the assignment (=) operator by default then A. Class members are not assigned properly B. Compiler does not allow default assignment operator C. Compiler does member wise assignment. D. Compiler does not do member wise assignment. _______ operators are the ones that require only one operand to work. A. Single B. Binary

C. Unary

D. Unit

What is meaning of bad bit in I/O operation: A. Bad data

B. Error in data

C. Lost data D. Wrong data

Selected Answer: B

What is the sequence of event(s) when deallocating memory of an object using delete operator?

  1. Memory is deallocated first before calling destructor
  2. Only block of memory is deallocated for object
  3. Only destructor is called for object
  4. Destructor is called first before deallocating memory

Correct answer: Destructor is called first before deallocating memory

The only operator that the compiler overloads for user define data type by default is A. Minus (-) operator B. Equal (==) operator C. Plus (+) operator

D. Assignment (=) operator

What happens if new fails to allocate memory in C++?

  1. The program crashes
  2. It returns uninitialized memory
  3. It returns NULL
  4. It throws an exception

Correct answer: It throws an exception

When operator function is implemented as member function then return type of function ________.

A. Can be any data type

B. Must be built-in data type C. Must be an object of same class D. Must be user-defined data type

free function is available in _______________ header file.

A. stdlib.h

B. string.h C. iostream.h D. conio.h

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.