New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E123 Exam - 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:

0/2000 characters
Izetta
3 months ago
Are we sure about this? Sounds tricky!
upvoted 0 times
...
Dominic
3 months ago
I agree with A, seems to fit the format.
upvoted 0 times
...
Deane
3 months ago
Wait, piValue is negative? That's weird!
upvoted 0 times
...
Rosendo
4 months ago
Definitely not B, that looks off.
upvoted 0 times
...
Denny
4 months ago
I think option A is the right one.
upvoted 0 times
...
Kenia
4 months ago
I vaguely recall that percentages can be tricky in HTL. I wonder if option C might be the right choice since it looks simpler.
upvoted 0 times
...
Shawnna
4 months ago
I’m leaning towards option A because it uses the correct syntax for formatting, but I’m a bit confused about the negative sign.
upvoted 0 times
...
Chan
4 months ago
I practiced a similar question where we had to format currency, and I feel like option B is off because it mentions "formal" instead of "format."
upvoted 0 times
...
Tony
5 months ago
I think I remember something about formatting percentages in HTL, but I'm not sure if it's option A or C.
upvoted 0 times
...
Royal
5 months ago
Hmm, I'm not sure about any of these options. I might need to review my notes on formatting values in HTL before I can answer this one.
upvoted 0 times
...
Beula
5 months ago
I'm pretty confident that option A is the right approach here. The `@ format=` syntax looks like it will let me format the value as a percentage with two decimal places.
upvoted 0 times
...
Elina
5 months ago
Wait, what's the difference between the options? I'm a bit confused about the formatting syntax they're using.
upvoted 0 times
...
Farrah
5 months ago
Okay, I think I've got this. The question is asking for a way to display the value of `piValue` as a percentage, so I'll try option B.
upvoted 0 times
...
Dottie
5 months ago
Hmm, this looks like a tricky one. I'll need to carefully read through the options and think about how to format the value correctly.
upvoted 0 times
...
Deja
5 months ago
Ah, I remember this from the Azure routing lecture. The most specific route takes precedent, so I'll go with option C.
upvoted 0 times
...
Kerrie
5 months ago
I'm not totally sure about this, but I think the key is understanding the difference between PE and P routers and their responsibilities.
upvoted 0 times
...
Santos
2 years ago
I agree. C looks like the right choice since it matches the variable name and the format requirement.
upvoted 0 times
...
Avery
2 years ago
Good catch, Dana. What about C then? It has piValue and format.
upvoted 0 times
...
Stacey
2 years ago
But look at A again, it says plValue. Isn’t it supposed to be piValue?
upvoted 0 times
...
Mitzie
2 years ago
I’m leaning towards option A. It looks like it’s handling the format correctly.
upvoted 0 times
...
Santos
2 years ago
Definitely. I think it’s about formatting percentages using HTL.
upvoted 0 times
...
Avery
2 years ago
This question seems a bit confusing, don't you think?
upvoted 0 times
...

Save Cancel