1.
In which document described in IEEE 829 would you find instructions for the steps to be taken for a test including set-up, logging, environment and measurement?
Correct Answer
D. Test procedure specification
Explanation
The Test Procedure Specification document in IEEE 829 provides instructions for the steps to be taken for a test, including set-up, logging, environment, and measurement. This document outlines the specific procedures that need to be followed during the testing process, ensuring that all necessary steps are carried out in a systematic and organized manner. It serves as a guide for the testers, providing them with clear instructions on how to execute the test and record the results.
2.
With a highly experienced tester with a good business background, which approach to defining test procedures would be effective and most efficient for a project under severe time pressure?
Correct Answer
A. A high-level outline of the test conditions and general steps to take.
Explanation
A highly experienced tester with a good business background would be able to quickly understand the project requirements and prioritize the test conditions. By providing a high-level outline of the test conditions and general steps to take, it allows the tester to focus on the most critical aspects of the testing process and efficiently execute the tests. This approach saves time by avoiding unnecessary details and allows the tester to adapt the test procedures as needed based on their expertise and understanding of the project requirements.
3.
Put the test cases that implement the following test conditions into the best order for the test execution schedule, for a test that is checking modifications of customers on a database.
-
Print modified customer record.
-
Change customer address: house number and street name.
-
Capture and print the on-screen error message.
-
Change customer address: postal code.
-
Confirm existing customer is on the database by opening that record.
-
Close the customer record and close the database.
-
Try to add a new customer with no details at all.
Correct Answer
C. 5, 4, 2, 1, 7, 3, 6
Explanation
The correct order for the test execution schedule is 5, 4, 2, 1, 7, 3, 6. The first step is to confirm the existing customer is on the database by opening that record. Then, the customer address is changed by modifying the house number and street name. After that, the customer address is further modified by changing the postal code. Next, the modified customer record is printed. Then, the on-screen error message is captured and printed. Finally, the customer record and the database are closed. The step to try to add a new customer with no details at all is not included in the correct order.
4.
Why are both specification-based and structure-based testing techniques useful?
Correct Answer
A. They find different types of defect.
Explanation
Both specification-based and structure-based testing techniques are useful because they find different types of defects. Specification-based techniques focus on testing the software against the requirements and specifications provided, ensuring that the software meets the intended functionality. On the other hand, structure-based techniques analyze the internal structure of the software, identifying potential defects based on the code structure and logic. By using both techniques, a wider range of defects can be identified and addressed, increasing the overall quality and reliability of the software.
5.
What is a key characteristic of structure-based testing techniques?
Correct Answer
B. They are used both to measure coverage and to design tests to increase coverage.
Explanation
Structure-based testing techniques are used to measure the coverage of a specification and also to design tests that can increase the coverage. These techniques focus on examining the internal structure of the software or component being tested, such as its code, architecture, or design. By analyzing the structure, testers can identify areas that have not been adequately covered by tests and design new tests to increase the coverage. This helps ensure that all parts of the software are thoroughly tested and increases the overall quality and reliability of the system.
6.
Given the state diagram in Figure 4.6, which test case is the minimum series of valid transitions to cover every state?
Figure 4.6: State diagram
Correct Answer
A. SS - S1 - S2 - S4 - S1 - S3 - ES
Explanation
The correct answer is SS - S1 - S2 - S4 - S1 - S3 - ES. This test case covers every state in the state diagram, starting from the initial state SS and transitioning through each state (S1, S2, S4, S3) until reaching the end state ES. It ensures that all possible transitions are tested and all states are visited.