ISTQB-ATTA practice question 10 of 15
What is the value of statement coverage achieved by test case 1 from test set A? 2 credits [K3]
Full set: 65 questionsStatement coverage measures the percentage of executable statements in the source code that have been exercised by a test suite. To calculate this value for a specific test case, one must have access to the source code to determine the total number of executable statements and the details of the test case to trace its execution path. As these critical pieces of information are not provided in the question, a calculation cannot be performed, and no answer can be verified as correct.
The options A, B, C, and D represent specific coverage percentages. Without the source code and test case, there is no basis to confirm or deny any of these values. They are all unverifiable.
1. International Software Testing Qualifications Board (ISTQB). (2019). ISTQB Advanced Level Syllabus, Technical Test Analyst, Version 3.1.1. Section 3.2.1, "Statement Testing and Coverage," p. 29. This section defines statement coverage as "the percentage of executable statements that have been exercised by a test suite."
2. Ammann, P., & Offutt, J. (2016). Introduction to Software Testing (2nd ed.). Cambridge University Press. Chapter 2, "Coverage Criteria," Section 2.2, pp. 35-37. This university-level textbook explains that calculating statement coverage requires analyzing the source code to identify statements and tracing test inputs to see which statements are executed.
Keep practicing
Take the free ISTQB-ATTA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ISTQB-ATTA practice questions
- Question 3Which additional set of test cases is needed to achieve both 100% statement coverage and …
- Question 4How many test cases are needed to test code fragment lines 26 – 32 to achieve 100% condit…
- Question 6It has been suggested to organize a performance test to find out more regarding the third…
- Question 7To address reliability a number of measures will be taken throughout the development and …
- Question 8A developer has spent three days looking at a system that crashes now and then. The probl…
- Question 9Based on the state diagram above, how many test cases are needed to achieve 1-switch cove…
