nerdexam
(ISC)2

CSSLP · Question #397

A payments startup measures defects per thousand lines of code across its repositories to monitor code quality. Which category of software assessment does that metric represent?

The correct answer is D. Static code analysis. Measuring "defects per thousand lines of code" is a metric commonly derived from static code analysis, which involves examining source code without execution to identify quality issues.

Secure Software Testing

Question

A payments startup measures defects per thousand lines of code across its repositories to monitor code quality. Which category of software assessment does that metric represent?

Options

  • AVulnerability scanning
  • BCode review
  • CThreat modeling
  • DStatic code analysis

How the community answered

(32 responses)
  • A
    3% (1)
  • B
    3% (1)
  • D
    94% (30)

Why each option

Measuring "defects per thousand lines of code" is a metric commonly derived from static code analysis, which involves examining source code without execution to identify quality issues.

AVulnerability scanning

Vulnerability scanning typically refers to scanning deployed applications or networks for known vulnerabilities, not primarily measuring code defects per line in source code.

BCode review

Code review is a manual process where developers inspect each other's code, which can find defects but doesn't automatically generate "defects per thousand lines of code" as a direct, automated metric.

CThreat modeling

Threat modeling is a structured approach to identify potential threats, vulnerabilities, and counter-measures for a system, not a method for directly quantifying code defects per line.

DStatic code analysisCorrect

Static code analysis (SCA) is a method of examining source code, bytecode, or binary code without executing the program, primarily to detect defects, security vulnerabilities, and adherence to coding standards. Tools for SCA can quantify metrics like defects per thousand lines of code (DLOC or KLOC) by systematically scanning the codebase for patterns indicating potential issues.

Concept tested: Static code analysis metrics

Source: https://owasp.org/www-project-static-analysis-security-testing-guide/latest/

Topics

#Static Code Analysis#Code Quality Metrics#Software Assessment#Defect Measurement

Community Discussion

No community discussion yet for this question.

Full CSSLP Practice