Advertisements
Advertisements
Question
A method which does not modify the value of variables is termed as ______.
Options
Impure method
Pure method
Primitive method
User defined method
MCQ
Fill in the Blanks
Solution
A method which does not modify the value of variables is termed as Pure method.
shaalaa.com
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Write a method prototype name check() which takes an integer argument and returns a char:
The number of values that a method can return is ______.
Method prototype for the method compute which accepts two integer arguments and returns true/false.
Assertion(A): An argument is a value that is passed to a method when it is called.
Reason(R): Variables which are declared in a method prototype to receive values are called actual parameters.