BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB Exam CTAL-TTA Topic 5 Question 2 Discussion

Actual exam question for ISTQB's CTAL-TTA exam
Question #: 2
Topic #: 5
[All CTAL-TTA Questions]

Consider the following specification:

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 when you check in late.

This is shown in the control flow graph below. Note that each box (i.e., statement, decision) has been numbered.

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 level of decision coverage achieved by these three tests?

Show Suggested Answer Hide Answer
Suggested Answer: B

The control flow graph provided illustrates the decision points for an airline's upgrade and boarding process. Decision coverage is a measure of the percentage of decision points executed during testing:

Test 1 covers the decision points: Gold card? (Yes) and Business full? (No).

Test 2 covers: Gold card? (No) and Economy full? (No).

Test 3 covers the decision that leads to being bumped from the flight, which is Economy full? (Yes) and Business full? (Yes).

From the given tests, the decision points for Gold card? (No) and Business full? (No) are not tested, leaving us with 4 out of 6 decision points covered, which is approximately 67% decision coverage.


Contribute your Thoughts:

My
6 months ago
I think D) 80% makes sense. Test 1 covers more decisions and all three tests together cover 80% of the decisions.
upvoted 0 times
...
Justa
6 months ago
That's true. Test 1 covers more decisions than the other tests. Maybe the answer is actually D) 80%.
upvoted 0 times
...
Corazon
6 months ago
I agree with that. But isn't it possible that test 1 covers more decisions than the other tests?
upvoted 0 times
...
Justa
6 months ago
I think the answer is B) 67% because two out of three tests branch each decision point.
upvoted 0 times
...

Save Cancel