Which one of the following statements about functions is TRUE A. A function can change names over the course of a program. B. Code can be added or removed dynamically from a function while the program is running. C. Functions can be called using different names depending on where in the program they are called. D. Two functions can be given identical names as long as their code is identical. E. Two functions in a single program can have different names but contain identical code.

Respuesta :

ijeggs

Answer:

Answer is E

Explanation:

Two functions with identical codes can have the same name in any programming language. Any of the functions can be called to do its job with the appropriate name. While this is allowed and you wont get errors, just be careful not to waste memory and have redundant code

The true statement regarding the function is that the two functions could be the single program.

What are functions?

It means the relationship between the set of input that contains one output each. The function represent the relationship that lies between input where every input should be related to exactly one output. In the case when the function contains the same code so they have similar name for any kind of programming language. Also, the error should be minimized.

Therefore, the option E is correct.

Learn more about function here: https://brainly.com/question/19703259