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

ASTQB Exam CTFL Topic 1 Question 69 Discussion

Actual exam question for ASTQB's ISTQB Foundation Level exam
Question #: 69
Topic #: 1
[All ISTQB Foundation Level Questions]

A software component has the code shown below:

Program BiggestA, Biggest: Integer Begin Read A Biggest = 10 While A > 0 Do If A > Biggest Then Biggest = A Endif Read A Enddo End

The component has exit criteria for component testing that include 100% statement coverage. Which of the following test cases will satisfy this criterion?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Nicolette
17 days ago
I think the answer is A) 0 because it covers all the statements in the code.
upvoted 0 times
...
Aleshia
22 days ago
Haha, this code looks like it was written by a programmer who just discovered the 'While' loop. But I'd say option C is the way to go.
upvoted 0 times
Walton
3 days ago
I think option C is the best test case scenario for this code.
upvoted 0 times
...
Cruz
10 days ago
Yeah, option C seems to be the most comprehensive choice.
upvoted 0 times
...
Bev
12 days ago
I agree, option C covers all the possibilities.
upvoted 0 times
...
...
Sylvie
24 days ago
I'm not sure, but I think both C) and D) could satisfy the criteria.
upvoted 0 times
...
Tiffiny
25 days ago
I'm going with C, 10, 5, 0. It's the most comprehensive test case that checks the program's behavior for different input values.
upvoted 0 times
Raelene
10 days ago
I agree, but C) 10, 5, 0 provides more thorough testing with additional input values.
upvoted 0 times
...
Geoffrey
17 days ago
I think B) 10, 0 would also cover all the statements in the code.
upvoted 0 times
...
...
Matthew
27 days ago
I disagree, I believe the answer is D) 10, 11, 0.
upvoted 0 times
...
Junita
1 months ago
I think the answer is C) 10, 5, 0.
upvoted 0 times
...
Stefany
1 months ago
Hmm, I'm torn between B and C. Both seem to cover all the statements, but C might be a bit more thorough in testing the different scenarios.
upvoted 0 times
Eve
14 days ago
I agree, C seems like a more thorough test case.
upvoted 0 times
...
Ilene
20 days ago
I think C covers more scenarios, so it might be the better choice.
upvoted 0 times
...
...
Tresa
1 months ago
D, 10, 11, 0 looks good to me. It covers all the different conditions, including the edge case where the input is greater than the current biggest value.
upvoted 0 times
...
Pauline
2 months ago
I think option B, 10, 0, is the answer. It hits all the statements in the code and satisfies the 100% statement coverage.
upvoted 0 times
Idella
17 days ago
I believe option D is incorrect, as it includes a value that is not greater than 10.
upvoted 0 times
...
Remedios
25 days ago
I think option C might also work, as it includes more values to test.
upvoted 0 times
...
Werner
27 days ago
I agree, option B covers all the statements in the code.
upvoted 0 times
...
...

Save Cancel