In risk analysis for testing, which factor most directly increases the priority of testing a feature?
Think about what makes a feature more likely to cause problems if it fails.
Features that are complex and impact many users have higher risk and need more testing focus.
What is the output of the following Python code that calculates a risk score?
def risk_score(probability, impact): return probability * impact score = risk_score(0.7, 8) print(score)
Multiply the two numbers given as arguments.
The function multiplies probability (0.7) by impact (8), resulting in 5.6.
You have a list of features with risk scores. Which assertion correctly checks that the list is sorted from highest to lowest risk?
risk_scores = [9.5, 7.2, 5.6, 3.1]
Check that each score is greater than or equal to the next.
Option C verifies the list is sorted descending by comparing each element to the next.
Find the error in this code that calculates risk impact but returns wrong results:
def calculate_impact(severity, frequency): impact = severity + frequency return impact result = calculate_impact(5, 3) print(result)
Risk impact is usually calculated by multiplying severity and frequency.
Adding severity and frequency underestimates impact; multiplication reflects combined effect better.
Which approach best fits a risk-based test selection framework to optimize testing effort?
Focus testing on areas where failure impact and likelihood are highest.
Prioritizing tests by risk ensures critical areas are tested first, optimizing resources and reducing risk.