adplus-dvertising
frame-decoration

Question

What is the main drawback of using the number of lines of code as a complexity metric?

a.

It's difficult to compare programs written in different languages

b.

It's hard to compare different pieces of software

c.

It's subjective

d.

Both a and b

Posted under Software Engineering

Answer: (d).Both a and b Explanation:There are two main objections to the direct use of the number of lines of code as a complexity metric. One is that it makes it hard to compare different pieces of software due to differences in verbosity of different programmers. The other is that it makes it hard to compare programs written in different languages.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the main drawback of using the number of lines of code as a complexity metric?

Similar Questions

Discover Related MCQs

Q. What is Halstead's work known for?

Q. What is the second class of intra-modular complexity metrics based on?

Q. What is the complexity metric based on the use of data structures concerned with?

Q. What is the best-known complexity metric from the class of structure-based complexity metrics?

Q. What does McCabe base his complexity metric on?

Q. What is the formula for McCabe's cyclomatic complexity?

Q. What does the cyclomatic complexity of a program depict?

Q. What is the suggested limit of cyclomatic complexity by McCabe?

Q. What is the purpose of McCabe's cyclomatic complexity metric during testing?

Q. What do complexity metrics like those of Halstead and McCabe measure?

Q. What is the purpose of complexity metrics like McCabe's, Halstead's and others?

Q. What is the problem with the known complexity metrics?

Q. What is the 'representation condition' In terms of measurement theory?

Q. Can a higher value of complexity metric necessarily mean that a program is more complex?

Q. What is the recommendation for the use of complexity metrics?

Q. What do validations of software science and cyclomatic complexity indicate?

Q. Why is the length of a program (number of lines of code) often used as an indicator of complexity?

Q. What does the graph depict in the design process of a set of modules and their mutual dependencies?

Q. What is the purpose of knowing the intermodule relations in a design process?

Q. What is the information flow between modules restricted to in a proper design?