ExamGecko
Question list
Search
Search

Related questions











Question 219 - CTFL-2018 discussion

Report
Export

Which of the following is a valid collection of equivalence classes for the following problem: 'An Integer numeric field shall contain values from 1 to 80 both values inclusive'

A.
Less than 0. 1 to 79, 80 and more than 80
Answers
A.
Less than 0. 1 to 79, 80 and more than 80
B.
Less than 0. 1 to 80, more than 80
Answers
B.
Less than 0. 1 to 80, more than 80
C.
Less than 1. 1 to 80, more than 80
Answers
C.
Less than 1. 1 to 80, more than 80
D.
Less than 1. 1 to 79, more than 80
Answers
D.
Less than 1. 1 to 79, more than 80
Suggested answer: B

Explanation:

Less than 0, 1 to 80, more than 80 is a valid collection of equivalence classes for the following problem: ''An Integer numeric field shall contain values from 1 to 80 both values inclusive''. Equivalence partitioning is a technique to divide the input domain into partitions that are expected to behave similarly or produce the same output.Each partition should have at least one representative value as a test case2explains equivalence partitioning as follows:

Equivalence Partitioning (or Equivalence Class Partitioning) is an software testing technique that divides the input data of a software unit into partitions of equivalent data from which test cases can be derived. In principle, test cases are designed to cover each partition at least once.

The fundamental concept of Equivalence Partitioning is that you can find more errors in a test case by using a representative value from an equivalence class than by using any other value from the class.

The input domain for this problem can be divided into three partitions: less than 0, 1 to 80, and more than 80. The first and the last partitions are invalid, as they are outside the range of acceptable values for this field. The middle partition is valid, as it is within the range of acceptable values for this field.

A, C, and D are incorrect answers. A does not include 0 as an invalid partition. C does not include 0 as an invalid partition. D does not include 80 as a valid partition.

asked 18/09/2024
Alvin Gonzalez
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first