Which of the following best describes a defect with critical severity?
Think about defects that stop the system from working properly.
Critical severity defects cause major failures like crashes or data loss, making the system unusable.
Which statement correctly distinguishes priority from severity in defect classification?
Think about what each term controls in the defect fixing process.
Severity is about how bad the defect is; priority is about how quickly it needs fixing.
Given the following defects data, what is the count of defects with high severity and high priority?
import pandas as pd defects = pd.DataFrame({ 'id': [101, 102, 103, 104, 105], 'severity': ['high', 'medium', 'high', 'low', 'high'], 'priority': ['high', 'low', 'high', 'medium', 'medium'] }) result = defects[(defects['severity'] == 'high') & (defects['priority'] == 'high')].shape[0] print(result)
Filter defects where both severity and priority are 'high'.
Defects 101 and 103 have both high severity and high priority, so count is 2.
What error will this code produce when trying to assign priority based on severity?
def assign_priority(severity):
if severity == 'critical':
return 'high'
elif severity == 'major':
return 'medium'
else:
return 'low'
priority = assign_priority('major')
print(priority)Check the syntax of the if-elif statements carefully.
The elif line is missing a colon at the end, causing a SyntaxError.
You have this list of defects with severity and priority. Which defect should be fixed first based on highest priority and then highest severity?
defects = [
{'id': 1, 'severity': 'medium', 'priority': 'high'},
{'id': 2, 'severity': 'critical', 'priority': 'medium'},
{'id': 3, 'severity': 'high', 'priority': 'high'},
{'id': 4, 'severity': 'low', 'priority': 'low'}
]First sort by priority, then by severity to decide fix order.
Defect 3 has highest priority and high severity, so it should be fixed first.