ExamGecko
Home Home / ISTQB / CTFL-2018

ISTQB CTFL-2018 Practice Test - Questions Answers, Page 13

Question list
Search
Search

Related questions











Which of the following is a consideration when deploying test execution tools? [K1]

A.
Data-driven testing cannot be used with test execution tools
A.
Data-driven testing cannot be used with test execution tools
Answers
B.
Recorded manual tests may become unstable in use
B.
Recorded manual tests may become unstable in use
Answers
C.
Keyword-driven testing cannot be used with test execution tools
C.
Keyword-driven testing cannot be used with test execution tools
Answers
D.
Expected results for tests are not required because the tool generates expected results
D.
Expected results for tests are not required because the tool generates expected results
Answers
Suggested answer: B

Explanation:

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

Which of the following correctly states a limitation in the use of static analysis tools? [K1]

A.
Static analysis tools can be applied to new code but cannot be applied to existing code
A.
Static analysis tools can be applied to new code but cannot be applied to existing code
Answers
B.
Static analysis tools can be used to enforce coding standards
B.
Static analysis tools can be used to enforce coding standards
Answers
C.
Static analysis tools always generate large numbers of warning messages when applied to new code, even if the code meets coding standards
C.
Static analysis tools always generate large numbers of warning messages when applied to new code, even if the code meets coding standards
Answers
D.
Static analysis tools do not generate warning messages when applied to existing code
D.
Static analysis tools do not generate warning messages when applied to existing code
Answers
Suggested answer: C

Explanation:

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.

What is the main reason for using a pilot project to introduce a testing tool into an organization? [K1]

A.
To identify the requirements for using a tool
A.
To identify the requirements for using a tool
Answers
B.
To make a selection between alternative tools
B.
To make a selection between alternative tools
Answers
C.
To assess whether the tool will be cost- effective
C.
To assess whether the tool will be cost- effective
Answers
D.
To ensure the tools fits existing processes without change
D.
To ensure the tools fits existing processes without change
Answers
Suggested answer: C

Explanation:

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.

Which of the following BEST describes the relationship between test planning and test execution? [K2]

A.
Test planning ensures the level of detail in test procedures is appropriate for test execution
A.
Test planning ensures the level of detail in test procedures is appropriate for test execution
Answers
B.
Test planning schedules test execution but does not assign resources
B.
Test planning schedules test execution but does not assign resources
Answers
C.
Test planning defines the overall approach to testing but does not schedule specific activities such as test execution
C.
Test planning defines the overall approach to testing but does not schedule specific activities such as test execution
Answers
D.
Test planning identifies test objectives related to scope and risk but does not define the level of detail for test procedures used in test execution
D.
Test planning identifies test objectives related to scope and risk but does not define the level of detail for test procedures used in test execution
Answers
Suggested answer: A

Explanation:

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.

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

A.
Statement coverage is 100%; decision coverage is 100%
A.
Statement coverage is 100%; decision coverage is 100%
Answers
B.
Statement coverage is less than 100%; decision coverage is 100%.
B.
Statement coverage is less than 100%; decision coverage is 100%.
Answers
C.
Statement coverage is 100%; decision coverage is less than 100%
C.
Statement coverage is 100%; decision coverage is less than 100%
Answers
D.
Statement coverage and decision coverage are both less than 100%
D.
Statement coverage and decision coverage are both less than 100%
Answers
Suggested answer: D

Explanation:

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.

Which of the following test cases will ensure that the statement 'Print 'Hold'' is exercised? [K3]

Refer to the exhibit

A.
X=2, Y=2, Z=2
A.
X=2, Y=2, Z=2
Answers
B.
X=2, Y=3, Z=4
B.
X=2, Y=3, Z=4
Answers
C.
X=2, Y=4, Z=3
C.
X=2, Y=4, Z=3
Answers
D.
X=4, Y=3, Z=2
D.
X=4, Y=3, Z=2
Answers
Suggested answer: C

Explanation:

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.

Which of the test cases below will exercise both outcomes from decision 2? [K3]

Refer to the exhibit

A.
P = 24, Q = 20, P=24, Q=25
A.
P = 24, Q = 20, P=24, Q=25
Answers
B.
P = 36, Q = 36, P=37, Q=35
B.
P = 36, Q = 36, P=37, Q=35
Answers
C.
P = 42, Q = 43, P=42, Q=42
C.
P = 42, Q = 43, P=42, Q=42
Answers
D.
P = 37, Q = 36, P=35, Q=36
D.
P = 37, Q = 36, P=35, Q=36
Answers
Suggested answer: B

Explanation:

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.

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]

A.
Carol is eligible to upgrade; James cannot use the service
A.
Carol is eligible to upgrade; James cannot use the service
Answers
B.
Carol is OK to travel; James is eligible for an upgrade
B.
Carol is OK to travel; James is eligible for an upgrade
Answers
C.
Carol and James are both eligible to upgrade
C.
Carol and James are both eligible to upgrade
Answers
D.
Carol is OK to travel; James cannot use the service
D.
Carol is OK to travel; James cannot use the service
Answers
Suggested answer: A

Explanation:

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.

How does software testing contribute to the quality of delivered software? [K2]

A.
By detecting and removing all the defects in the delivered code and ensuring that all tests adhere to the quality standards set for the project
A.
By detecting and removing all the defects in the delivered code and ensuring that all tests adhere to the quality standards set for the project
Answers
B.
By measuring reliability of the software and ensuring that it is always above 99.99%
B.
By measuring reliability of the software and ensuring that it is always above 99.99%
Answers
C.
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
C.
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
Answers
D.
By detecting all deviations from coding good practice and ensuring that these are corrected
D.
By detecting all deviations from coding good practice and ensuring that these are corrected
Answers
Suggested answer: C

Explanation:

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.

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]

A.
The application failed because of a defect in the purchase identification module caused by a programmer mistake or an error in the specification.
A.
The application failed because of a defect in the purchase identification module caused by a programmer mistake or an error in the specification.
Answers
B.
An error by the programmer led to a mistake in the purchase identification module and this caused a defect in the application
B.
An error by the programmer led to a mistake in the purchase identification module and this caused a defect in the application
Answers
C.
A defect in the purchase identification module caused by a mistake in the module specification led to a defect in the overall application
C.
A defect in the purchase identification module caused by a mistake in the module specification led to a defect in the overall application
Answers
D.
A bug in the purchase identification module caused a fault in the application
D.
A bug in the purchase identification module caused a fault in the application
Answers
Suggested answer: A

Explanation:

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.

Total 365 questions
Go to page: of 37