CTFL-2018: ISTQB Certified Tester Foundation Level 2018
ISTQB
Related questions
Which of the following defects-can NOT be found by static analysis tools?
Explanation:
Wrong business rules are defects that cannot be found by static analysis tools, because they are logical or functional errors that depend on the context and requirements of the software13.A static analysis tool can only detect syntactic or structural errors in the code or design of the software under test, but not whether they match the intended business rules or logic13. The other options are defects that can be found by static analysis tools.Option A is a defect that can be found by a static analysis tool, because it is a structural error that causes the code to loop indefinitely without terminating13.Option C is a defect that can be found by a static analysis tool, because it is a syntactic error that causes the code to fail to compile or run13.Option D is a defect that can be found by a static analysis tool, because it is a structural error that indicates a waste of memory or a possible logic flaw
For a mandatory input field 'ZIP code' the following rules are given:
1 - The valid ZIP code format is 5 numeric digits
2 - The code has to exist in the pest office's official ZIP code list
Using equivalence classes partitioning, how many test cases are required to test this field?
Which of the following statements gives the BEST example of a trigger for maintenance testing?
Your company is developing a system with complex business rules and many branches in the structure of its code components. You need to choose one black box technique and one white box technique for test case design.
Which one of the following offers the BEST choice?
Explanation:
Boundary value analysis and decision table testing are the best choice of one black box technique and one white box technique for test case design2.A black box technique is a technique that uses the external behaviour or specification of a system as a test basis to derive test cases without referring to its internal structure or logic2.A white box technique is a technique that uses the internal structure or logic of a system as a test basis to derive test cases and measure test coverage2. In this question, the system has complex business rules and many branches in the structure of its code components. Therefore, we need to choose a black box technique that can handle complex business rules and a white box technique that can cover many branches.
Boundary value analysis is a black box technique that tests the values at or near the boundaries of an equivalence partition2.Boundary value analysis can handle complex business rules by identifying the boundary conditions that may cause errors or exceptions in the system's behaviour2.
Decision table testing is a white box technique that tests all possible combinations of conditions and actions in a decision logic2.Decision table testing can cover many branches by creating a table that shows how each condition affects each action and then deriving test cases from each row of the table2.
Therefore, boundary value analysis and decision table testing are the best choice of one black box technique and one white box technique for test case design.
Which of the following statements BEST states the value of static testing?
Which of the following test cases will ensure that the statement 'Print 'Hold'' is exercised? [K3]
Refer to the exhibit
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 following Is the BEST reason for selecting a particular type of software development lifecycle model?
Consider the following Pseudo code:
How many minimum lea cases are required to cover 100% Statement coverage and Decision coverage?
Explanation:
To achieve 100% statement coverage, we need to execute every statement in the code at least once. To achieve 100% decision coverage, we need to execute every possible outcome of every decision in the code at least once. In this case, we can use the following test cases to cover both statement and decision coverage:
A = true, B = true
A = false, B = false
These two test cases will cover all the statements and all the possible outcomes of the decisions in the code. Therefore, the minimum number of test cases required to achieve both statement and decision coverage is two.
Which of the following CORRECTLY matches a tester's ability to communicate about defects, test results, and other test Information well?
Which statement correctly describes debugging? [K2]
Explanation:
Testers identify defects, developers locate and correct defects, testers confirm the correction has cleared the original defect. Debugging is the process of finding and fixing defects in a software product by analyzing its code or behavior. Debugging is usually performed by developers who have access to and knowledge of the code or structure of the software product. Debugging involves locating and correcting defects identified by testers during testing activities, and verifying that the correction has cleared the original defect without introducing new defects. Testers can also participate in debugging by providing information about how to reproduce defects, what are the expected results, what are the actual results, etc., and by confirming that defects have been fixed after debugging. A detailed explanation of debugging can be found in [A Study Guide to the ISTQB Foundation Level 2018 Syllabus], page 6.
Question