ExamGecko
Question list
Search
Search

Related questions











Question 234 - CTFL-2018 discussion

Report
Export

The following condition is given:

Integer x, y; IFx>0ANDx< 100

y = y + x; END-IF

Using boundary analysis for x. which test cases are required?

A.
-1,0.1,99.100, 101
Answers
A.
-1,0.1,99.100, 101
B.
-1,0. 100,101
Answers
B.
-1,0. 100,101
C.
-500,-10,0.1,99.100.101,500
Answers
C.
-500,-10,0.1,99.100.101,500
D.
0, 1.99, 100
Answers
D.
0, 1.99, 100
Suggested answer: A

Explanation:

Using boundary analysis for x, the test cases are required to cover the values on and around the boundaries of x > 0 and x < 100. Therefore, the test cases should include -1, 0, 1, 99, 100, and 101. The value 0.1 is not a boundary value, and the values -500 and 500 are too far from the boundaries to be relevant.

asked 18/09/2024
GULNUR FICICILAR
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first