Summer Special Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: vce65

How many test cases need to be designed to achieve 100% decision coverage in the...

How many test cases need to be designed to achieve 100% decision coverage in the following piece of pseudo-code which applies discount rates to hotel room bookings?

Read (Loyalty_level)

Read (Room_price)

IF (Room_price > 200)

IF (Loyalty_level = Platinum)

Discount_factor = 80%

ELSE

IF (Loyalty_level = Gold)

Discount_factor = 85%

ELSE

Discount_factor = 95%

ENDIF

ENDIF

ELSE

IF (Room_price > 150)

IF (Loyalty_level = Platinum)

Discount_factor = 85%

ELSE

Discount_factor = 95%

ENDIF

ELSE

Discount_factor = 100%

ENDIF

ENDIF

Room_price = Room_price * Discount_factor

IF (Discount_factor < 100%)

Show message "Congratulations - you have received a discount!"

ENDIF

A.

4

B.

6

C.

7

D.

8

ISTQB CTAL-TTA Summary

  • Vendor: ISTQB
  • Product: CTAL-TTA
  • Update on: Jul 21, 2025
  • Questions: 175
Price: $52.5  $149.99
Buy Now CTAL-TTA PDF + Testing Engine Pack

Payments We Accept

Your purchase with ExamsVCE is safe and fast. Your products will be available for immediate download after your payment has been received.
The ExamsVCE website is protected by 256-bit SSL from McAfee, the leader in online security.

examsvce payment method