ExamGecko
Question list
Search
Search

Related questions











Question 127 - CTFL-2018 discussion

Report
Export

Which of the test cases below will exercise both outcomes from decision 2? [K3]

Refer to the exhibit

A.
P = 24, Q = 20, P=24, Q=25
Answers
A.
P = 24, Q = 20, P=24, Q=25
B.
P = 36, Q = 36, P=37, Q=35
Answers
B.
P = 36, Q = 36, P=37, Q=35
C.
P = 42, Q = 43, P=42, Q=42
Answers
C.
P = 42, Q = 43, P=42, Q=42
D.
P = 37, Q = 36, P=35, Q=36
Answers
D.
P = 37, Q = 36, P=35, Q=36
Suggested answer: B

Explanation:

The question asks which of the test cases will exercise both outcomes from decision 2. Decision 2 is represented by node B in the flow graph. Node B has two outcomes: edge 2 (P > Q) and edge 3 (P <= Q). Therefore, to exercise both outcomes from decision 2, we need to choose a test case that covers both edge 2 and edge

Among the options given in this question, only B covers both edge 2 and edge

In B, P =36 > Q =36 for edge 2 and P =37 <= Q =35 for edge

Therefore, B is the correct answer.

asked 18/09/2024
Nidal Allamadani
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first