ep boundary questions 1

Upload: sujai-senthil

Post on 19-Oct-2015

16 views

Category:

Documents


0 download

DESCRIPTION

Boundary Questions

TRANSCRIPT

  • EP & Boundary QuestionsValid Input: Integers in the range of 100 to 999

  • EP & Boundary QuestionsValid Input: Names with up to 20 alphabetic characters

  • EP & Boundary QuestionsSuppose you have a bank account that offers variable interest rates: 5% for the first $1000 credit; 10% for the next $1000;And 15% for the rest.

    If you wanted to check that the bank was handling your account correctly what valid input partitions might you use?

  • EP & Boundary QuestionsA mail order company charges $2.95 postage for deliveries if the package weighs less than 2 kg, $3.95 if the package weighs 2 kg or more but less than 5 kg, and $5 for packages weighing 5 kg or more. Generate a set of valid test cases using equivalence partitioning.

  • EP & Boundary QuestionsBoiling point of water is at 100 degrees Celsius. Determine the boundary valuesExam pass for 40 marks; merit at 60 and above; and distinction at 80 and above.

    Determine the boundary values

  • 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:

    1000, 5000, 999999999, 50000, 10000010000, 50000, 9999910000, 999999999, 10000, 50000, 99999, 100000

    Equivalence & Boundary Value based questions

  • 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% To the nearest whole pound, which of these is a valid Boundary Value Analysis test case?

    15003200133501 28000

    Equivalence & Boundary Value based questions

  • 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?

    a. 10,11,21b. 3,20,21c. 3,10,22d. 10,21,22

    Equivalence & Boundary Value based questions

  • 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?

    Using the same specifications as above, which of the following covers the MOST boundary values?a. 9,10,11,22b. 9,10,21,22c. 10,11,21,22d. 10,11,20,21Equivalence & Boundary Value based questions

  • Which set of test data demonstrates equivalence partitioning to check whether a customer is a teenager or not?

    10, 15 and 19 years13, 19 and 25 years13, 16 and 19 years12, 13 and 20 years

    Equivalence & Boundary Value based questions

  • To test an input field that accepts a two-digit day based on a particular month which data set demonstrates valid boundary value analysis?

    0, 1, 16,31 and 1001, 27, 28, 30 and 312, 26, 27, 29 and 30-1, 0, 15, 32 and 99

    Equivalence & Boundary Value based questions