An investigation records 18 separate failures, meaning observed departures from required software behaviour. A confirmed defect, meaning an imperfection in the software, accounts for exactly seven of these events. Investigators establish that this defect caused none of the remaining events.
For this question, assume that each recorded event was caused by exactly one software defect. The same defect may cause several events, and no defects are introduced or removed during the observation period. Investigators have not established whether the remaining events share a cause.
Find the minimum and maximum possible numbers of distinct defects responsible for the 18 recorded events. Give both answers as exact integers. Count only defects responsible for at least one recorded event, excluding any defects that never caused an event in this record.
Unlock full course notes by signing up
Defect density of an inventory service
A team's inventory service contains 18,400 lines of code. During system testing, testers filed 69 failure reports, and debugging traced those reports to 23 distinct defects. What is the defect density of the service, in defects per thousand lines of code (KLOC), to two decimal places?
Classifying a weather widget's temperature bug
A developer misread the specification of a weather app's data feed and believed temperatures arrived in Fahrenheit, when the feed actually sends Celsius. The conversion line they wrote sits in a widget that was disabled in release 4.1, so no user ever ran it. Release 4.2 enabled the widget. Before the fix, the widget displayed roughly 50,000 readings, every one of them wrong, and users filed 120 reports about incorrect temperatures. Which of the following statements are true? Select all that apply.
Track defects through maintenance intervals
A maintenance team begins monitoring a service with three distinct confirmed defects present. A defect is a recorded imperfection that remains present until removed; a failure is a separate observed occasion when the service does not deliver required behaviour.
The complete log is shown below. Each removal eliminates a distinct defect currently present, and the introduced defect is new. All failure counts describe separate events. No other defects are introduced or removed during these intervals.
Complete the table with exact integers. For each interval, give the number of defects present at its end and the cumulative number of observed failures since monitoring began. A failure event does not itself remove or introduce a defect.
From executed defect to observed failure in a test run
A suite of 400 automated test cases is run against a build that contains exactly one defect: a wrong loop bound in a function that computes a cached subtotal. Coverage logs show that 160 of the tests executed the defective loop. In 24 of those 160 tests the loop left the cached subtotal with a wrong value. In 15 of those 24 tests the wrong value reached the output that the test checks, so the test failed; in the rest, the subtotal was recalculated before it was used.
Find the number of failures observed, the number of tests that executed the defective loop without failing, and the number of tests in which a wrong subtotal was masked before output, each as a whole number. Also find the percentage of tests that executed the defective loop and failed, to one decimal place.