- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 26 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
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?
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?
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?
Correct answer: cin.eof();
Related CS201P files
All CS201P files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.