0
0
Testing Fundamentalstesting~10 mins

Test estimation techniques in Testing Fundamentals - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to calculate the total test effort by multiplying the number of test cases by the average time per test case.

Testing Fundamentals
total_effort = num_test_cases [1] avg_time_per_test
Drag options to blanks, or click blank then click option'
A+
B/
C-
D*
Attempts:
3 left
💡 Hint
Common Mistakes
Using + instead of * results in incorrect total effort.
2fill in blank
medium

Complete the code to estimate the number of test cases using the function points and a productivity factor.

Testing Fundamentals
estimated_tests = function_points [1] productivity_factor
Drag options to blanks, or click blank then click option'
A*
B-
C+
D/
Attempts:
3 left
💡 Hint
Common Mistakes
Using division or addition instead of multiplication.
3fill in blank
hard

Fix the error in the code to calculate the average time per test case by dividing total time by number of test cases.

Testing Fundamentals
avg_time = total_time [1] num_test_cases
Drag options to blanks, or click blank then click option'
A+
B*
C/
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Using multiplication or addition instead of division.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps each test type to its estimated effort if the effort is greater than 5 hours.

Testing Fundamentals
effort_estimates = {test_type: [1] for test_type, [2] in test_data.items() if [1] > 5}
Drag options to blanks, or click blank then click option'
Aeffort
Btime
Ccount
Dduration
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names for value in comprehension and condition.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps each test case ID (uppercased) to its duration if the duration is greater than 2 hours.

Testing Fundamentals
filtered_tests = {{ [1]: [2] for test_id, [3] in tests.items() if [2] > 2 }}
Drag options to blanks, or click blank then click option'
Atest_id.upper()
Bduration
Dtest_id
Attempts:
3 left
💡 Hint
Common Mistakes
Using test_id instead of uppercased test_id as key.
Mismatching variable names.