How many test cases would be needed to achieve 100% statement coverage?
Answer(s): A
What is the number of nested levels for the code fragment?
Answer(s): C
The comment frequency of the code fragment is 13%. To which ISO 9126 quality attribute does a good level of comment frequency especially contribute?
Which specification-based technique could be used to enhance coverage for this code fragment?
Consider the following code fragmentIf (a>b) and (b>c) then b = (a+c)/2endifAssume 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?
Post your Comments and Discuss ISTQB ATTA exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the ATTA content, but please register or login to continue.