MCQ On Software Metrics
Q1. Software metrics are used to measure:.
- Hardware performance
- Quantitative attributes of software
- Programmer’s salary
- Internet speed
Answer: b, Quantitative attributes of software
Solution: Metrics measure software attributes.
Q2. Which of the following is a product metric?.
- Defect Removal Efficiency
- Effort Estimation
- Lines of Code (LOC)
- Schedule Variance
Answer: c, Lines of Code (LOC)
Solution: LOC measures product size.
Q3. Which of the following is a process metric?.
- Cyclomatic Complexity
- Defect Density
- Review Efficiency
- Function Points
Answer: c, Review Efficiency
Solution: Review efficiency measures process quality.
Q4. Cyclomatic Complexity measures:.
- Product reliability
- Program size
- Code complexity
- Hardware configuration
Answer: c, Code complexity
Solution: CC measures logical complexity.
Q5. Function Point metric measures:.
- Lines of code
- Program memory usage
- Software functionality
- Number of bugs
Answer: c, Software functionality
Solution: FP measures user-visible functionality.
Q6. Defect Density is calculated as:.
- Defects / KLOC
- KLOC / Defects
- LOC * number of defects
- Total code / project duration
Answer: a, Defects / KLOC
Solution: Defects per thousand LOC.
Q7. Which is a project metric?.
- Productivity
- Cyclomatic Complexity
- Function Points
- Reliability
Answer: a, Productivity
Solution: Productivity measures project performance.
Q8. MTBF(Mean Time Between Failures) is a metric for:.
- Performance
- Reliability
- Productivity
- Flexibility
Answer: b, Reliability
Solution: MTBF measures reliability.
Q9. Which metric finds difficult-to-maintain code?.
- LOC
- Cyclomatic Complexity
- Response Time
- Memory Usage
Answer: b, Cyclomatic Complexity
Solution: CC indicates code complexity.
Q10. Good software metrics should be:.
- Complex
- Simple, objective, repeatable
- Subjective
- Only qualitative
Answer: b, Simple, objective, repeatable
Solution: Metrics must be reliable and objective.
Q11. Not a purpose of software metrics:.
- Planning
- Monitoring
- Improving quality
- 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?.
- Function Points
- Memory Usage
- Response Time
- Throughput
Answer: a, Function Points
Solution: FP helps estimate effort.
Q13. Productivity metric example:.
- Defects / person
- LOC or FP per person-month
- Memory used / time
- CC / LOC
Answer: b, LOC or FP per person-month
Solution: Productivity = output per effort.
Q14. Rework Percentage is a:.
- Project metric
- Product metric
- Process metric
- Performance metric
Answer: c, Process metric
Solution: Measures rework in process.
Q15. Which software metric is independent of programming language used?.
- LOC
- Function Point
- Cyclomatic Complexity
- Code Coverage
Answer: b, Function Point
Solution: FP is language-independent.