0
0
Testing Fundamentalstesting~10 mins

Why non-functional quality affects user experience in Testing Fundamentals - Test Your Understanding

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

Complete the code to check if the website loads within the acceptable time limit.

Testing Fundamentals
assert response_time [1] 2, "Page load is too slow"
Drag options to blanks, or click blank then click option'
A>
B<=
C==
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>' instead of '<=' causes the test to pass when the page is slow.
2fill in blank
medium

Complete the code to verify the system handles 1000 users simultaneously.

Testing Fundamentals
assert system.load_test([1]) == 'pass'
Drag options to blanks, or click blank then click option'
A1500
B500
C2000
D1000
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a number too low or too high that doesn't match the requirement.
3fill in blank
hard

Fix the error in the assertion that checks if the error message appears when the server is down.

Testing Fundamentals
assert error_message [1] 'Server is down'
Drag options to blanks, or click blank then click option'
A==
B!=
C<
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' causes the test to fail even when the message is correct.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps each feature to its test status if the feature is critical.

Testing Fundamentals
{feature: status for feature, status in features.items() if feature [1] 'critical' and status [2] 'passed'}
Drag options to blanks, or click blank then click option'
A==
B!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' changes the filter logic incorrectly.
5fill in blank
hard

Fill all three blanks to create a dictionary that maps uppercase feature names to their status if the status is 'failed'.

Testing Fundamentals
{ [1]: [2] for feature, status in features.items() if status [3] 'failed' }
Drag options to blanks, or click blank then click option'
Afeature.upper()
Bstatus
C==
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' includes wrong statuses.