112k views
2 votes
When computing costs, metrics determined from the number of lines of code is unreliable?

1) True
2) False

User Mackworth
by
7.7k points

1 Answer

4 votes

Final answer:

Metrics determined from the number of lines of code are unreliable for computing costs.

Step-by-step explanation:

The statement that metrics determined from the number of lines of code are unreliable is true.

The number of lines of code can vary depending on coding style, language syntax, and other factors. Therefore, using it as a metric for computing costs can lead to inaccurate results. It is more reliable to use other metrics such as estimating the effort required, complexity of the code, or the number of functionality points.

For example, two programs that perform the same function may have different numbers of lines of code due to different coding styles. However, the costs involved in developing and maintaining these programs may be similar or even different in unexpected ways.

User Mihayl
by
7.5k points