Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E123 Topic 1 Question 9 Discussion

Actual exam question for Adobe's AD0-E123 exam
Question #: 9
Topic #: 1
[All AD0-E123 Questions]

A developer must use print-314% in a webpage.

Assuming piValue = -3.14

Which HTL approach would be used?

Show Suggested Answer Hide Answer
Suggested Answer: A

In HTL, the format option in the data-sly-use or data-sly-test attribute can be used to format values according to a pattern. The pattern '-#.##%' indicates that the number should be formatted as a percentage with up to two decimal places. The piValue variable would be the number to format, and in this example, it would convert -3.14 to -314%. The @ symbol is used to denote the use of an option with the variable in HTL.

Options B and C are incorrect because they do not use the correct syntax for the format option in HTL. The use of @ is to specify options and not part of the variable or pattern itself.


Contribute your Thoughts:

Santos
3 months ago
I agree. C looks like the right choice since it matches the variable name and the format requirement.
upvoted 0 times
...
Avery
3 months ago
Good catch, Dana. What about C then? It has piValue and format.
upvoted 0 times
...
Stacey
3 months ago
But look at A again, it says plValue. Isn’t it supposed to be piValue?
upvoted 0 times
...
Mitzie
4 months ago
I’m leaning towards option A. It looks like it’s handling the format correctly.
upvoted 0 times
...
Santos
4 months ago
Definitely. I think it’s about formatting percentages using HTL.
upvoted 0 times
...
Avery
4 months ago
This question seems a bit confusing, don't you think?
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77