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 ATTA Exam - Topic 1 Question 17 Discussion

Posted by Shawnda on May 09, 2022 at 12:27 PM

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]

Suggested Answer: C

Get Premium ATTA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
TH
Theron 11 months ago
Definitely leaning towards B for the minimum test cases.
DA
Daren 12 months ago
Wait, can you really cover all decisions with just two cases?
PA
Page 12 months ago
A is too simple, it won't cover all cases.
LA
Lavina 12 months ago
I think C is better for coverage.
BE
Bernardine 1 year ago
Option B gives both true and false paths.
MI
Mica 1 year 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.
BE
Berry 1 year 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.
MI
Mitzie 1 year 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.
MA
Mattie 1 year 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.
AN
Annabelle 1 year 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.
MA
Mabel 1 year 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.
IR
Ira 1 year 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.
0/2000 characters

Save Cancel