Which of the following metric does not depend on the programming language used?

2012

Which of the following metric does not depend on the programming language used?

  1. A.

    Line of code

  2. B.

    Function count

  3. C.

    Member of token

  4. D.

    All of the above

Attempted by 89 students.

Show answer & explanation

Correct answer: B

Function count measures logical units rather than syntax, making it consistent across languages. Lines of code and token counts depend heavily on specific grammar rules and formatting styles unique to each language. Thus, function count is the standard metric for evaluating structural complexity independently of implementation details.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor