CS201P Lab Quiz 11 by Iqra Azhar
- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 571 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 page 2 of 3. Download the file for all 3 pages.
When overloading assignment (=) operator, which of the following syntax is correct?Select the correct option void operator (=) const String &other ; void operator = ( const String &s ); void operator (=) ( const String &s ); void operator (= String &s ); void operator=(const String &other); if (day == daysOfMonth ( *this ) ) { }In above code, *this refers to:Select the correct option Any Object Current Class Current Object Today Date and Time Current Object Correct syntax of the prototype of the overloaded operator function is _____________.Select the correct option return type operator-symbol operator (parameter); operator operator-symbol return type ( no parameter); return-type operator operator-symbol (parameter-list); return type operator (operator-symbol) return-type operator-symbol (parameter-list); Bool data type takes ______ values. Select the correct option
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.