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

Below is pseudo-code which calculates a customer's cruise credits based on past cruise history:PROGRAM CALC...

Below is pseudo-code which calculates a customer's cruise credits based on past cruise history:

PROGRAM CALC CRUISE CREDITS (CUST_ID)

COUNT_CRUISES, CRUISE_CREDITS, LOYALTY_RATING: INTEGER

CRUISE_LENGTH, CRUISE_ACCOM_TYPE: VAR

LOYALTY_RATING = 0

COUNT_CRUISES = 0

CRUISE_LENGTH = 0

CRUISE_ACCOM_TYPE = 0

BEGIN

READ CUSTOMER'S CRUISE HISTORY TO OBTAIN COUNT OF CRUISES

READ CRUISE_HISTORY (CUST_ID)

WHILE COUNT_CRUISES != -1 DO

READ CUSTOMER'S NEXT CRUISE

READ NEXT_CRUISE

IF CRUISE_ACCOM_TYPE = 3 THEN

CRUISE_CREDITS = CRUISE_CREDITS + 5

ELSE

IF CRUISE_ACCOM_TYPE = 2 THEN

CRUISE_CREDITS = CRUISE_CREDITS + 3

ELSE

CRUISE_CREDITS = CRUISE_CREDITS + 2

ENDIF

ENDIF

COUNT_CRUISES = COUNT_CRUISES - 1

ENDWHILE

LOYALTY_RATING = CRUISE_CREDITS / COUNT_CRUISES

WRITE ("CRUISE CREDIT TOTAL IS:")

WRITE (CRUISE_CREDITS)

END PROGRAM CALC CRUISE CREDITS

The variable Cruise_Length (line 3) results in which type of data flow anomaly?

A.

Declared but not Defined

B.

Defined but not Used

C.

Killed before being Defined

D.

Defined twice before Use

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