Which design matric is used to measure the compactness of the program in terms…

2015

Which design matric is used to measure the compactness of the program in terms of lines of code ?

  1. A.

    Consistency

  2. B.

    Conciseness

  3. C.

    Efficiency

  4. D.

    Accuracy

Attempted by 237 students.

Show answer & explanation

Correct answer: B

Answer: Conciseness

Conciseness measures how compact a program is, typically in terms of lines of code (LOC) or the number of statements required to implement the same functionality.

  • How to interpret: Lower LOC for the same functionality indicates greater conciseness. However, very low LOC can hurt readability and maintainability.

  • Common measurement: count logical lines or statements per function/module and compare across implementations or versions.

  • Example: Two implementations provide the same feature. Implementation X uses 50 lines; Implementation Y uses 80 lines. Implementation X is more concise.

  • Why the other terms are not correct: Consistency refers to uniform coding style or behavior; efficiency refers to runtime or resource performance; accuracy refers to correctness of outputs. None of these specifically measure compactness in terms of LOC.

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

Explore the full course: Mppsc Assistant Professor