Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E103 topic 1 question 64 discussion

Actual exam question from Adobe's AD0-E103
Question #: 64
Topic #: 1
[All AD0-E103 Questions]

A developer is working on an HTL script for a custom component. The script has the following requirements:
✑ This script must list the title of every child page of the current page.
✑ If a child page does not have any children, then its title should link directly to that page.
✑ If a child page has children, then the title of every one of its children should be listed beneath its title.
✑ The title of every grandchild page should link directly to that page.
Which HTL script should the developer use to meet these requirements?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
rakayaD
3 years, 4 months ago
B is wrong as extension is not there. A and D both are working as expected. Only question is whether is it a best practice to use local variable ${grandChildren} for testing or ${child.listChildren}? IMO, A is promoting code reuse as we are using a variable.
upvoted 2 times
Batya
2 years, 3 months ago
D is correct, because when we can not get listchildren from the child, we will not know about grandChildren variable.
upvoted 1 times
...
...
pkg82
3 years, 10 months ago
Correct answer is D.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...