Cyber Monday 2024! 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 CTFL exam
Question #: 69
Topic #: 1
[All CTFL 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
3 months ago
I think the answer is A) 0 because it covers all the statements in the code.
upvoted 0 times
...
Aleshia
3 months 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
Shawna
2 months ago
Option C includes all the necessary values for testing this code.
upvoted 0 times
...
Walton
2 months ago
I think option C is the best test case scenario for this code.
upvoted 0 times
...
Cruz
2 months ago
Yeah, option C seems to be the most comprehensive choice.
upvoted 0 times
...
Bev
2 months ago
I agree, option C covers all the possibilities.
upvoted 0 times
...
...
Sylvie
3 months ago
I'm not sure, but I think both C) and D) could satisfy the criteria.
upvoted 0 times
...
Tiffiny
3 months 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
2 months ago
I agree, but C) 10, 5, 0 provides more thorough testing with additional input values.
upvoted 0 times
...
Geoffrey
3 months ago
I think B) 10, 0 would also cover all the statements in the code.
upvoted 0 times
...
...
Matthew
3 months ago
I disagree, I believe the answer is D) 10, 11, 0.
upvoted 0 times
...
Junita
3 months ago
I think the answer is C) 10, 5, 0.
upvoted 0 times
...
Stefany
3 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
2 months ago
I agree, C seems like a more thorough test case.
upvoted 0 times
...
Ilene
3 months ago
I think C covers more scenarios, so it might be the better choice.
upvoted 0 times
...
...
Tresa
3 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
4 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
3 months ago
I believe option D is incorrect, as it includes a value that is not greater than 10.
upvoted 0 times
...
Remedios
3 months ago
I think option C might also work, as it includes more values to test.
upvoted 0 times
...
Werner
3 months ago
I agree, option B covers all the statements in the code.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77