0
0
Testing Fundamentalstesting~10 mins

Test data management 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 create a test data variable holding a user's name.

Testing Fundamentals
test_user_name = [1]
Drag options to blanks, or click blank then click option'
AAlice
BTrue
C123
D"Alice"
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to put quotes around the string value.
2fill in blank
medium

Complete the code to add a test data entry for user age as an integer.

Testing Fundamentals
test_user_age = [1]
Drag options to blanks, or click blank then click option'
A25
B"25"
Ctwenty-five
D25.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes which make the number a string.
Using a decimal number instead of an integer.
3fill in blank
hard

Fix the error in the test data dictionary for user info.

Testing Fundamentals
test_user_info = {"name": "Bob", "age": [1]
Drag options to blanks, or click blank then click option'
A"30"
B30.5
C30
Dthirty
Attempts:
3 left
💡 Hint
Common Mistakes
Putting the number in quotes making it a string.
Using a decimal number instead of an integer.
4fill in blank
hard

Fill both blanks to create a list of test data users with names and ages.

Testing Fundamentals
test_users = [{"name": [1], "age": [2]]
Drag options to blanks, or click blank then click option'
A"Carol"
B28
C30
D"Dave"
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers as names without quotes.
Putting numbers in quotes.
5fill in blank
hard

Fill all three blanks to create a test data dictionary with user, score, and active status.

Testing Fundamentals
test_data = {"user": [1], "score": [2], "active": [3]
Drag options to blanks, or click blank then click option'
A"Eve"
B95
CTrue
DFalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers as strings for score.
Using strings instead of booleans for active.