0
0
Testing Fundamentalstesting~20 mins

Performance testing basics in Testing Fundamentals - Practice Problems & Coding Challenges

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

What is the main goal of load testing in performance testing?

ATo verify the correctness of business logic in the application
BTo find the maximum number of users the system can handle before crashing
CTo test the system's security against unauthorized access
DTo check how the system behaves under expected normal user load
Attempts:
2 left
💡 Hint

Think about testing the system under typical usage conditions.

Predict Output
intermediate
2:00remaining
Interpreting Response Time Measurement Code

What will be the output of this Python code snippet simulating a simple response time measurement?

Testing Fundamentals
import time
start = time.time()
time.sleep(0.5)
end = time.time()
response_time = end - start
print(round(response_time, 1))
A5.0
B0.05
C0.5
D0.005
Attempts:
2 left
💡 Hint

Consider how long time.sleep(0.5) pauses the program.

assertion
advanced
2:00remaining
Validating Throughput Assertion in Performance Test

Which assertion correctly checks that the throughput is at least 100 requests per second?

Testing Fundamentals
throughput = get_throughput()
# Insert assertion here
Aassert throughput >= 100, f"Throughput too low: {throughput}"
Bassert throughput > 100, f"Throughput too low: {throughput}"
Cassert throughput < 100, f"Throughput too high: {throughput}"
Dassert throughput == 100, f"Throughput mismatch: {throughput}"
Attempts:
2 left
💡 Hint

Think about including the minimum acceptable throughput value.

🔧 Debug
advanced
2:00remaining
Identifying Bottleneck in Performance Test Report

A performance test report shows high CPU usage but low memory usage and slow response times. What is the most likely bottleneck?

ADisk I/O is the bottleneck causing slow responses
BCPU is the bottleneck causing slow responses
CNetwork bandwidth is saturated causing slow responses
DMemory is insufficient causing slow responses
Attempts:
2 left
💡 Hint

High CPU usage often means the processor is overloaded.

framework
expert
2:00remaining
Choosing the Best Tool for Stress Testing

You need to perform stress testing on a web application to find its breaking point under extreme load. Which tool is best suited for this task?

AApache JMeter, because it supports creating heavy load scenarios and detailed reports
BPostman, because it is designed for API functional testing with simple load
CSelenium WebDriver, because it automates browser actions for functional testing
DJUnit, because it is used for unit testing Java code
Attempts:
2 left
💡 Hint

Look for a tool that can simulate many users and measure performance under load.