Skip to content
VUBuddy

CS201P Quiz 4 by HB

Introduction to Programming (Practical) PDF 461 KBUpdated 23 Oct 2026
Quiz CS201P Quiz 4 by HB PDF 461 KB
vubuddy.com
Type
Quiz
Course
CS201P Introduction to Programming (Practical)
Size
PDF 461 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 461 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 6. Download the file for all 6 pages.

What is the correct prototype of overloading of delete operator?

void * operator delete ( size_t size ) ; · b. void operator delete ( void * ptr) ; (HB) · c. void * operator delete ( size_t, size ) ; · d. new operator delete ( void * ptr);

Which of the following is assignment operator?

= (HB)

calloc() functions allocates multiple blocks of memory and each block have _______?

Different size · Same size (HB) · Same length · Different length · if (day == daysOfMonth ( *this ) ) · In above code, *this refers to: · Today Date and Time · Current Object (HB) · Any Object · Current Class · What will be out put of following code: · #include <iomanip> · main () · int num=7;

cout << setfill('*') << setw(4) << num << endl;

7*** · ****7 (HB) · 7**** · ***7

How many objects are initializing in this statement of code:

Date myDate [10] = { Date(09, 03, 1970), Date(08, 23, 1974) }

2 (HB)

Data encapsulation can be achieved through ________. Structures

Arrays · Pointers · Classes (HB)

Which of the following options not a source of the output stream?

region in the memory · screen · simple variable (HB) · file

All CS201P files →
CS201P Introduction to Programming (Practical) All CS201P 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.