Skip to content
VUBuddy

CS304P Final Term General Quiz 3 July 2023 by Miss Mehwish

Object Oriented Programming (Practical) PDF 545 KBUpdated 23 Oct 2026
Final term past paper CS304P Final Term General Quiz 3 July 2023 by Miss Mehwish PDF 545 KB
vubuddy.com
Type
Final term past paper
Course
CS304P Object Oriented Programming (Practical)
Size
PDF 545 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 545 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, 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?

  1. Complex & operator ++ ();
  2. Complex & Complex::operator++();
  3. None of the given options
  4. Complex && operator ++ ();

Correct option: B) Complex & Complex::operator++(); Complex & Complex::operator++();

Q2. A class that defines the cin and stream extraction operator is called:

  1. kstream
  2. kstreamfstream
  3. ostream
  4. istream

Correct option: d) istream

Q3. While operator overloading, the binary operator is always called with reference to the ____________.

  1. Left-hand argument
  2. Right-hand argument
  3. Pointer argument
  4. Dot operator

Correct option: a) Left-hand argument

  1. 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);`

  1. Overloading of int operator
  2. Overloading of & operator
  3. Overloading of char operator
  4. Overloading of () operator

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?

  1. c1
  2. c2
  3. c1 and c2
  4. c3

Correct option: c) c1 and c2

Q8. Which one is the best description of polymorphism?

  1. None of the given option
  2. It is the ability for undefined message/data to be processed in at least one way
  3. It is the ability for many messages/data to be processed in many ways
  4. It is the ability for a message/data to be processed in more than one form

Correct option: d) It is the ability for a message/data to be processed in more than one form

All CS304P files →
CS304P Object Oriented Programming (Practical) All CS304P 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.