Complete the code to define the main goal of performance testing.
def performance_testing_goal(): return "[1] bottlenecks before release"
Performance testing helps identify bottlenecks early so they can be fixed before the software is released.
Complete the code to show what performance testing measures.
def measure_performance(): return "[1] and response time"
Performance testing measures load (how much work the system can handle) and response time (how fast it reacts).
Fix the error in the function that simulates a bottleneck detection.
def detect_bottleneck(load): if load [1] 1000: return "Bottleneck detected" else: return "System OK"
The function should detect a bottleneck when the load is greater than 1000, so the correct operator is >.
Fill both blanks to create a dictionary that maps test types to their focus areas.
test_focus = {
"Load Testing": "[1]",
"Stress Testing": "[2]"
}Load Testing focuses on system capacity, while Stress Testing focuses on the breaking point of the system.
Fill all three blanks to create a function that returns a report summary after performance testing.
def report_summary(errors, time, bottlenecks): return { "errors": [1], "total_time": [2], "bottlenecks_found": [3] }
The function returns a dictionary with keys matching the parameters: errors, time, and bottlenecks.