Answer to Question contract-1

Yes. The contract says just what the function returns and how the parameters affect what it returns.