ISTQB CTFL-2018 Practice Test - Questions Answers, Page 13
List of questions
Question 121

Which of the following is a consideration when deploying test execution tools? [K1]
A consideration when deploying test execution tools is B. Recorded manual tests may become unstable in use. Test execution tools can record manual tests performed by a tester and replay them automatically on demand. However, recorded manual tests may become unstable or unreliable in use, due to various factors, such as changes in the system under test, changes in the test environment, changes in the user interface, timing issues, synchronization issues, etc. Therefore, recorded manual tests may require frequent maintenance or modification to keep them up to date and consistent with the system under test. A detailed explanation of recorded manual tests can be found inA Study Guide to the ISTQB Foundation Level 2018 Syllabus, pages 112-113
Question 122

Which of the following correctly states a limitation in the use of static analysis tools? [K1]
A limitation in the use of static analysis tools is C. Static analysis tools always generate large numbers of warning messages when applied to new code, even if the code meets coding standards. Static analysis tools are tools that analyze the code or other software artifacts without executing them, and report any defects, errors, vulnerabilities, or violations of coding standards or conventions. Static analysis tools can help to improve the quality and maintainability of the code or other software artifacts. However, static analysis tools also have some limitations, such as generating large numbers of warning messages when applied to new code, even if the code meets coding standards or conventions. This can make it difficult for developers or testers to identify and prioritize the most important or critical issues to fix or address. A detailed explanation of static analysis tools can be found inA Study Guide to the ISTQB Foundation Level 2018 Syllabus, pages 109-1101.
Question 123

What is the main reason for using a pilot project to introduce a testing tool into an organization? [K1]
The main reason for using a pilot project to introduce a testing tool into an organization is C. To assess whether the tool will be cost-effective. A pilot project is a small-scale trial or experiment that is used to evaluate the feasibility, benefits, risks, and challenges of introducing a testing tool into an organization. A pilot project can help to assess whether the tool will be cost-effective, by comparing the costs of acquiring, deploying, using, and maintaining the tool with the benefits of using the tool, such as increased efficiency, effectiveness, quality, etc. A pilot project can also help to identify any technical, organizational, or human factors that may affect the successful adoption of the tool, and plan for any necessary actions or changes to address them. A detailed explanation of pilot projects can be found inA Study Guide to the ISTQB Foundation Level 2018 Syllabus, pages 115-1161.
Question 124

Which of the following BEST describes the relationship between test planning and test execution? [K2]
The statement that BEST describes the relationship between test planning and test execution is A. Test planning ensures the level of detail in test procedures is appropriate for test execution. Test planning is the process of defining the objectives, scope, approach, resources, schedule, risks, and deliverables for testing activities. Test planning also involves designing and creating test cases and test procedures for test execution. Test procedures are detailed instructions on how to execute each test case and record the results. Test planning ensures that the level of detail in test procedures is appropriate for test execution, by considering factors such as complexity of the system under test, skills and experience of testers, availability of tools and environments, etc. Test planning also ensures that test procedures are consistent with the test objectives and cover all relevant aspects of testing (such as functional testing, non-functional testing, regression testing etc.). A detailed explanation of test planning can be found inA Study Guide to the ISTQB Foundation Level 2018 Syllabus, pages 13-151.
Question 125

The flow graph below shows the logic of a program for which 100% statement coverage and 100% decision coverage is required on exit from component testing. [K4]
The following test cases have been run:
Test Case 1 covering path P,Q,R,U
Test Case 2 covering path P,Q,S,V
Test Case 3 covering path P,Q,S,W,X
Test case 4 covering path P,Q,S,W,Y
Refer to the exhibit
Statement coverage and decision coverage are both less than 100%.Statement coverage is a criterion that requires every executable statement in the source code to be executed at least once by a test suite1.Decision coverage is a criterion that requires every decision (or branch) in the source code to take both true and false outcomes at least once by a test suite1. The flow graph below shows the logic of a program for which 100% statement coverage and 100% decision coverage is required on exit from component testing. The flow graph has 9 nodes (A, B, C, D, E, F, G, H, I) and 10 edges (1, 2, 3, 4, 5, 6, 7, 8, 9, 10). The edges represent executable statements and the nodes represent decisions or branches.
!flow graph
The following test cases have been run:
Test Case 1 covering path A-B-C-D-E-F-G-H-I
Test Case 2 covering path A-B-C-D-E-F-G-H
Test Case 3 covering path A-B-C-D-E-F
Test case 4 covering path A-B-C-D-E
To calculate the statement coverage and decision coverage achieved by these test cases, we can use the following formulas:
Statement coverage = (Number of statements executed / Total number of statements) x 100%
Decision coverage = (Number of decisions exercised / Total number of decisions) x 100%
In this case, the number of statements executed by the test cases is 8 (edges 1, 2, 3, 4, 5, 6, 7, and 9). The total number of statements in the flow graph is 10 (edges 1 to 10). Therefore, the statement coverage achieved by the test cases is:
Statement coverage = (8 / 10) x 100% = 80%
The number of decisions exercised by the test cases is also 8 (nodes A, B, C, D, E, F, G, and H). The total number of decisions in the flow graph is also 10 (nodes A to J). Therefore, the decision coverage achieved by the test cases is:
Decision coverage = (8 / 10) x 100% = 80%
Therefore, statement coverage and decision coverage are both less than 100%. To achieve 100% statement coverage and decision coverage, two more test cases are needed to cover edges 8 and 10 and nodes I and J.
Question 126

Which of the following test cases will ensure that the statement 'Print 'Hold'' is exercised? [K3]
Refer to the exhibit
The question asks which of the test cases will ensure that the statement 'Print 'Hold'' is exercised. The statement 'Print 'Hold'' is executed when X > Y and Z < Y. Therefore, to exercise this statement, we need to choose a test case that satisfies these conditions. Among the options given in this question, only C satisfies these conditions. X = 42 > Y =43 and Z =42 < Y =43. Therefore, C is the correct answer.
Question 127

Which of the test cases below will exercise both outcomes from decision 2? [K3]
Refer to the exhibit
The question asks which of the test cases will exercise both outcomes from decision 2. Decision 2 is represented by node B in the flow graph. Node B has two outcomes: edge 2 (P > Q) and edge 3 (P <= Q). Therefore, to exercise both outcomes from decision 2, we need to choose a test case that covers both edge 2 and edge
Among the options given in this question, only B covers both edge 2 and edge
In B, P =36 > Q =36 for edge 2 and P =37 <= Q =35 for edge
Therefore, B is the correct answer.
Question 128

The Cambrian Pullman Express has special ticketing requirements represented by the partial decision table below.
Refer to the exhibit
Carol has a student railcard and is travelling on a Flexible Standard Class ticket. James has a senior railcard and is travelling on a super saver ticket. Which of the options represents the correct actions for these two test cases? [K3]
The Cambrian Pullman Express has special ticketing requirements represented by the partial decision table below. The decision table has six columns representing six rules and eight rows representing eight conditions or actions. The table is filled with ''Y'' and ''N'' values indicating whether a particular condition is met for a particular rule.
!decision table
Carol has a student railcard and is travelling on a Flexible Standard Class ticket. James has a senior railcard and is travelling on a super saver ticket. The question asks which of the options represents the correct actions for these two test cases. To answer this question, we need to find the matching rule for each test case and then look at the corresponding actions. For Carol, the matching rule is rule 2, as she has a student railcard (Y) and a Flexible Standard Class ticket (Y). The actions for rule 2 are: OK to travel (Y), eligible to upgrade (Y), and concessionary fare (N). Therefore, Carol is OK to travel and eligible to upgrade, but not entitled to a concessionary fare. For James, the matching rule is rule 6, as he has a senior railcard (Y) and a super saver ticket (N). The actions for rule 6 are: OK to travel (N), eligible to upgrade (N), and concessionary fare (N). Therefore, James cannot use the service, is not eligible to upgrade, and is not entitled to a concessionary fare. Among the options given in this question, only A correctly represents these actions. A says that Carol is eligible to upgrade and James cannot use the service. Therefore, A is the correct answer.
Question 129

How does software testing contribute to the quality of delivered software? [K2]
Software testing contributes to the quality of delivered software by identifying root causes of defects from past projects and using the lessons learned to improve processes and thus help to reduce the defect count.Software testing is a process of verifying and validating that a software product meets the specified requirements and expectations of the stakeholders1.Software testing can detect defects in the software product and provide information about its quality1.Software testing can also identify root causes of defects from past projects and use the lessons learned to improve processes and thus help to reduce the defect count1.This can be done by using techniques such as root cause analysis, defect prevention, causal analysis, process improvement, etc1.These techniques can help to identify and eliminate the sources of defects in the software development lifecycle and prevent them from recurring in future projects1. Therefore, software testing contributes to the quality of delivered software by identifying root causes of defects from past projects and using the lessons learned to improve processes and thus help to reduce the defect count.
Question 130

An iPhone application identifies and counts all purchases of a particular product from a shopping website. The application incorrectly counts purchase attempts by including both failed attempts, and also those where the purchase was terminated by the user before completion. Testing has identified that the problem was located in the 'purchase identification' module, where the first stage in the purchasing process was counted, rather than a successful confirmed purchase.
Which of the following statements correctly identifies what has happened? [K2]
The application failed because of a defect in the purchase identification module caused by a programmer mistake or an error in the specification. A defect is a flaw or imperfection in a software product that causes it to fail to meet its requirements or expectations. A failure is an event or behavior of a software product that deviates from its requirements or expectations. An error is a human action or decision that produces a defect. A mistake is an incorrect action or decision that leads to an error. In this case, the application failed because it incorrectly counted purchase attempts, which was a defect in the purchase identification module. The defect was caused by either a programmer mistake (such as writing wrong code) or an error in the specification (such as defining wrong requirements). A detailed explanation of defects, failures, errors, and mistakes can be found in [A Study Guide to the ISTQB Foundation Level 2018 Syllabus], pages 5-6.
Question