0
0
Testing Fundamentalstesting~20 mins

Test estimation techniques in Testing Fundamentals - Practice Problems & Coding Challenges

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

Which of the following best describes the Wideband Delphi test estimation technique?

AA technique that uses historical defect data to predict the number of tests needed.
BAn automated tool that calculates test effort based on code complexity metrics.
CA method where a single tester estimates the time required for all test cases without consulting others.
DA group-based estimation where experts discuss and revise estimates anonymously until consensus is reached.
Attempts:
2 left
💡 Hint

Think about group discussions and anonymous feedback in estimation.

🧠 Conceptual
intermediate
1:30remaining
Test Estimation Inputs

Which input is least important when preparing a test effort estimate?

AAvailability and skill level of the testing team.
BRequirements complexity and clarity.
CThe color scheme of the application UI.
DHistorical data from similar past projects.
Attempts:
2 left
💡 Hint

Consider what affects test effort realistically.

Predict Output
advanced
1:30remaining
Output of Test Case Estimation Calculation

Given the following Python code that calculates total test effort based on test cases and average time per test, what is the output?

Testing Fundamentals
test_cases = [5, 8, 3, 10]
avg_time_per_test = 1.5  # hours

total_effort = sum(test_cases) * avg_time_per_test
print(f'Total test effort: {total_effort} hours')
ATotal test effort: 39.0 hours
BTotal test effort: 26.0 hours
CTotal test effort: 39 hours
DTotal test effort: 26 hours
Attempts:
2 left
💡 Hint

Sum the test cases and multiply by average time.

assertion
advanced
1:30remaining
Valid Assertion for Test Effort Estimation

Which assertion correctly verifies that the calculated test effort is within an expected range?

Testing Fundamentals
calculated_effort = 40
expected_min = 35
expected_max = 45
Aassert calculated_effort == expected_min and calculated_effort == expected_max
Bassert expected_min <= calculated_effort <= expected_max
Cassert calculated_effort < expected_min or calculated_effort > expected_max
Dassert calculated_effort != expected_min or calculated_effort != expected_max
Attempts:
2 left
💡 Hint

Think about checking if a value is between two numbers.

🔧 Debug
expert
2:00remaining
Debugging Estimation Code Error

What error will this Python code raise when estimating test effort?

Testing Fundamentals
test_cases = ['5', '8', '3']
avg_time = 2

total = sum(test_cases) * avg_time
print(total)
ATypeError: unsupported operand type(s) for +: 'int' and 'str'
BValueError: invalid literal for int() with base 10
CNameError: name 'avg_time' is not defined
DNo error, output is 32
Attempts:
2 left
💡 Hint

Check the data types in the sum function.