CS304P Lab Quiz 4 by Iqra Azhar
- Type
- Quiz
- Course
- CS304P Object Oriented Programming (Practical)
- Size
- PDF 650 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 best defines static data members of a class?Select the correct option Data member which is allocated for each object separately Data member with global scope Data member which is common to all the objects of a class Data member which is common to all the classes in a program
We make any function constant by using __________________________.Select the correct optionkeyword const is placed after the Return Type of the function declaration.keyword const is placed within the parameter list.keyword const is placed at the beginning of the function declaration. keyword const is placed after the parameter list. Which statement is not true for static member functions?Select the correct option Access mechanism for static member functions is same as that of static data members. They cannot access any non-static members .They are capable to access static as well as non-static member functions. They are used to access static data members.
Which of the following statement is used to return a reference of the current object from a member function?
return this; return *currentObject; return &this ;return *this;
Which of the following choice is not true for const functions?
Modification in the state of any object is caught at compile time They are just “read-only”Modification in the state of any object is caught at run time Constant member functions cannot modify the state of any object Modification in the state of any object is caught at run time.
Related CS304P files
All CS304P 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.