MARKETING-CLOUD-DEVELOPER practice question 5 of 10

A developer has a text field in a data extension they want to format using the FormatCurrency AMPscript function. Which two values would return $6.96? Choose 2

Full set: 196 questions
Answer options
A: 6,961
B: 6.96 Correct answer
C: $6.96
D: 6.96 Correct answer
Correct Answer:
B. 6.96; D. 6.96
Explanation

The FormatCurrency AMPscript function formats numeric values as currency. Here, 6.96 (B) and 6.96 (D) are numerical representations that will be formatted to $6.96.
A. 6,961: This would format to $6,961.00, not $6.96.
C. $6.96: This is already formatted and will not be processed as a number for formatting purposes.

Why Incorrect

Option A: "6,961" contains a comma separator representing six thousand nine hundred sixty-one in standard US format, which formats to $6,961.00 rather than $6.96.
Option C: "$6.96" includes a pre-formatted currency symbol, causing a runtime parsing error because FormatCurrency requires unformatted numeric input.

References

- Salesforce AMPscript Documentation, FormatCurrency

- Salesforce Marketing Cloud Developer Guide, AMPscript Functions

Scroll to Top