Answer:
The answer to the given question is option "B".
Step-by-step explanation:
In the question it is given that there is a method name is "displayValue()" is defined in this method we pass an integer variable that is "value" and in this method, we calculate some values, and call this method So, the correct code for calling this method is the option "B" and others options are not correct that can be described as:
- In option, A Calling time of the function we do not use the return type, That's why this option is not correct.
- In option, C Calling time of the function we do not pass any data type of variable, That's why this option is not correct.
- In option, D we do not use semicolon in the function call, which is wrong.
That's why option "B" is correct.