In Dr-Racket, which of the following is not necessarily true of a function that takes no arguments?
A) It can result in side effects
B) It might return (void)
C) It might return a value like any other function
D) It has the same result every time it is called, since it has no input arguments to deal with
E) It is called like any other function, i.e. inside parentheses
F) It can result in both side effects and return value
Answer)
In Dr-Racket, the following is valid and necessarily true of a
function which takes no arguments:
D) It has the same result every time it is called since it has no
input arguments to deal with
The functions which have no arguments required to call them are called like any other function in Dr-Racket without the arguments of course. Such functions may return void, may return some value which is also true for other functions as per the function definition and purpose. Such a function can result in side effects and also return some value. But, the result may not be the same every time the function is called since the function can be dependent on other functions, variables and thus this may not be true every time.
**Please Hit Like if you appreciate my answer. For further doubts on the answer please drop a comment, I'll be happy to help. Thanks for posting.**
Get Answers For Free
Most questions answered within 1 hours.