CS304P Lab Quiz 3 by Iqra Azhar
- Type
- Quiz
- Course
- CS304P Object Oriented Programming (Practical)
- Size
- PDF 426 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 2, 3 of 3. Download the file for all 3 pages.
Which of the following is NOT true about constructor?Select the correct option Constrcutor can be a constant function Constructor does not have return type Constructors are commonly public members Constructor is a special function having the same name as the class name Constrcutor can be a constant function.
Which of the following option is false?Select the correct option Public members are accessible from other classes also Private members can be accessed using friend functions Member functions can be made private Data members can’t be inherited Private members can be accessed using friend functions.
Which of the given option is not correct for destructor?Select the correct option Destructor is used to free the memory allocated through dynamic allocation. Destructor is used to free the memory allocated through new operator. Destructor is a function with the same name as that of class but preceded with a tilde ~Destructor is a function with the same name as that of class, but preceded with a tilde 'void The option that is not correct for a destructor is: Destructor is a function with the same name as that of class, but preceded with a tilde 'void. Which of the following is correct way of declaring the attribute as a public?Select the correct option class Student { public: char *name;}; class Student public: { char *name;}; class Student { char *name;}; class public Student { char *name;}; The correct way of declaring an attribute as public in a class is: *class Student { public: char name;};
Following code is equivalent to which option.class Shape{ string type;};Select the correct option class Shape public: { public: string type; } ;class Shape { private: string type; }; class Shape { protected: string type; }; class Shape { public: string type; }; The given code: class Shape { public: string type; };
Related CS304P files
All CS304P files →- CS304P Final Term General Quiz 3 July 2023 by Miss Mehwish Final term PDF 545 KB
- CS304P Lab Quiz 4 by Iqra Azhar Quiz PDF 650 KB
- CS304P Lab Quiz 5 by VUBuddy Quiz PDF 851 KB
- CS304P Quiz July 3 2025 by Lucky Quiz PDF 167 KB
- CS304P Solved Quizzes 2023 by Prince Alvi Quiz PDF 3.6 MB
- CS304P Lab Quiz 7 by Iqra Azhar Quiz PDF 761 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.