7 years ago
in C++ Functions
Overall Stats
Attempted
96
Correct
27
Incorrect
23
Viewed
46
Answers
Fahima Irwan -
4 days ago
Fahima Irwan is saying Static member functions is correct answer
Blank OP -
4 years ago
Blank OP from Bacolod City, Philippines is saying Constant member functions is correct answer
swathi -
4 years ago
swathi from Chennai, India is saying Static member functions is correct answer
Rohan Bhosale -
4 years ago
Rohan Bhosale from Pune, India is saying Constant member functions is correct answer
Rohan Bhosale -
4 years ago
Rohan Bhosale from Pune, India is saying Constant member functions is correct answer
Related Questions
A friend function
- [A] is declared as a friend & defined elsewhere in the program
- [B] is always an inline function
- [C] created objects without initialization
- [D] May be a static member function of the class
Which of the following parameter passing mechanism is/are supported by C++ but not in C?
- [A] Pass by value
- [B] Pass by reference
- [C] Pass by value result
- [D] All of the above
Which of the following function declaration is/are incorrect?
- [A] int Sum(int a, int b = 2, int c = 3);
- [B] int Sum(int a = 5, int b);
- [C] int Sum(int a = 0, int b, int c = 3);
- [D] Both B and C are incorrect.
- [E] All are correct.
Which of the following statement is correct?
- [A] Constructors can have default parameters.
- [B] Constructors cannot have default parameters.
- [C] Constructors cannot have more than one default parameter.
- [D] Constructors can have at most five default parameters.
Static Member function
- [A] can access any other member function & member variables
- [B] can access only static member variables & member functions
- [C] can be only called through object of the class
- [D] Returns only static data