Skip to content
VUBuddy

CS201P Quiz Jan 2026

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

VU QUIZ REPORT

Subject: CS201P

Quiz Completed: 1/7/2026, 10:23:41 PM Total Questions: 20

The data members that are visible only from inside the class and hidden from the outside known as. A. Public B. Private and Public C. Friend

D. Private

Data encapsulation can be achieved through ________. A. Structures B. Arrays C. Pointers

D. Classes

What is the correct prototype of overloading of delete operator?

  1. void * operator delete ( size_t, size ) ;
  2. new operator delete ( void * ptr);
  3. void operator delete ( void * ptr) ;
  4. void * operator delete ( size_t size ) ;

Correct answer: void operator delete ( void * ptr) ;

What is the output of this program? #include < iostream > using namespace std; main () { int num; cout << " Please enter an integer value: "; cin >> num + 4; }

A. Error

B. Add number+4 C. 4 D. 4+1

How many objects are created for the class Date? Date myDates[10] ; A. 0

B. 10

C. 1 D. 5

Memory allocated at run time is a system resource, and it is the responsibility of the _____ to deallocate this memory.

A. Programmer

B. Garbage collector C. Compiler D. Destructor

If the memory in the free store is not sufficient enough to fulfill the request, malloc () function returns ________.

A. NULL

B. 1 C. 0 D. -1 Which of the following operator cannot be overloaded in C++ language? A. ++

B. sizeof

C. || D. --

Which one is not the member function of input stream?

  1. cin.read();
  2. get();
  3. cin.get();
  4. cin.getline();

Correct answer: get();

Correct syntax of the prototype of the overloaded operator function is _____________. A. return type operator-symbol operator (parameter); B. operator operator-symbol return type ( no parameter);

C. return-type operator operator-symbol (parameter-list);

D. return type operator (operator-symbol)

Which of the following option returns the state of end of file?

  1. cin.enof();
  2. cin.eof();
  3. cin.endof();
  4. cin.endoffile();

Correct answer: cin.eof();

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.