Bird
Raised Fist0
Testing Fundamentalstesting~20 mins

Risk analysis for testing in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Risk Analysis Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identifying High-Risk Areas

In risk analysis for testing, which factor most directly increases the priority of testing a feature?

AThe feature has extensive automated tests already.
BThe feature is rarely used and has simple logic.
CThe feature was recently added but has no known bugs.
DThe feature has a complex design and affects many users.
Attempts:
2 left
💡 Hint

Think about what makes a feature more likely to cause problems if it fails.

❓ Predict Output
intermediate
2:00remaining
Output of Risk Score Calculation

What is the output of the following Python code that calculates a risk score?

Testing Fundamentals
def risk_score(probability, impact):
    return probability * impact

score = risk_score(0.7, 8)
print(score)
A15
B5.6
C0.875
DSyntaxError
Attempts:
2 left
💡 Hint

Multiply the two numbers given as arguments.

❓ assertion
advanced
2:00remaining
Validating Risk Priority Order

You have a list of features with risk scores. Which assertion correctly checks that the list is sorted from highest to lowest risk?

Testing Fundamentals
risk_scores = [9.5, 7.2, 5.6, 3.1]
Aassert risk_scores == sorted(risk_scores)
Bassert all(risk_scores[i] <= risk_scores[i+1] for i in range(len(risk_scores)-1))
Cassert all(risk_scores[i] >= risk_scores[i+1] for i in range(len(risk_scores)-1))
Dassert risk_scores == sorted(risk_scores, reverse=False)
Attempts:
2 left
💡 Hint

Check that each score is greater than or equal to the next.

🔧 Debug
advanced
2:00remaining
Debugging Risk Impact Calculation

Find the error in this code that calculates risk impact but returns wrong results:

Testing Fundamentals
def calculate_impact(severity, frequency):
    impact = severity + frequency
    return impact

result = calculate_impact(5, 3)
print(result)
AThe impact should be multiplied, not added, so use severity * frequency.
BThe function is missing a return statement.
CThe variables severity and frequency are not defined.
DThe print statement is outside the function and causes an error.
Attempts:
2 left
💡 Hint

Risk impact is usually calculated by multiplying severity and frequency.

❓ framework
expert
3:00remaining
Designing a Risk-Based Test Selection Framework

Which approach best fits a risk-based test selection framework to optimize testing effort?

ASelect tests that cover features with the highest risk scores first, then proceed to lower risk features.
BRun all tests equally regardless of risk to ensure full coverage.
CSelect tests randomly to avoid bias in testing.
DOnly test features that have failed before, ignoring new or changed features.
Attempts:
2 left
💡 Hint

Focus testing on areas where failure impact and likelihood are highest.

Practice

(1/5)
1. What is the main purpose of risk analysis in software testing?
easy
A. To write code faster without testing
B. To identify which parts of the software need testing first based on potential problems
C. To create user manuals for the software
D. To design the software's user interface

Solution

  1. Step 1: Understand risk analysis goal

    Risk analysis helps testers find which parts of software might cause big problems.
  2. Step 2: Connect goal to testing order

    Testing starts with high-risk areas to catch serious issues early.
  3. Final Answer:

    To identify which parts of the software need testing first based on potential problems -> Option B
  4. Quick Check:

    Risk analysis = prioritize testing by risk [OK]
Hint: Risk analysis = test high-risk parts first [OK]
Common Mistakes:
  • Thinking risk analysis is about coding speed
  • Confusing risk analysis with documentation
  • Believing risk analysis designs UI
2. Which of the following is a correct way to describe risk in testing?
easy
A. Risk is the chance that a feature will be easy to use
B. Risk is how fast the software runs
C. Risk is the likelihood and impact of a problem occurring in the software
D. Risk means the software will never have bugs

Solution

  1. Step 1: Define risk in testing context

    Risk means how likely a problem is and how bad its effect would be.
  2. Step 2: Match definition to options

    Risk is the likelihood and impact of a problem occurring in the software correctly states risk as likelihood and impact of problems.
  3. Final Answer:

    Risk is the likelihood and impact of a problem occurring in the software -> Option C
  4. Quick Check:

    Risk = likelihood + impact [OK]
Hint: Risk = chance x impact of problem [OK]
Common Mistakes:
  • Confusing risk with software speed
  • Thinking risk means no bugs
  • Mixing risk with usability
3. Given the following risk scores for features, which feature should be tested first?
Feature A: Impact=5, Likelihood=2
Feature B: Impact=3, Likelihood=4
Feature C: Impact=4, Likelihood=4
Feature D: Impact=2, Likelihood=5
medium
A. Feature C
B. Feature B
C. Feature A
D. Feature D

Solution

  1. Step 1: Calculate risk scores

    Multiply impact and likelihood for each feature:
    Feature A: 5x2=10
    Feature B: 3x4=12
    Feature C: 4x4=16
    Feature D: 2x5=10
  2. Step 2: Identify highest risk

    Feature C has the highest risk score (16), so test it first.
  3. Final Answer:

    Feature C -> Option A
  4. Quick Check:

    Highest risk = Feature C (16) [OK]
Hint: Test feature with highest impact x likelihood first [OK]
Common Mistakes:
  • Choosing feature with highest impact only
  • Choosing feature with highest likelihood only
  • Adding instead of multiplying impact and likelihood
4. A tester assigned risk scores as Impact=3 and Likelihood=5 for a feature. Later, they realize the impact should be 5, but they forgot to update the risk score. What is the error in their risk analysis?
medium
A. Incorrect calculation of risk score due to outdated impact value
B. Wrong likelihood value used
C. Risk analysis does not require impact values
D. Risk score should be ignored if updated values are missing

Solution

  1. Step 1: Identify the mistake in risk scoring

    The tester used an old impact value (3) instead of the correct one (5).
  2. Step 2: Understand effect on risk score

    This causes the risk score to be too low, leading to wrong testing priority.
  3. Final Answer:

    Incorrect calculation of risk score due to outdated impact value -> Option A
  4. Quick Check:

    Outdated impact causes wrong risk score [OK]
Hint: Always update impact and likelihood before scoring [OK]
Common Mistakes:
  • Ignoring impact changes
  • Assuming likelihood was wrong
  • Thinking risk score can be skipped
5. You have three features with these risk values:
Feature X: Impact=4, Likelihood=3
Feature Y: Impact=5, Likelihood=2
Feature Z: Impact=3, Likelihood=5

If testing time is limited and you can only test two features, which two should you pick to maximize risk coverage?
hard
A. Feature Y and Feature Z
B. Feature X and Feature Y
C. Feature X and Feature Y and Feature Z
D. Feature X and Feature Z

Solution

  1. Step 1: Calculate risk scores for all features

    Feature X: 4x3=12
    Feature Y: 5x2=10
    Feature Z: 3x5=15
  2. Step 2: Select two features with highest combined risk

    Feature Z (15) and Feature X (12) together cover 27 risk points, higher than other pairs.
  3. Final Answer:

    Feature X and Feature Z -> Option D
  4. Quick Check:

    Pick top two risk scores for best coverage [OK]
Hint: Pick two features with highest risk scores combined [OK]
Common Mistakes:
  • Choosing features with highest impact only
  • Selecting features with lowest risk
  • Trying to test all three when time is limited
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard