A software component for a game application calculates a player’s trophy level based on the following three input parameter values and their associated rules: Time to Complete Game - Maximum 180 seconds. If the input value exceeds this amount, then the component outputs error message TIME1 Points Earned - minimum 5 to a maximum of 25. If the input value is outside this range the component outputs error message EM1 Level of Difficulty - from 1 to a maximum of 4. If the input value is outside this range the component outputs error message EM2 Assuming there are no error messages, a total score is then calculated by the component as (Points Earned * Level of Difficulty) The trophy levels are: Blue - total score equal to or less than 40 Silver - total score > 40 Gold - total score > 70 Diamond - total score > 80 Platinum - total score > 90 The component then outputs the correct trophy level Applying the Equivalence Partition test design technique to this component and assuming that each error message and each trophy level represents a separate output partition, what percentage of the total output partitions have been exercised by the following suite of test cases? Player 1 - Points earned 25, level of difficulty 2, time 60 seconds. Player 2 - Points earned 20, level of difficulty 3, time 120 seconds. Player 3 - Points earned 30, level of difficulty 1, time 200 seconds.
Select one answer.
Marked answer: C
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose C1
2 distinct partitions(out of 2 silver and 1 time1/em1) / 8 total partitions * 100 = 25%
1
C seems correct
Keyboard:←→previous / next·A–Echoose·Entercheck, then next