0
0
Testing Fundamentalstesting~20 mins

Defect lifecycle in Testing Fundamentals - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Defect Lifecycle Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Defect Status Transition

In a typical defect lifecycle, what is the correct next status after a defect is marked as Fixed by the developer?

AClosed
BReopened
CDeferred
DRetest
Attempts:
2 left
💡 Hint

Think about who verifies the fix after the developer marks it as fixed.

🧠 Conceptual
intermediate
2:00remaining
Defect Lifecycle Final Status

Which status indicates that a defect is completely resolved and no further action is needed?

ADeferred
BRejected
CClosed
DDuplicate
Attempts:
2 left
💡 Hint

This status means the defect is done and verified.

Predict Output
advanced
2:00remaining
Defect Status Flow Simulation Output

Consider this Python code simulating defect status changes. What is the final status printed?

Testing Fundamentals
defect_status = 'New'

transitions = {
    'New': 'Assigned',
    'Assigned': 'Fixed',
    'Fixed': 'Retest',
    'Retest': 'Closed'
}

for _ in range(4):
    defect_status = transitions.get(defect_status, defect_status)

print(defect_status)
AClosed
BRetest
CFixed
DAssigned
Attempts:
2 left
💡 Hint

Follow the status changes step by step.

assertion
advanced
2:00remaining
Assertion on Defect Status Validity

Which assertion correctly checks that a defect status is valid from the allowed set?

Aassert defect_status in ['New', 'Assigned', 'Fixed', 'Retest', 'Closed']
Bassert defect_status == ['New', 'Assigned', 'Fixed', 'Retest', 'Closed']
Cassert defect_status not in ['New', 'Assigned', 'Fixed', 'Retest', 'Closed']
Dassert defect_status is ['New', 'Assigned', 'Fixed', 'Retest', 'Closed']
Attempts:
2 left
💡 Hint

Check if the status is one of the allowed strings.

🔧 Debug
expert
3:00remaining
Debug Defect Status Transition Code

Find the error in this Python code simulating defect status transitions and select the option that describes the error.

Testing Fundamentals
defect_status = 'New'

transitions = {
    'New': 'Assigned',
    'Assigned': 'Fixed',
    'Fixed': 'Retest',
    'Retest': 'Closed'
}

for i in range(5):
    defect_status = transitions[defect_status]

print(defect_status)
ASyntaxError due to missing colon in dictionary
BKeyError occurs on 5th iteration because 'Closed' is not a key in transitions
CTypeError because transitions is not a dictionary
DIndexError because range is out of bounds
Attempts:
2 left
💡 Hint

Check what happens when the loop tries to access a key not in the dictionary.