A function is a named collection of lines of code that can be 'called' (reused) whenever needed in a program.
Which of the following statements is FALSE?
TRUE. If the same actions are repeated many times in a program, then you should create a
function to carry out those actions and use the function when needed.
If there is an error in the actions, you only need to correct it once - in the function.
TRUE in principle as there is extra overhead involved by the computer making use of the function.
In practice some programming languages can optimise function use so that this effect is negligible.
Even if function use did result in marginally slower programs, the benefits outweigh this.