0% found this document useful (0 votes)
109 views3 pages

WB & BB Exercises

Three tests were run to test different scenarios for an airline ticket: 1) A gold card holder who was upgraded to business class, 2) A non-gold card holder who stayed in economy class, and 3) Someone who was bumped from their flight. These three tests provide 80% statement coverage.

Uploaded by

hammer_ady
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
109 views3 pages

WB & BB Exercises

Three tests were run to test different scenarios for an airline ticket: 1) A gold card holder who was upgraded to business class, 2) A non-gold card holder who stayed in economy class, and 3) Someone who was bumped from their flight. These three tests provide 80% statement coverage.

Uploaded by

hammer_ady
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Postal rates for 'light letters' are 25p up to l0g, 35p up to 50g plus an extra l0p for each

additional 25g up to l00g. Which test inputs (in grams) would be selected using equivalence partitioning? a. 8,42,82,102 b. 4,15, 65, 92,159 c. 10,50,75,100 d. 5, 20, 40, 60, 80 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? A 28000. B 33501. C 32001. D 1500. If you are flying with an economy ticket, there is a possibility that you may get upgraded to business class, especially if you hold a gold card in the airline's frequent flier program. If you don't hold a gold card, there is a possibility that you will get 'bumped' off the flight if it is full and you check in late. Three tests have been run:
Test 1: Gold card holder who gets upgraded to business class Test 2: Non-gold card holder who stays in economy Test 3: A person who is bumped from the flight

What is the statement coverage of these three tests? a. 60% b. 70% c. 80% d. 90%

Given the state diagram, which test case is the minimum series of valid transitions to cover every state? a. S S - S 1 - S 2 - S 4 - S 1 - S 3 - E S b. S S - S 1 - S 2 - S 3 - S 4 - E S c. S S - S 1 - S 2 - S 4 - S 1 - S 3 - S 4 - S 1 - S 3 - E S d. S S - S 1 - S 4 - S 2 - S 1 - S 3 - E S

Given the following state transition

Which of the following series of state transitions below will provide 0-switch coverage? A B C D A, B, E, B, C, F, D. A, B, E, B, C, F, F. A, B, E, B, C, D. A, B, C, F, F, D.

Given the following State Table:

Which of the following represents an INVALID state transition? A B C D E from State S2. E from State S3. B from State S1. F from State S3.

Consider the decision table. Given this decision table, what is the expected result for the following test cases? TCI: A 26-year-old on business but with violations or accidents on his driving record TC2: A 62-year-old tourist with a clean driving record a. TCI: Don't supply car; TC2: Supply car with premium charge. b. TCI: Supply car with premium charge; TC2: Supply car with no premium charge. c. TCI: Don't supply car; TC2: Supply car with no premium charge. d. TCI: Supply car with premium charge; TC2: Don't supply car.

Given the following code, which option is true about the minimum number of test cases for full statement and decision coverage: Read M Read N If M > N then print Message 21 ENDIF If N >= M then Print Message 31 If N > 10 then Print Message 41 ENDIF ENDIF Print END a) b) c) d) 1 test for statement coverage, 2 tests for decision coverage 1 test for statement coverage, 3 tests for decision coverage 2 tests for statement coverage, 2 tests for decision coverage 2 tests for statement coverage, 3 tests for decision coverage

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy