CS FundamentalsHardTCS NQT · HCL
A module of 30,000 lines of code has 45 defects found in testing. What is the defect density?
- A. 15 defects per KLOC
- B. 0.15 defects per KLOC
- C. 1.5 defects per KLOC
- D. 0.67 defects per KLOC
Correct answer: C. 1.5 defects per KLOC
30,000 LOC = 30 KLOC; 45/30 = 1.5 defects per KLOC.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Under the cloud shared responsibility model for IaaS (for example virtual machines), which task is the customer's responsibility?
- A Square class extends Rectangle and overrides setWidth so that it also changes the height, breaking code that expects independent width…
- A control-flow graph has 20 edges, 16 nodes and 2 connected components. Using V(G) = E - N + 2P, what is the cyclomatic complexity?
- Commits A-B-C-D-E are on the shared main branch and already pushed. Commit C introduced a bug. What is the safest way to undo only C's…
- A module contains functions to print to screen, write to a file and send over a network; a flag argument decides which one runs. Which…
- A load balancer with 99.9% availability fronts two redundant servers (parallel), each with 90% availability. System works if the balancer…