ISTQB Certified Tester Advanced Level Technical Test Analyst Exam Practice Test

Page: 1 / 14
Total 129 questions
Question 1

What is the common name for a type of automated testing technique that separates test input data and expected test results from the control script used to execute all of the tests?



Answer : B

The common name for the automated testing technique that separates test input data and expected results from the control script is Keyword-driven testing. In this approach, test scripts are written using keywords related to the application under test, which are easy to read and can be interpreted by a script engine to perform testing actions.


Question 2

You are conducting security tests on an e-commerce application. Many core areas have been tested and found to have no issues. Protection of users' private information has also been verified. You are now focusing on testing the UI, which captures query information from the user. Which of the following defect types should you target in your testing?



Answer : B

In UI testing, especially for e-commerce applications where query information is captured from users, it's crucial to ensure that all user messages are accurate and clear. This includes error messages, information prompts, and any feedback provided to the user based on their input. Inaccurate user messages can lead to user confusion, dissatisfaction, and potentially improper use of the application, which might compromise data integrity or lead to user errors. Testing for inaccurate user messages ensures that users receive correct and useful information that guides their interaction with the application effectively. This focus aligns with UI testing best practices that prioritize user experience and error handling, as detailed in standards like ISO 9241, which focuses on ergonomics of human-system interaction.


Question 3

Given the following code:

If x > y and z = 3 statement!

elself z = 4

statement2

endif;

What is the minimum number of tests needed to achieve 100% statement coverage?



Answer : B

To achieve 100% statement coverage, you need to ensure every executable statement in the code is executed at least once during testing. Given the code:

If x > y and z = 3 statement1 elseif z = 4 statement2 endif;

Two tests are required:

Test 1: Set x > y and z = 3 to execute statement1.

Test 2: Set z = 4 (irrespective of the condition x > y) to execute statement2.

With these two tests, both conditions that lead to the execution of statement1 and statement2 are covered.


Question 4

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?



Answer : A

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.


Question 5

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



Answer : D

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.


Question 6

Which of the following test categories would best characterize a test designed to confirm that the data backup tapes stored offsite by a bank can be retrieved and loaded within the business process service level agreement?



Answer : D

Testing that focuses on confirming that data backup tapes can be retrieved and loaded within specified service levels is classified as Continuity Testing. This type of testing ensures that business processes can continue after a disruption, such as data loss or system failure.


Question 7

You are testing software that will be used in nuclear power plants. The particular piece of code you are testing has been classified as SIL 2. The following section of code falls under this classification:

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

Endif

Which of the following sets of test data would supply the minimum tests needed to achieve the "highly recommended" level of coverage?



Answer : A

In software testing, especially within contexts like nuclear power plants, achieving a 'highly recommended' level of coverage often requires strategic test case selection to verify all logical conditions are accurately assessed. For the condition 'If ((A > B) or (C > D)) and (E = F) then print A', the critical tests involve evaluating the boolean logic.

Test Case Analysis: Test Set 1 is selected because it should ideally include scenarios where:

Both conditions (A > B) and (C > D) are true, and (E = F) is true to ensure the print statement executes.

One of the conditions (A > B) or (C > D) is false while the other is true, combined with (E = F) being true, to test the OR logic.

Both conditions (A > B) and (C > D) are false with (E = F) being true, which should not trigger the print statement, testing the AND logic.

Condition where (E != F), irrespective of other conditions, to confirm that the print statement does not execute.


Page:    1 / 14   
Total 129 questions