ExamGecko
Home Home / ISTQB / CTAL-TTA

ISTQB CTAL-TTA Practice Test - Questions Answers, Page 13

Question list
Search
Search

List of questions

Search

Related questions











Which option below BEST explains the value of a test charter in exploratory testing'5

SELECT ONE OPTION

A.
It provides expected test outcomes against which defects, if found, can be reported.
A.
It provides expected test outcomes against which defects, if found, can be reported.
Answers
B.
It provides guidance for the tester at the beginning of a test session
B.
It provides guidance for the tester at the beginning of a test session
Answers
C.
it provides bi-directional traceability to aspects of the epic or story under test
C.
it provides bi-directional traceability to aspects of the epic or story under test
Answers
D.
It provides a way to prevent a test session's timebox from being exceeded
D.
It provides a way to prevent a test session's timebox from being exceeded
Answers
Suggested answer: B

Explanation:

The value of a test charter in exploratory testing is that it provides guidance for the tester at the beginning of a test session. This helps structure the exploratory testing process by defining objectives, scope, and potential test ideas, while still allowing the flexibility inherent in this testing approach .

A unit test should be isolated Which option correctly describes the meaning of 'isolated' as a characteristic of a unit test?

SELECT ONE OPTION

Whenever it is run under the same conditions, it should produce the same results.

A.
It should only test the functionality related to it.
A.
It should only test the functionality related to it.
Answers
B.
it should provide immediate feedback.
B.
it should provide immediate feedback.
Answers
C.
It should test only the code for which it was originally written
C.
It should test only the code for which it was originally written
Answers
Suggested answer: C

Explanation:

The term 'isolated' as a characteristic of a unit test means that it should test only the code for which it was originally written. This ensures that the unit test is focused, minimizes dependencies on other parts of the codebase, and errors can be traced back to specific units without ambiguity .

A unit test should be deterministic. Which option correctly describes the meaning of 'deterministic' as a characteristic of a unit test9

SELECT ONE OPTION

A.
It should be small so that many tests can be run in a short period of time
A.
It should be small so that many tests can be run in a short period of time
Answers
B.
Whenever it is run under the same conditions, it should produce the same results.
B.
Whenever it is run under the same conditions, it should produce the same results.
Answers
C.
it should not depend on any other test.
C.
it should not depend on any other test.
Answers
D.
It should only test the functionality related to it.
D.
It should only test the functionality related to it.
Answers
Suggested answer: B

Explanation:

A unit test being 'deterministic' means that whenever it is run under the same conditions, it should produce the same results. This characteristic is crucial for reliable, repeatable testing outcomes that are not influenced by external factors or previous test states .

You need to implement a Java class that validates a password entry field. The validation critena states that the password must:

1. be a minimum of 8 characters

2 contain at least one special character.

You are focusing on validation criterion 1 and have written a test class that checks that a 7 character password entry will fail validation.

You have written code designed to make this test class pass, however, on first execution of the test class it has failed

What should you do next9

SELECT ONE OPTION

A.
Repair the failing code and re-execute it for the test class
A.
Repair the failing code and re-execute it for the test class
Answers
B.
Develop a test class with a 9 character password containing one special character and re-execute the code
B.
Develop a test class with a 9 character password containing one special character and re-execute the code
Answers
C.
Add code to cover special character validation criterion 2
C.
Add code to cover special character validation criterion 2
Answers
D.
Refactor the failing code to improve its design and structure
D.
Refactor the failing code to improve its design and structure
Answers
Suggested answer: A

Explanation:

When a test class that validates a specific criterion (such as the minimum length of a password) fails, the immediate next step is to repair the failing code and re-execute the test. This approach adheres to the test-driven development (TDD) practices, where the cycle of writing a failing test, making it pass, and then refactoring is repeated. It ensures that each validation criterion is correctly implemented before moving on to additional functionalities or validations .

Your team is developing an e-shop application (the SUT) that will use a third-party service to process payments via an API. This third-party payment gateway is itself still under development Which statement contains a pair of benefits that can BOTH be expected from service virtualization in this circumstance'

SELECT ONE OPTION

A.
Earlier discovery of defects in the SUT; the ability to share code between the SUT and the payment gateway.
A.
Earlier discovery of defects in the SUT; the ability to share code between the SUT and the payment gateway.
Answers
B.
Parallel compilation, continuous integration, and test automation; more effective configuration management.
B.
Parallel compilation, continuous integration, and test automation; more effective configuration management.
Answers
C.
Realistic testing of the SUT before the actual payment gateway is available, simplification of the test environment
C.
Realistic testing of the SUT before the actual payment gateway is available, simplification of the test environment
Answers
D.
Earlier testing of the API, reduction in the amount of test data needed
D.
Earlier testing of the API, reduction in the amount of test data needed
Answers
Suggested answer: C

Explanation:

Service virtualization in the context of developing an e-shop application with an external payment gateway (still under development) offers significant benefits. It allows for realistic testing of the System Under Test (SUT) by simulating the behavior of the still-developing payment gateway, thus enabling testing to proceed without the actual service being available. Additionally, it simplifies the test environment by reducing the complexities associated with integrating and maintaining a live external service during development and testing phases .

The F in the mnemonic FIRST stands for Fast Which option correctly states the meanings of the other four letters (IRST)?

SELECT ONE OPTION

A.
isolated, Reliable. Self-Verifying, Timely.
A.
isolated, Reliable. Self-Verifying, Timely.
Answers
B.
Independent, Reliable, Self-Validating, Timely
B.
Independent, Reliable, Self-Validating, Timely
Answers
C.
independent. Repeatable, Self-Verifying, Thorough.
C.
independent. Repeatable, Self-Verifying, Thorough.
Answers
D.
Isolated. Repeatable. Self-Validating, Thorough.
D.
Isolated. Repeatable. Self-Validating, Thorough.
Answers
Suggested answer: A

Explanation:

The mnemonic FIRST is used to describe qualities of good unit tests in software development. Here, each letter stands for a critical attribute:

Fast: Tests should be quick to run.

Isolated: Tests should not depend on each other.

Reliable: Tests should consistently return the same results.

Self-Verifying: Tests should fully check their own results.

Timely: Tests should be written in a timely manner relative to the writing of the tested code. This mnemonic helps ensure that unit tests are effective and contribute positively to the development process .

You are working on a project to develop an application that allows users to collaborate via bespoke, online whiteboards. The first release, delivering core functionality, highlighted misunderstandings of the user stories between testers, developers and the product owner during sprint development Since that release, the developers have agreed to implement a TDD approach for future software development.

Creation of the product backlog for the second release is underway and you have recommended to the project stakeholders that an atdd approach be adopted for the backlog's user stories. What would be a GOOD REASON for making this recommendation?

SELECT ONE OPTION

A.
The team wants to start using BDD and therefore atdd must also be used
A.
The team wants to start using BDD and therefore atdd must also be used
Answers
B.
The test strategy states that automation shall be used to minimize effort for execution of acceptance tests
B.
The test strategy states that automation shall be used to minimize effort for execution of acceptance tests
Answers
C.
TDD can only work effectively when an ATDD approach is used for the user stories use of attd examples will help address the misunderstandings encountered in release 1
C.
TDD can only work effectively when an ATDD approach is used for the user stories use of attd examples will help address the misunderstandings encountered in release 1
Answers
Suggested answer: C

Explanation:

Adopting an Acceptance Test-Driven Development (ATDD) approach can be particularly beneficial in scenarios where previous releases have suffered from misunderstandings among the development team and stakeholders regarding user story requirements. ATDD involves creating executable specifications before coding begins, which clarifies expectations and ensures alignment across the team. This method helps prevent issues seen in earlier stages by providing a clear, agreed-upon criteria for acceptance, thereby reducing the chances of future misunderstandings .

You have been given this piece of pseudocode to review Assume that the variables have been declared set and validated in code that precedes this piece that you are reviewing Looking only at this part of the code what requires further discussion?

If a < b then

If a > 12 then

seta = 21

else

set a = 23

endif

If b < 17 then

set a = 24

endif

lfb> 14

set a = 25

set b = 10

else

set a = 5

endif

else

set a = 7

endif

A.
Embedded if statements should not be used
A.
Embedded if statements should not be used
Answers
B.
A variable should not be set to multiple values within one code segment
B.
A variable should not be set to multiple values within one code segment
Answers
C.
A loop should have been used rather than the embedded if statements
C.
A loop should have been used rather than the embedded if statements
Answers
D.
An else statement may be missing
D.
An else statement may be missing
Answers
Suggested answer: D

Explanation:

The pseudocode presented for review exhibits a likely issue with the control structure, particularly a missing else statement. This inference is drawn from the unbalanced opening and closing of conditional statements. The inner conditional structures suggest alternative outcomes based on several conditions, but the snippet likely misses an else statement associated with the condition lfb > 14, which could lead to ambiguous or unintended code behavior when lfb <= 14. Such issues can make the code difficult to maintain and could introduce bugs if not addressed. Ensuring each if has a corresponding else can prevent such potential errors in branching logic.

Consider the following section of code:

If ((A > B) or (C > D)) and (E = F) then

print A:

Endif

Which of the following sets of test data can be used to achieve Modified Condition/Decision Coverage with the least number of tests?

A.
Set 3
A.
Set 3
Answers
B.
Set 4
B.
Set 4
Answers
C.
Set 2
C.
Set 2
Answers
D.
Set 1
D.
Set 1
Answers
Suggested answer: A

Explanation:

For Modified Condition/Decision Coverage (MC/DC), each condition within a decision must independently affect the decision's outcome. The provided sets of values need to be analyzed to ensure that each component of the decision ((A > B) or (C > D) and (E = F)) can independently influence the result of the combined expression. Set 3 includes variations for all variables that allow each condition to be tested both true and false independently while keeping the overall expression's outcome affected. This choice provides the most efficient path to achieving MC/DC with minimal tests.

Total 129 questions
Go to page: of 13