HomeSubjectsUniversityBlogAbout

Metrics & Measurement

Topic in Software Engineering

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

Software metrics are quantitative measures of attributes of a software product, process or project, used to estimate, monitor and improve development. Questions separate product, process and project metrics and test calculations such as McCabe's cyclomatic complexity (V(G) = E - N + 2P), lines of code, function points and Halstead measures like program volume. Object-oriented design metrics from the Chidamber and Kemerer suite, including WMC, DIT, NOC, CBO, RFC and LCOM, appear often, alongside fan-in and fan-out and the MOOD set. Expect code coverage as a metric, technical debt estimation with SQALE, and Goodhart's law about targets distorting measurement.

Below are 30 practice questions from a pool of 210 Metrics & Measurement MCQs, one of 16 topics in Software Engineering. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

Metrics & MeasurementEasy

Q1. What is a process metric?

  1. A.A network performance metric for bandwidth speed
  2. B.A physical hardware component metric measurement
  3. C.A measure of the software product itself directly
  4. D.A measure of some attribute of the software development process✓ Correct

Explanation

Process metrics measure attributes of the development process.

Report an error in this question

Metrics & MeasurementEasy

Q2. What is Lines of Code (LOC)?

  1. A.A poem or literary piece of creative written work as part of the methodology
  2. B.A metric that measures software size by counting the number of lines in source code✓ Correct
  3. C.A specialized debugging and tracing tool and suite during the software lifecycle
  4. D.A specific type of software coding error and defect in the development process

Explanation

LOC counts the number of lines in source code.

Report an error in this question

Metrics & MeasurementEasy

Q3. What does KLOC stand for?

  1. A.King Lines of Code within the
  2. B.Known Lines of Code throughout
  3. C.Thousands of Lines of Code✓ Correct
  4. D.Key Lines of Code for the

Explanation

KLOC stands for Thousands (Kilo) Lines of Code.

Report an error in this question

Metrics & MeasurementEasy

Q4. What is defect rate?

  1. A.A metric for software testing execution speed rate
  2. B.Speed of creating new defects per work hour only
  3. C.The number of defects found per unit of software or time✓ Correct
  4. D.A specific type of reported software bug and defect

Explanation

Defect rate measures defects per unit of software size or time.

Report an error in this question

Metrics & MeasurementEasy

Q5. What is a product metric?

  1. A.A process metric for development workflow tracking
  2. B.A metric used for measuring sales revenue totals
  3. C.A measure of some attribute of the software product itself✓ Correct
  4. D.A hardware performance metric for device benchmarks

Explanation

Product metrics measure attributes of the software product.

Report an error in this question

Metrics & MeasurementEasy

Q6. What is productivity in software metrics?

  1. A.The total number of meetings held per week time
  2. B.Working overtime hours every single week constantly
  3. C.The ratio of output (software produced) to input (resources used)✓ Correct
  4. D.The typing speed of individual developer teammates

Explanation

Productivity is the ratio of output to input.

Report an error in this question

Metrics & MeasurementEasy

Q7. What are software metrics?

  1. A.A comprehensive software testing method type only for effective project outcomes
  2. B.Quantitative measures used to assess software quality, process, and productivity✓ Correct
  3. C.A specific type of application source code file type in the engineering discipline
  4. D.Physical measurements of hardware component parts to achieve project objectives

Explanation

Software metrics are quantitative measures for assessing quality, process, and productivity.

Report an error in this question

Metrics & MeasurementEasy

Q8. What is code complexity?

  1. A.The total number of declared variable names only for quality purposes
  2. B.The total length of all source code lines and files during implementation
  3. C.How hard source code is to initially write out in the system context
  4. D.A metric measuring how difficult code is to understand, test, and maintain✓ Correct

Explanation

Code complexity measures difficulty in understanding, testing, and maintaining software.

Report an error in this question

Metrics & MeasurementHard

Q9. What is the concept of 'metric validation' in software engineering?

  1. A.Validating application source code for errors and bugs by the development process
  2. B.Testing software requirements for completeness and scope and its related activities
  3. C.Ensuring that a metric actually measures what it claims to measure and is useful✓ Correct
  4. D.Testing physical measurement tools for their accuracy within the system boundary

Explanation

Metric validation ensures a metric actually measures the intended attribute.

Report an error in this question

Metrics & MeasurementMedium

Q10. What is the maintainability index?

  1. A.A comprehensive software testing score and rating
  2. B.An index at the back of a textbook publication
  3. C.A production deployment readiness rating and score
  4. D.A composite metric indicating how easy it is to maintain software✓ Correct

Explanation

The maintainability index combines complexity and LOC metrics.

Report an error in this question

Metrics & MeasurementMedium

Q11. What is the fan-in and fan-out metric?

  1. A.A cooling system performance metric for hardware and related components
  2. B.A relational database performance metric and score in the engineering discipline
  3. C.A network bandwidth performance metric measurement to achieve project objectives
  4. D.Fan-in counts modules calling a module; fan-out counts modules called by a module✓ Correct

Explanation

Fan-in counts callers; fan-out counts called modules.

Report an error in this question

Metrics & MeasurementMedium

Q12. What is the difference between direct and indirect metrics?

  1. A.Indirect metrics are always more accurate and precise over the entire lifecycle as defined by standards
  2. B.Direct metrics are always calculated from other data for all project stakeholders
  3. C.Direct metrics are measured directly (LOC); indirect metrics are derived from other measures (productivity)✓ Correct
  4. D.The two metric types are completely the same thing by the development process and its related activities

Explanation

Direct metrics are measured directly; indirect metrics are computed from other measures.

Report an error in this question

Metrics & MeasurementHard

Q13. What is the Chidamber and Kemerer (CK) metrics suite?

  1. A.A collection of design patterns for modules and code
  2. B.A comprehensive software testing tool suite and set
  3. C.An established coding standard and guideline set only
  4. D.A set of six object-oriented metrics: WMC, DIT, NOC, CBO, RFC, LCOM✓ Correct

Explanation

The CK suite provides six OO metrics: WMC, DIT, NOC, CBO, RFC, and LCOM.

Report an error in this question

Metrics & MeasurementHard

Q14. What is GQM+ Strategies?

  1. A.A comprehensive software testing strategy and plan according to best practices
  2. B.An extension of GQM that aligns measurement goals with organizational business goals✓ Correct
  3. C.A recreational video gaming strategy guide and plan in a systematic way
  4. D.A source code implementation coding strategy and plan for the project goals

Explanation

GQM+ Strategies links measurement goals to organizational business goals.

Report an error in this question

Metrics & MeasurementHard

Q15. What is the Response For a Class (RFC) metric?

  1. A.A network communication protocol metric and measure during the software lifecycle
  2. B.A relational database performance metric and measure within the project scope
  3. C.The count of all methods that can be invoked in response to a message to the class✓ Correct
  4. D.A comprehensive software testing metric and measure for the development team

Explanation

RFC counts methods potentially executed in response to a class message.

Report an error in this question

Metrics & MeasurementHard

Q16. What is the concept of 'measurement dysfunction'?

  1. A.Broken physical measurement tools and device parts by the organization
  2. B.Errors in hardware measurement instruments and tools across all phases
  3. C.When metrics are gamed or misused, leading to counterproductive behavior✓ Correct
  4. D.Dysfunctional software that crashes frequently daily at every stage

Explanation

Measurement dysfunction occurs when people optimize for the metric rather than the goal.

Report an error in this question

Metrics & MeasurementHard

Q17. What is the Number of Children (NOC) metric?

  1. A.The total number of comments in the source code base
  2. B.The total number of source code files in the project
  3. C.The number of child processes currently running now
  4. D.The count of immediate subclasses of a class in the inheritance tree✓ Correct

Explanation

NOC counts immediate subclasses of a class.

Report an error in this question

Metrics & MeasurementMedium

Q18. What is coupling metric?

  1. A.A production deployment readiness metric and score
  2. B.A measure of how strongly one module depends on other modules✓ Correct
  3. C.A comprehensive software testing metric and score
  4. D.A cohesion metric within a single code module only

Explanation

Coupling metrics measure interdependence between modules.

Report an error in this question

Metrics & MeasurementHard

Q19. What is the difference between size-oriented and function-oriented metrics?

  1. A.Size-oriented uses LOC as the basis; function-oriented uses function points✓ Correct
  2. B.Function-oriented metrics use LOC as the main basis as defined by standards
  3. C.Size-oriented metrics use function points as basis for all project stakeholders
  4. D.The two metric types are fundamentally identical overall over the entire lifecycle

Explanation

Size-oriented normalizes by LOC; function-oriented normalizes by function points.

Report an error in this question

Metrics & MeasurementEasy

Q20. What is mean time to repair (MTTR)?

  1. A.The average time between system failures and outages
  2. B.The maximum time allowed for running test suites
  3. C.The average time it takes to fix a failure and restore the system✓ Correct
  4. D.The minimum time to respond to a user web request

Explanation

MTTR measures average time to diagnose and fix a failure.

Report an error in this question

Metrics & MeasurementMedium

Q21. What is the depth of inheritance tree (DIT) metric?

  1. A.The depth of a relational database schema and tables as part of the methodology
  2. B.The height of a tree in a garden setting outdoors for effective project outcomes
  3. C.The depth of software testing coverage and breadth in the development process
  4. D.The maximum length of the path from a class to the root class in an inheritance hierarchy✓ Correct

Explanation

DIT measures depth of a class in the inheritance hierarchy.

Report an error in this question

Metrics & MeasurementMedium

Q22. What is the weighted methods per class (WMC) metric?

  1. A.The total number of classes in the project source
  2. B.The total number of source code files in project
  3. C.The average physical weight of all methods defined
  4. D.The sum of complexities of all methods defined in a class✓ Correct

Explanation

WMC sums the complexities of all methods in a class.

Report an error in this question

Metrics & MeasurementMedium

Q23. What is function point analysis?

  1. A.Counting total functions in source code and files at every stage
  2. B.A method of measuring software size based on the functionality delivered to users✓ Correct
  3. C.A specific software testing technique approach only across all phases
  4. D.An established coding standard and guideline set only in a systematic way

Explanation

Function point analysis measures size based on functional elements.

Report an error in this question

Metrics & MeasurementMedium

Q24. What is the Halstead complexity metric?

  1. A.A set of metrics based on counting operators and operands in source code✓ Correct
  2. B.A comprehensive software testing metric set and type according to best practices
  3. C.A subjective difficulty rating for the code base for the project goals
  4. D.A software architecture design metric set and type within the system boundary

Explanation

Halstead metrics analyze the number of operators and operands.

Report an error in this question

Metrics & MeasurementEasy

Q25. What is mean time between failures (MTBF)?

  1. A.The average time between system failures, indicating reliability✓ Correct
  2. B.The maximum allowed software testing time duration
  3. C.The average time to repair a system from failure
  4. D.The minimum testing frequency and interval schedule

Explanation

MTBF indicates reliability by measuring average time between failures.

Report an error in this question

Metrics & MeasurementHard

Q26. What is the Lack of Cohesion of Methods (LCOM) metric?

  1. A.A production deployment readiness metric and measure during implementation
  2. B.A metric measuring how dissimilar methods are in a class based on the instance variables they use✓ Correct
  3. C.A comprehensive software testing metric and measure in the system context
  4. D.A measure of total source code line length and size throughout the project

Explanation

LCOM measures method dissimilarity based on instance variable access.

Report an error in this question

Metrics & MeasurementHard

Q27. What is the Coupling Between Objects (CBO) metric?

  1. A.A relational database join performance metric and score as a standard approach
  2. B.A network bandwidth and latency metric and measurement in practice typically
  3. C.A physical coupling measurement between parts and things for quality purposes
  4. D.The count of classes to which a class is coupled through method calls, variables, or inheritance✓ Correct

Explanation

CBO counts classes coupled through method calls, field access, or inheritance.

Report an error in this question

Metrics & MeasurementHard

Q28. What is the concept of a 'balanced scorecard' in software metrics?

  1. A.A scorecard for athletic sports competition events within the given constraints
  2. B.A formal source code peer review evaluation and form by the project team members
  3. C.A comprehensive software testing checklist form sheet in all development efforts
  4. D.A strategic management framework measuring performance across multiple perspectives✓ Correct

Explanation

The balanced scorecard measures performance across multiple perspectives.

Report an error in this question

Metrics & MeasurementMedium

Q29. What is cyclomatic complexity?

  1. A.A complexity metric related to bicycles and riding in practice typically
  2. B.The total count of all declared variable name types by the organization
  3. C.The total length of all source code files and lines as a standard approach
  4. D.A metric measuring the number of linearly independent paths through a program's source code✓ Correct

Explanation

Cyclomatic complexity measures independent paths through code.

Report an error in this question

Metrics & MeasurementMedium

Q30. What is cohesion metric?

  1. A.A coupling metric between different system modules in all development efforts
  2. B.A comprehensive software testing metric and score by the project team members
  3. C.A measure of how strongly related the responsibilities within a module are✓ Correct
  4. D.A measure of team togetherness and morale level within the given constraints

Explanation

Cohesion metrics measure how related elements within a module are.

Report an error in this question

Ready to test yourself on Metrics & Measurement?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start Metrics & Measurement Quiz