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

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?




Show Suggested Answer Hide Answer
Suggested Answer: B


Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
1 year, 8 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
7 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
2 years, 2 months ago
Correct answer is D.
upvoted 3 times
Community vote distribution
A (35%)
C (25%)
B (20%)
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.

Loading ...