Bird
0
0

Consider this pseudo-code for a stress test:

medium📝 Predict Output Q13 of 15
Testing Fundamentals - Non-Functional Testing
Consider this pseudo-code for a stress test:
for users in range(1000, 1100):
    simulate_login(users)
    simulate_data_request(users)
    check_response_time(users)

What is the main purpose of increasing users from 1000 to 1099 in this test?
ATo check if the system crashes at 1000 users
BTo verify system functionality for exactly 1000 users
CTo test system behavior under gradually increasing load
DTo test only the login feature repeatedly
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the loop range and actions

    The loop increases user count from 1000 to 1099, simulating login and data requests for each user count, then checking response time.
  2. Step 2: Understand the test goal

    This gradual increase tests how the system handles increasing load, which is typical in stress testing to find breaking points or performance degradation.
  3. Final Answer:

    To test system behavior under gradually increasing load -> Option C
  4. Quick Check:

    Increasing users = increasing load [OK]
Quick Trick: Increasing users means testing load growth [OK]
Common Mistakes:
  • Thinking test is only for exactly 1000 users
  • Assuming test checks only login feature
  • Ignoring the gradual increase aspect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Testing Fundamentals Quizzes