Vaidikalaya

MCQ On Software Metrics


Q1. Software metrics are used to measure:.
  1. Hardware performance
  2. Quantitative attributes of software
  3. Programmer’s salary
  4. Internet speed

Answer: b, Quantitative attributes of software

Solution: Metrics measure software attributes.

Q2. Which of the following is a product metric?.
  1. Defect Removal Efficiency
  2. Effort Estimation
  3. Lines of Code (LOC)
  4. Schedule Variance

Answer: c, Lines of Code (LOC)

Solution: LOC measures product size.

Q3. Which of the following is a process metric?.
  1. Cyclomatic Complexity
  2. Defect Density
  3. Review Efficiency
  4. Function Points

Answer: c, Review Efficiency

Solution: Review efficiency measures process quality.

Q4. Cyclomatic Complexity measures:.
  1. Product reliability
  2. Program size
  3. Code complexity
  4. Hardware configuration

Answer: c, Code complexity

Solution: CC measures logical complexity.

Q5. Function Point metric measures:.
  1. Lines of code
  2. Program memory usage
  3. Software functionality
  4. Number of bugs

Answer: c, Software functionality

Solution: FP measures user-visible functionality.

Q6. Defect Density is calculated as:.
  1. Defects / KLOC
  2. KLOC / Defects
  3. LOC * number of defects
  4. Total code / project duration

Answer: a, Defects / KLOC

Solution: Defects per thousand LOC.

Q7. Which is a project metric?.
  1. Productivity
  2. Cyclomatic Complexity
  3. Function Points
  4. Reliability

Answer: a, Productivity

Solution: Productivity measures project performance.

Q8. MTBF(Mean Time Between Failures) is a metric for:.
  1. Performance
  2. Reliability
  3. Productivity
  4. Flexibility

Answer: b, Reliability

Solution: MTBF measures reliability.

Q9. Which metric finds difficult-to-maintain code?.
  1. LOC
  2. Cyclomatic Complexity
  3. Response Time
  4. Memory Usage

Answer: b, Cyclomatic Complexity

Solution: CC indicates code complexity.

Q10. Good software metrics should be:.
  1. Complex
  2. Simple, objective, repeatable
  3. Subjective
  4. Only qualitative

Answer: b, Simple, objective, repeatable

Solution: Metrics must be reliable and objective.

Q11. Not a purpose of software metrics:.
  1. Planning
  2. Monitoring
  3. Improving quality
  4. Increasing hardware cost

Answer: d, Increasing hardware cost

Solution: Metrics do not relate to hardware cost.

Q12. Which metric is best for estimating development effort?.
  1. Function Points
  2. Memory Usage
  3. Response Time
  4. Throughput

Answer: a, Function Points

Solution: FP helps estimate effort.

Q13. Productivity metric example:.
  1. Defects / person
  2. LOC or FP per person-month
  3. Memory used / time
  4. CC / LOC

Answer: b, LOC or FP per person-month

Solution: Productivity = output per effort.

Q14. Rework Percentage is a:.
  1. Project metric
  2. Product metric
  3. Process metric
  4. Performance metric

Answer: c, Process metric

Solution: Measures rework in process.

Q15. Which software metric is independent of programming language used?.
  1. LOC
  2. Function Point
  3. Cyclomatic Complexity
  4. Code Coverage

Answer: b, Function Point

Solution: FP is language-independent.