CS201P Final Term Quiz 12 File 3 July 2023 by Miss Mehwish
- Type
- Final term past paper
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 575 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 5. Download the file for all 5 pages.
We also provide Past papers for Mids. and Finals Cross Check your answers before submitting directly from the file. We are not responsible for 100% correction as human error exists
**MCQ 1:** Question: When overloading the assignment (=) operator, which of the following syntax is correct?
- `void operator (=) const String &other;`
- `void operator = (const String &s);`
- `void operator (=) (const String &s);`
- `void operator (= String &s);`
Correct option: 2) `void operator = (const String &s);`
**MCQ 2:** Question: What is the correct prototype of overloading the delete operator? Options:
- `void *operator delete (size_t, size);`
- `void operator delete (void *ptr);`
- `void *operator delete (size_t size);`
- `new operator delete (void *ptr);`
Correct option: 2) `void operator delete (void *ptr);`
**MCQ 3:** Question: What will be the output of the following code? ```cpp #include <iostream> #include <iomanip> using namespace std;
int main() { int num = 7; cout << setfill('*') << setw(4) << num << endl; return 0;
- `7****`
- `7***`
- `***7`
- `****7`
Correct option: 2) `7***`
**MCQ 4:** Question: Which of the following options returns the state of the end of file? Options:
- `cin.eof();`
- `cin.enof();`
- `cin.endof();`
- `cin.endoffile();`
Correct option: 1) `cin.eof();`
**MCQ 5:** Question: Which one is not the member function of the input stream? Options:
- `cin.read();`
- `cin.get();`
- `get();`
- `cin.getline();`
Correct option: 3) `get();`
**MCQ 6:** Question: In the syntax of the overloaded operator function given below: `Complex operator + (Complex &);` What is ‘operator’?
- Keyword
- Operand
- OperandClass
- Class
Correct option: 1) Keyword
Related CS201P files
All CS201P files →- CS201P Final Term Quiz 8 July 2023 by Miss Mehwish Final term PDF 537 KB
- CS201P Final Term Quiz 10 July 2023 by Miss Mehwish Final term PDF 543 KB
- CS201P Final Term Quiz 7 July 2023 by Miss Mehwish Final term PDF 588 KB
- CS201P Final Term MCQs Spring 2024 Final term PDF 1 MB
- CS201P Final Term Past Papers 2022-23 by VU Stars Final term PDF 3.6 MB
- CS201P Quiz July 8 2025 by Lucky Quiz PDF 367 KB
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.