exam questions

Exam AD0-E103 All Questions

View all questions & answers for the AD0-E103 exam

Exam AD0-E103 topic 1 question 92 discussion

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

A developer is working on the following Sling Model that is being used in a component.

The model must check if the configured value of the jcr:title property for the component matches the name of the current page. If the jcr:title property of the component has NOT been configured, then isMatchingTitle() must return false.
How should the developer inject the title property in this model?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: C

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rakayaD
4 years, 2 months ago
C cannot be as it is having required annotation. title must be optional with default empty string value. Then only it will return false. If it is C then NPE arises. Correct Ans is D.
upvoted 2 times
...
mat2020
4 years, 6 months ago
Answer D
upvoted 1 times
...
Rajiv1908
4 years, 7 months ago
I think answer should be C
upvoted 1 times
...
AkashD
4 years, 8 months ago
Answer is D
upvoted 1 times
...
heenamadan
4 years, 8 months ago
Ans should be 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago