1.
A program validates a numeric field as follows: values less than 10 are rejected, values between 10 and 21 are accepted, and values greater than or equal to 22 are rejected which of the following input values cover all of the equivalence partitions?
Correct Answer
C. 3,10,22
Explanation
The given input values cover all of the equivalence partitions because:
- 3 is less than 10, so it is rejected.
- 10 is between 10 and 21, so it is accepted.
- 22 is greater than or equal to 22, so it is rejected.
Therefore, the input values 3, 10, and 22 cover all of the equivalence partitions for the given validation rules.
2.
A program validates a numeric field as follows: values less than 10 are rejected, values between 10 and 21 are accepted, and values greater than or equal to 22 are rejected, which of the following covers the MOST boundary values?
Correct Answer
B. 9,10,21,22
Explanation
The correct answer is 9,10,21,22. This answer covers the most boundary values because it includes the lowest rejected value (9), the lowest accepted value (10), the highest accepted value (21), and the lowest rejected value (22).
3.
Which is not true-The black box tester?
Correct Answer
B. Should be able to understand the source code.
Explanation
The black box tester should be able to understand the functional specification or requirements document, as this is essential for testing the system based on its intended functionality. They should also be highly motivated to find faults and creative in identifying the system's weaknesses. However, it is not necessary for the black box tester to understand the source code, as their focus is on testing the system from an external perspective, without knowledge of its internal workings.
4.
In a system designed to work out the tax to be paid: An employee has £4000 of salary tax free. The next £1500 is taxed at 10% The next £28000 is taxed at 22% Any further amount is taxed at 40% Which of these groups of numbers would fall into the same equivalence class?
Correct Answer
D. £5800; £28000; £32000
Explanation
The given groups of numbers would fall into the same equivalence class because they all have the same tax rates applied to their respective salary amounts. The first £4000 of salary is tax-free for all groups. The next £1500 is taxed at 10% for all groups. The next £28000 is taxed at 22% for all groups. Any further amount is taxed at 40% for all groups. Therefore, the tax calculations for these groups would be the same, making them fall into the same equivalence class.
5.
Which of the following is NOT a white box technique?
Correct Answer
D. State transition testing
Explanation
State transition testing is not a white box technique because it focuses on testing the behavior and functionality of a system based on different states and transitions, rather than examining the internal structure or implementation details of the system. White box techniques, on the other hand, involve testing the internal logic and code of the system.
6.
Which of the following is a form of functional testing?
Correct Answer
A. Boundary value analysis
Explanation
Boundary value analysis is a form of functional testing that involves testing the boundaries or extreme values of input variables. It focuses on testing the behavior of the system at the boundaries of the input domain, such as the minimum and maximum values, to ensure that the system handles these values correctly. This type of testing helps identify errors or issues that may occur at the edges of the input range and is commonly used to improve the quality and reliability of software systems.
7.
Given the following state transition diagram which of the following series ofstate transitions contains an INVALID transition which may indicate a fault in the systemdesign?
Exhibit:
Correct Answer
C. Login Browse Basket Checkout Basket Logout.
Explanation
The series of state transitions "Login Browse Basket Checkout Basket Logout" contains an INVALID transition which may indicate a fault in the system design. The transition from "Checkout" back to "Basket" is not a valid transition as it skips the "Pay" state. This could indicate a problem in the system design where the user is able to go back to the "Basket" state without completing the payment process.
8.
A thermometer measures temperature in whole degrees only. If the temperature falls below 18 degrees, the heating is switched off. It is switched on again when the temperature reaches 21 degrees. What are the best values in degrees to cover all equivalence partitions?
Correct Answer
A. 15, 19 and 25.
Explanation
The best values to cover all equivalence partitions are 15, 19, and 25. A thermometer measures temperature in whole degrees only, so the values must be whole numbers. The heating is switched off when the temperature falls below 18 degrees and switched on again when it reaches 21 degrees. Therefore, the values below 18 (15) and between 18 and 21 (19) are important to cover. Additionally, the highest value mentioned (25) is necessary to cover temperatures above 21 degrees.
9.
A person deals in selling printer cartridges. The minimum order quantity for the cartridges is 5 units. The dealer offers a 20% discount for orders of 100 or more printer cartridges. You have been asked to prepare test cases using various values for the number of printer cartridges ordered. Which of the following groups contain three test inputs that would be generated using Boundary Value Analysis?
Correct Answer
C. 4, 5, 99
Explanation
Boundary Value Analysis (BVA) involves selecting test cases at the boundaries of input domains. In this scenario, the boundary conditions include the minimum order quantity (5 units) and the threshold for the discount (100 units). Test cases should cover values at and around these boundaries to ensure robust testing.The groups that contain three test inputs generated using Boundary Value Analysis are:4, 5, 6: This covers values just below and just above the minimum order quantity (5 units).99, 100, 101: This covers values just below and just above the threshold for the discount (100 units).Therefore, the correct answer is not listed among the options provided. However, if we were to choose the closest option, it would be:4, 5, 100
10.
Which of the following is the component test standard?
Correct Answer
D. BS7925-2
Explanation
BS7925-2 is the correct answer because it is a recognized component test standard. IEEE 829 is a standard for software test documentation, IEEE 610 is a standard for software engineering, and BS7925-1 is a standard for software component testing, but BS7925-2 specifically focuses on component testing and is therefore the correct choice.