Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB CTAL-TTA Exam - Topic 2 Question 49 Discussion

Actual exam question for ISTQB's CTAL-TTA exam
Question #: 49
Topic #: 2
[All CTAL-TTA Questions]

You are testing software that will be used in nuclear power plants. The particular piece of code you are testing has been classified as SIL 2. The following section of code falls under this classification:

If ((A > B) or (C > D)) and (E = F) then print A

Endif

Which of the following sets of test data would supply the minimum tests needed to achieve the "highly recommended" level of coverage?

Show Suggested Answer Hide Answer
Suggested Answer: A

In software testing, especially within contexts like nuclear power plants, achieving a 'highly recommended' level of coverage often requires strategic test case selection to verify all logical conditions are accurately assessed. For the condition 'If ((A > B) or (C > D)) and (E = F) then print A', the critical tests involve evaluating the boolean logic.

Test Case Analysis: Test Set 1 is selected because it should ideally include scenarios where:

Both conditions (A > B) and (C > D) are true, and (E = F) is true to ensure the print statement executes.

One of the conditions (A > B) or (C > D) is false while the other is true, combined with (E = F) being true, to test the OR logic.

Both conditions (A > B) and (C > D) are false with (E = F) being true, which should not trigger the print statement, testing the AND logic.

Condition where (E != F), irrespective of other conditions, to confirm that the print statement does not execute.


Contribute your Thoughts:

0/2000 characters
Armanda
17 days ago
I practiced a similar question where we had to analyze conditions. I think Set 5 might be the one that meets the "highly recommended" level.
upvoted 0 times
...
Stanford
22 days ago
I'm not entirely sure, but I feel like Set 3 could also provide good coverage since it tests multiple conditions.
upvoted 0 times
...
Teri
27 days ago
I remember we discussed the importance of covering all logical paths in conditional statements. I think Set 2 might be the right choice for that.
upvoted 0 times
...

Save Cancel