New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB ATTA Exam - Topic 1 Question 17 Discussion

Actual exam question for ISTQB's ATTA exam
Question #: 17
Topic #: 1
[All ATTA Questions]

Consider the following code fragment

If (a>b) and (b>c) then

b = (a+c)/2

endif

Assume that in the following options, each of the three numbers in parenthesis represent the inputs for a test case, where the first number represents variable ''a'', the second number represents variable ''b'', and the third number represents variable ''c''. Which of the following gives a set of test case inputs that achieves 100% decision coverage for this fragment of code with the minimum number of test cases? 2 credits [K3]

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Theron
4 months ago
Definitely leaning towards B for the minimum test cases.
upvoted 0 times
...
Daren
4 months ago
Wait, can you really cover all decisions with just two cases?
upvoted 0 times
...
Page
4 months ago
A is too simple, it won't cover all cases.
upvoted 0 times
...
Lavina
4 months ago
I think C is better for coverage.
upvoted 0 times
...
Bernardine
5 months ago
Option B gives both true and false paths.
upvoted 0 times
...
Mica
5 months ago
I thought option C looked good too, but I’m not confident if it covers the false condition properly. I guess I’ll have to double-check the logic.
upvoted 0 times
...
Berry
5 months ago
I practiced a similar question where we had to cover all paths. I feel like we need to ensure that both conditions in the if statement are tested.
upvoted 0 times
...
Mitzie
5 months ago
I’m not entirely sure, but I think option B might be right because it has two test cases that could cover both branches of the if statement.
upvoted 0 times
...
Mattie
5 months ago
I remember we talked about decision coverage and how we need to test both true and false conditions. I think we need at least two cases for this.
upvoted 0 times
...
Annabelle
5 months ago
I'm a little confused by the different SQL injection types mentioned. I'll need to review my notes on SQL injection techniques to make sure I understand which ones would work best for this scenario.
upvoted 0 times
...
Mabel
5 months ago
I'm pretty confident that option C is the best answer here. The key point is that the invoice-related services are not using a centralized and standardized invoice service, which is a core principle of the Contract Centralization pattern. The other options don't seem to fully capture the issue.
upvoted 0 times
...
Ira
5 months ago
This seems straightforward. I'll focus on the key details - the admin server has crashed and we need to start the managed servers in MSI mode. The question is asking which two files need to be copied from the admin server to the managed servers.
upvoted 0 times
...

Save Cancel