ExamGecko
Home Home / ISTQB / CTFL4

ISTQB CTFL4 Practice Test - Questions Answers, Page 23

Question list
Search
Search

Related questions











Which of the following statements about static testing and dynamic testing is TRUE?

A.
Static testing is better suited than dynamic testing for highlighting issues that could indicate inappropriate code modulansation.
A.
Static testing is better suited than dynamic testing for highlighting issues that could indicate inappropriate code modulansation.
Answers
B.
Dynamic testing can only be applied to executable work products, while static testing can only be applied to non-executable work products.
B.
Dynamic testing can only be applied to executable work products, while static testing can only be applied to non-executable work products.
Answers
C.
Both dynamic testing and static testing cause failures, but failures caused by static testing are usually easier and cheaper to analyse.
C.
Both dynamic testing and static testing cause failures, but failures caused by static testing are usually easier and cheaper to analyse.
Answers
D.
Security vulnerabilities can only be detected when the software is being executed, and thus they can only be detected through dynamic testing, not through static testing
D.
Security vulnerabilities can only be detected when the software is being executed, and thus they can only be detected through dynamic testing, not through static testing
Answers
Suggested answer: A

Explanation:

Static testing, such as code reviews and static analysis, is particularly effective at identifying issues related to code structure and modularization. These techniques allow for the inspection of the code without executing it, making it easier to spot problems related to how the code is organized. Dynamic testing, on the other hand, focuses on the execution of code and is better suited for identifying runtime issues but does not easily reveal structural problems. The ISTQB CTFL Syllabus v4.0 highlights the strengths of static testing in uncovering such structural issue

Which of the following statements about the typical activities of a formal review process is TRUE?

A.
Individual review is only mandatory when the size of the work product under review is too large to cover at the review meeting
A.
Individual review is only mandatory when the size of the work product under review is too large to cover at the review meeting
Answers
B.
Various review techniques that may be applied by participants during individual review are described in the ISO/IEC/IEEE 29119-3 standard.
B.
Various review techniques that may be applied by participants during individual review are described in the ISO/IEC/IEEE 29119-3 standard.
Answers
C.
Choosing which standards to follow during the review process is usually made during review planning.
C.
Choosing which standards to follow during the review process is usually made during review planning.
Answers
D.
One of the main goals of the review meeting is to make sure that all participants are aware of their roles and responsibilities in the review process
D.
One of the main goals of the review meeting is to make sure that all participants are aware of their roles and responsibilities in the review process
Answers
Suggested answer: C

Explanation:

During the review planning stage, key decisions are made, including the selection of standards and procedures to be followed during the review. This planning phase ensures that the review process is structured and adheres to agreed-upon standards, which can come from industry standards such as ISO/IEC/IEEE 29119-3. The ISTQB CTFL Syllabus v4.0 emphasizes the importance of review planning in establishing the framework and guidelines for the review process.

Which of the following answers describes a reason for adopting experience-based testing techniques?

A.
Experience-based test techniques provide more systematic coverage cnteria than black-box and white-box test techniques
A.
Experience-based test techniques provide more systematic coverage cnteria than black-box and white-box test techniques
Answers
B.
Experience-based test techniques completely rely on the tester's past experience for designing test cases.
B.
Experience-based test techniques completely rely on the tester's past experience for designing test cases.
Answers
C.
Experience-based test techniques allow designing test cases that are usually easier to reproduce than those designed with black-box and white-box test techniques.
C.
Experience-based test techniques allow designing test cases that are usually easier to reproduce than those designed with black-box and white-box test techniques.
Answers
D.
Experience-based test techniques tend to find defects that may be difficult to find with black-box and white-box test techniques and are often useful to complement these more systematic techniques.
D.
Experience-based test techniques tend to find defects that may be difficult to find with black-box and white-box test techniques and are often useful to complement these more systematic techniques.
Answers
Suggested answer: D

Explanation:

Experience-based testing techniques leverage the tester's intuition and prior experience to identify defects that systematic techniques might miss. These techniques are valuable because they can uncover issues based on real-world usage and scenarios that aren't always covered by more formalized black-box and white-box methods. The ISTQB CTFL Syllabus v4.0 highlights the complementary nature of experience-based techniques in providing a broader defect detection strategy.

Which of the following statements about statement coverage is TRUE?

A.
Achieving 90% statement coverage ensures that 90% branch coverage is achieved.
A.
Achieving 90% statement coverage ensures that 90% branch coverage is achieved.
Answers
B.
Achieving 100% statement coverage ensures that no variable within the code has been used without being initialised.
B.
Achieving 100% statement coverage ensures that no variable within the code has been used without being initialised.
Answers
C.
Achieving 100% statement coverage ensures that 100% branch coverage is achieved
C.
Achieving 100% statement coverage ensures that 100% branch coverage is achieved
Answers
D.
Achieving 80% statement coverage ensures that 80% of all executable statements within the code have been exercised.
D.
Achieving 80% statement coverage ensures that 80% of all executable statements within the code have been exercised.
Answers
Suggested answer: D

Explanation:

Statement coverage measures the percentage of executable statements that have been exercised by a test suite. Achieving 80% statement coverage means that 80% of the executable code lines have been tested. This metric helps in understanding how much of the code has been covered during testing. However, it does not guarantee branch coverage, variable initialization, or detection of all possible defects. The ISTQB CTFL Syllabus v4.0 explains statement coverage as a measure of the extent to which the code has been tested, without implying other types of coverage or testing goals.

Which of the following statements about white-box testing is FALSE?

A.
Static testing can benefit from using code-related white-box test techniques during code reviews.
A.
Static testing can benefit from using code-related white-box test techniques during code reviews.
Answers
B.
White-box testing allows suggesting test cases for increasing coverage levels which are based on objective measures
B.
White-box testing allows suggesting test cases for increasing coverage levels which are based on objective measures
Answers
C.
Achieving full code coverage for a component or a system ensures that it has been fully tested
C.
Achieving full code coverage for a component or a system ensures that it has been fully tested
Answers
D.
Black-box testing can benefit from using code-related white-box test techniques to increase confidence in the code.
D.
Black-box testing can benefit from using code-related white-box test techniques to increase confidence in the code.
Answers
Suggested answer: C

Explanation:

Achieving full code coverage does not guarantee that the component or system is fully tested or free of defects. Code coverage metrics indicate the extent to which the source code has been tested, but they do not account for the quality of the tests or whether all possible scenarios have been considered. Other types of testing, including functional, performance, and security testing, are necessary to ensure comprehensive testing. The ISTQB CTFL Syllabus v4.0 highlights that while high code coverage is beneficial, it does not equate to complete testing.

Exploratory testing is an experience-based test technique

A.
Where a developer and a tester work together on the same workstation while the developer actively writes code, the tester explores the code to find defects.
A.
Where a developer and a tester work together on the same workstation while the developer actively writes code, the tester explores the code to find defects.
Answers
B.
That can be organised into sessions guided by test charters outlining test objectives that will guide the testers' exploration
B.
That can be organised into sessions guided by test charters outlining test objectives that will guide the testers' exploration
Answers
C.
Where a team of testers explores all possible test techniques in order to determine the most suitable combination of these techniques to apply for a test project.
C.
Where a team of testers explores all possible test techniques in order to determine the most suitable combination of these techniques to apply for a test project.
Answers
D.
That aims at finding defects by designing tests that exercise all possible combinations of input values and preconditions
D.
That aims at finding defects by designing tests that exercise all possible combinations of input values and preconditions
Answers
Suggested answer: B

Explanation:

Exploratory testing is an experience-based test technique where testers actively engage with the software, learning about its behavior while simultaneously designing and executing tests. According to the ISTQB CTFL syllabus, exploratory testing can be structured into sessions guided by test charters, which outline the test objectives and provide direction for the testers' exploration. This method is particularly useful in situations where test documentation is limited or where rapid feedback is needed. Thus, option B correctly describes how exploratory testing can be organized.

Which of the following statements about checklist-based testing is TRUE?

A.
Checklist-based testing is a technique for managing the review meeting that can be applied in those reviews where the use of checklists is mandatory, as is often the case in formal reviews.
A.
Checklist-based testing is a technique for managing the review meeting that can be applied in those reviews where the use of checklists is mandatory, as is often the case in formal reviews.
Answers
B.
Checklist-based testing is a review technique that can be used in a formal review process where reviewers, during individual review, try to detect issues within the work product based on a checklist
B.
Checklist-based testing is a review technique that can be used in a formal review process where reviewers, during individual review, try to detect issues within the work product based on a checklist
Answers
C.
In checklist-based testing, using checklists at a high level of detail is more likely to produce test cases that are easier to reproduce than those using checklists at a low level of detail
C.
In checklist-based testing, using checklists at a high level of detail is more likely to produce test cases that are easier to reproduce than those using checklists at a low level of detail
Answers
D.
Checklists used in checklist-based testing should be reviewed periodically for updates as, over time, test cases designed using the same checklist may become less effective at finding defects.
D.
Checklists used in checklist-based testing should be reviewed periodically for updates as, over time, test cases designed using the same checklist may become less effective at finding defects.
Answers
Suggested answer: D

Explanation:

Checklist-based testing is a technique where testers use pre-determined checklists to ensure that important aspects of a work product are evaluated. Over time, these checklists should be reviewed and updated periodically to maintain their effectiveness in detecting defects. As systems evolve, outdated checklists may miss new types of defects, thus diminishing their usefulness. Therefore, statement D is true according to the ISTQB CTFL syllabus.

Which of the following statements is TRUE?

A.
User acceptance tests are usually automated and aim to verify the acceptance criteria for user stories
A.
User acceptance tests are usually automated and aim to verify the acceptance criteria for user stories
Answers
B.
Acceptance criteria for user stories can include details on data definitions, for example by describing the format, allowed values, and default values for a data item
B.
Acceptance criteria for user stories can include details on data definitions, for example by describing the format, allowed values, and default values for a data item
Answers
C.
Acceptance criteria for user stones should focus on positive scenarios, while negative scenarios should be excluded
C.
Acceptance criteria for user stones should focus on positive scenarios, while negative scenarios should be excluded
Answers
D.
Tests derived from acceptance criteria for user stories are not included in any of the four testing quadrants
D.
Tests derived from acceptance criteria for user stories are not included in any of the four testing quadrants
Answers
Suggested answer: B

Explanation:

Acceptance criteria for user stories often include detailed specifications about data definitions, such as the format, allowed values, and default values for a data item. This helps ensure that the developed feature meets the expected requirements and provides a clear understanding for both developers and testers on what needs to be validated. Therefore, statement B is true as per the ISTQB CTFL syllabus.

A requirement specifies that a certain identifier (ID) must be between 5 and 10 characters long, must contain only alphanumenc characters, and its first character must be a letter As a tester, you want to apply one-dimensional equivalence partitioning to test this ID. This means that you have to apply equivalence partitioning individually: to the length of the ID, the type of characters contained within the ID, and the type of the first character of the ID. What is the number of partitions to cover?

A.
7.
A.
7.
Answers
B.
6.
B.
6.
Answers
C.
5.
C.
5.
Answers
D.
3.
D.
3.
Answers
Suggested answer: A

Explanation:

To apply one-dimensional equivalence partitioning to the ID requirement, we need to consider each condition individually:

Length of the ID: Valid partitions (5-10 characters), Invalid partitions (less than 5, more than 10) = 3 partitions.

Type of characters: Valid partitions (alphanumeric), Invalid partitions (non-alphanumeric) = 2 partitions.

First character: Valid partitions (letter), Invalid partitions (non-letter) = 2 partitions. Adding these partitions, we get a total of 3 (length) + 2 (character type) + 2 (first character) = 7 partitions. Thus, the correct answer is A.

A requirement specifies that if the total amount of sales (TAS) made during the year by a corporate seller is 300,000 or more, the bonus that must be paid to the seller is 100% of a certain amount agreed upon at the beginning of the year. The software contains a fault as it implements this requirement with the decision 'IF (TAS = 300,000)' instead of 'IF (TAS >= 300.000)'. The application of the 3-value boundary value analysis to this problem consists of the following three test cases (TAS is an integer variable):

TC1 = 299,999 TC2=300,000 TC=300,001

Which of the following statements is TRUE?

A.
TC1 would highlight the fault
A.
TC1 would highlight the fault
Answers
B.
TC2 would highlight the fault
B.
TC2 would highlight the fault
Answers
C.
TC3 would highlight the fault
C.
TC3 would highlight the fault
Answers
D.
None of the three test cases would highlight the fault.
D.
None of the three test cases would highlight the fault.
Answers
Suggested answer: B

Explanation:

The requirement specifies that a bonus should be paid if the total amount of sales (TAS) made during the year is 300,000 or more. The software incorrectly implements this requirement with 'IF (TAS = 300,000)' instead of 'IF (TAS >= 300,000)'. Using boundary value analysis (BVA), which is a common technique in software testing, the three test cases provided (TC1 = 299,999, TC2 = 300,000, and TC3 = 300,001) cover the critical boundary values around the condition.

TC1 tests just below the boundary (299,999),

TC2 tests exactly at the boundary (300,000),

TC3 tests just above the boundary (300,001).

Since the software incorrectly checks for TAS equal to 300,000, only TC2 will fail because the condition is exactly met and highlights the incorrect implementation of the decision logic.

Total 288 questions
Go to page: of 29