Boundary value analysis and Equivalence partitioning Examples and Solution
1. An input field takes the year of birth between 1900 and 2004The boundary values for testing this field are? 2.One of the fields on a form contains a text box which accepts numeric values in the range of 18 to 25. Identify the invalid Equivalence class? 3.One of the fields on a form contains a text box which accepts numeric values in the range of 18 to 25. Identify the invalid Equivalance class? 4.One of the fields on a form contains a text box which accepts alpha numeric values. Identify the Valid Equivalence class 5.5.The Switch is switched off once the temperature falls below 18 and then it is turned on when the temperature is more than 21. When the temperature is more than 21. Identify the Equivalance values which belong to the same class. 6. ‘X’ has given a data on a person age, which should be between 1 to 99. Using BVA which is the appropriate one ? 7.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? 8.A wholesaler sells printer cartridges. The minimum order quantity is 5. There is 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? 9.Assume postal rates for 'light letters' are$0.25 up to 10 grams;$0.35 up to 50 grams;$0.45 up to 75 grams;$0.55 up to 100 grams. Which test inputs (in grams) would be selected using boundary value analysis? 10.Find the invalid equivalence class for the following test caseDraw a line up to the length of 4 inches 11.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 after that is taxed at 22%.Any further amount is taxed at 40%.To the nearest whole pound, which of these is a valid Boundary Value Analysis test case? 12.Given the following specification, which of the following values for age are in the SAME equivalence partition?If you are less than 18, you are too young to be insured. Between 18 and 30 inclusive, you will receive a 20% discount. Anyone over 30 is not eligible for a discount. 13.In an Examination a candidate has to score minimum of 24 marks in order to clear the exam. The maximum that he can score is 40 marks. Identify the Valid Equivalence values if the student clears the exam? 14.A program validates a numeric field as follows: values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Which of the following input values cover all of the equivalence partitions? 15.A program validates a numeric field as follows: values less than 10 are rejected, values between 10 and 21 are accepted, values greater than or equal to 22 are rejected. Which of the following covers the MOST boundary values? 16.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 after that is taxed at 22%.Any further amount is taxed at 40%.To the nearest whole pound, which of these groups of numbers fall into three DIFFERENT equivalence classes? 17. 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 after that is taxed at 22%.Any further amount is taxed at 40%.Which of these groups of numbers would fall into the same equivalence class? 18. Order numbers on a stock control system can range between 10000 and 99999 inclusive. Which of the following inputs might be a result of designing tests for only valid equivalence classes and valid boundaries: 19.One technique of Black Box testing is Equivalence Partitioning. In a program statement that accepts only one choice from among 10 possible choices, numbered 1 through 10, the middle partition would be from _____ to _____ 20. If a candidate is given an exam of 40 questions, should get 25 marks to pass (61%) and should get 80% for distinction, what is equivalence class 21.Boundary value analysis and Equivalence partitioning Interview questions with Answers. 23.Boundary value analysis and Equivalence partitioning examples
Download
0 formatsNo download links available.