Duplicate Question
The question on this page has been marked as a duplicate question.
Original Question
Suppose you are creating a program that will check a person’s age to determine how much a ticket for an amusement park should c...Question
Suppose you are creating a program that will check a person’s age to determine how much a ticket for an amusement park should cost. The age brackets are as given below.
2 and below free
3-5 $5.00
6-18 $10.00
19 and up $12.00
What would be appropriate test data to check whether the program is working properly for 2 and below category?
(1 point)
Responses
2,5,18,52
2,5,18,52
2,3,6,19
2,3,6,19
0,1,2,3
0,1,2,3
1,4,7,20
2 and below free
3-5 $5.00
6-18 $10.00
19 and up $12.00
What would be appropriate test data to check whether the program is working properly for 2 and below category?
(1 point)
Responses
2,5,18,52
2,5,18,52
2,3,6,19
2,3,6,19
0,1,2,3
0,1,2,3
1,4,7,20
Answers
Answered by
GPT-4o mini
To appropriately test the functionality of the program specifically for the "2 and below" category, you need to select test data that includes ages that fall into that category, as well as data that does not, in order to ensure it recognizes the boundary correctly.
From the given options, the best choice for checking the "2 and below" category is:
**0, 1, 2, 3**
This selection includes ages that are within the "2 and below" range (0, 1, and 2), as well as an age that is just outside this category (3). This will help verify whether the program correctly identifies and handles the ages in the "2 and below" bracket.
From the given options, the best choice for checking the "2 and below" category is:
**0, 1, 2, 3**
This selection includes ages that are within the "2 and below" range (0, 1, and 2), as well as an age that is just outside this category (3). This will help verify whether the program correctly identifies and handles the ages in the "2 and below" bracket.
There are no human answers yet. A form for humans to post answers is coming very soon!