215k views
5 votes
Which of the following would be considered a good name for a function that converts temperatures from Fahrenheit to Celsius? A. calc B. convert temp C. temp D. myfunction

User BobGneu
by
5.3k points

1 Answer

1 vote

Answer:B) converttemp

Explanation: A good function name should provide an indication of the task carried out by the function.In this case, our task is related to conversion of temperature from one unit to another. So converttemp would represent a good nomenclature for the function and would enable the end user to determine the applicability of the function to his use case.

User Vishnu Mishra
by
6.3k points