ExamGecko
Question list
Search
Search

Related questions











Question 327 - CTFL-2018 discussion

Report
Export

A class grade application for instructors assigns letter grades based on students' numerical grades. The letter grades for different numerical grades should be:

Above 89. up to 100 -- A

Above 79. up to 89 - B

Above 69. up to 79 -- C

Above 59. up to 69 - D Below 60 - F

Which of the following sets of test inputs would achieve the relatively highest equivalence partition coverage?

A.
0, 58, 59, 70, 80
Answers
A.
0, 58, 59, 70, 80
B.
69, 79, 80, 89, 90
Answers
B.
69, 79, 80, 89, 90
C.
74, 79, 84, 85, 89
Answers
C.
74, 79, 84, 85, 89
D.
79,89,90,99,100
Answers
D.
79,89,90,99,100
Suggested answer: B

Explanation:

The correct answer is B, as it achieves the highest equivalence partition coverage.Equivalence partitioning is a black-box test technique that divides the input domain into partitions of equivalent data from which test cases can be derived1. In this case, the input domain is the numerical grades, and the partitions are the ranges of grades that correspond to different letter grades. Option B covers all five partitions, as it includes test inputs from each range. Option A covers only four partitions, as it does not include any test input from the range above 89. Option C covers only three partitions, as it does not include any test input from the ranges above 79 and below 60.Option D covers only two partitions, as it does not include any test input from the ranges below 79.

Reference:1, Section 4.2.3

asked 18/09/2024
Paul Tierney
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first