0
0
Testing Fundamentalstesting~10 mins

Performance testing basics 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 define the main goal of performance testing.

Testing Fundamentals
performance_goal = "Ensure the system [1] under expected load"
Drag options to blanks, or click blank then click option'
Aignores users
Bfails often
Cresponds quickly
Druns slowly
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing options that describe poor performance like 'fails often' or 'runs slowly'.
2fill in blank
medium

Complete the code to specify the type of test that measures system behavior under heavy load.

Testing Fundamentals
test_type = "[1] testing"
Drag options to blanks, or click blank then click option'
AUsability
BLoad
CIntegration
DUnit
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing load testing with unit or usability testing.
3fill in blank
hard

Fix the error in the code to correctly calculate response time in milliseconds.

Testing Fundamentals
response_time_ms = response_time_seconds [1] 1000
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.
4fill in blank
hard

Complete the code to create a dictionary comprehension that maps each user to their response time if it is less than 200 ms.

Testing Fundamentals
fast_responses = {user: response for user, response in responses.items() if response [1] 200}
Drag options to blanks, or click blank then click option'
B*
C<
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Adding unnecessary operations on response value.
Using > instead of < for filtering.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps each test name in uppercase to its average response time if the time is greater than 100 ms.

Testing Fundamentals
avg_times = {test[1]: time for test, time in test_results.items() if time [2] 100 and test[3].startswith('load')}
Drag options to blanks, or click blank then click option'
A.upper()
B>
C.lower()
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using .lower() instead of .upper() for the key.
Using < instead of > for time filter.