CS304P Final Term General Quiz 3 July 2023 by Miss Mehwish
- Type
- Final term past paper
- Course
- CS304P Object Oriented Programming (Practical)
- Size
- PDF 545 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, 4 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
Q1. Which of the following operator overloading declaration can be used for pre-increment operators implemented as a member function of the class Complex?
Correct option: B) Complex & Complex::operator++(); Complex & Complex::operator++();
Q2. A class that defines the cin and stream extraction operator is called:
Correct option: d) istream
Q3. While operator overloading, the binary operator is always called with reference to the ____________.
Correct option: a) Left-hand argument
- Consider the following program, and choose the most appropriate concept implemented in the following program:
```cpp
public: void findArea() {};
class triangle: public shape { public: void findArea() {};
class circle: public shape { public: void findArea() {};
int main() { triangle t; t.findArea(); circle c; c.findArea();
a) Aggregation
Q6. Consider the following statement. What is the best statement about this line of code: `char & operator()(int);`
Correct option: d) Overloading of () operator
Q7. Suppose c1, c2, and c3 are objects of the Complex class, and we overloaded the + operator. `c3 = c1 + c2;` In this statement, which object will be passed as an argument when the + operator is called?
Correct option: c) c1 and c2
Q8. Which one is the best description of polymorphism?
Correct option: d) It is the ability for a message/data to be processed in more than one form
Related CS304P files
All CS304P files →- CS304P Final Term Graded Quiz 3 by Team Aiza Final term PDF 910 KB
- CS304P Final Term Quiz 9 by Wasi Final term PDF 529 KB
- CS304P Final Term Lab Quiz 8 by Team Aiza Final term PDF 589 KB
- CS304P Final Term Preparation by Qalb-e-Momin Final term PDF 13.8 MB
- CS304P Final Term Quiz 3 by Wasi Final term PDF 656 KB
- CS304P Quiz 10 2023 Quiz PDF 1.7 MB
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.