BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB Exam CTAL-TTA Topic 6 Question 19 Discussion

Actual exam question for ISTQB's CTAL-TTA exam
Question #: 19
Topic #: 6
[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:

Dorothy
2 months ago
Set 2 covers all the conditions in the code snippet, ensuring thorough testing.
upvoted 0 times
...
Xenia
2 months ago
Why do you think Set 2 is the correct answer?
upvoted 0 times
...
Dorothy
2 months ago
I disagree, I believe the answer is Set 2.
upvoted 0 times
...
Jamey
2 months ago
Hmm, wonder if the developers had a little too much caffeine when they wrote this code. Hope the testers are wide awake!
upvoted 0 times
Elza
2 months ago
B) Set 3
upvoted 0 times
...
Germaine
2 months ago
A) Set 1
upvoted 0 times
...
...
Xenia
3 months ago
I think the answer is Set 3.
upvoted 0 times
...
Myra
3 months ago
Set 2 seems like the best choice to cover the minimum tests. I mean, who wants to be responsible for a meltdown, right?
upvoted 0 times
Sophia
1 months ago
Sherman: Exactly, safety first when it comes to testing this kind of software.
upvoted 0 times
...
Sherman
1 months ago
Definitely, we can't take any chances with code that's used in nuclear power plants.
upvoted 0 times
...
Dominga
2 months ago
I agree, Set 2 looks like the safest option for testing.
upvoted 0 times
...
...
Levi
3 months ago
Looks like we need to test the edge cases for this SIL 2 code. Can't afford any mistakes in a nuclear power plant!
upvoted 0 times
Mickie
2 months ago
Let's make sure we test thoroughly before implementing this code.
upvoted 0 times
...
Holley
2 months ago
I think we should go with Set 3 for the tests, it covers the edge cases well.
upvoted 0 times
...
Alton
2 months ago
I agree, safety is the top priority when it comes to nuclear power plants.
upvoted 0 times
...
Casandra
2 months ago
We definitely need to cover all possible scenarios with this code.
upvoted 0 times
...
...

Save Cancel