READ Free Dumps For Oracle- 1z0-899
Question ID 4677 | Which two are true about the JSTL core iteration custom tags? (Choose two.) |
Option A | A. It may iterate over arrays, collections, maps, and strings. |
Option B | B. The body of the tag may contain EL code, but not scripting code. |
Option C | C. When looping over collections, a loop status object may be used in the tag body. |
Option D | D. It may iterate over map, but only the key of the mapping may be used in the tag body. |
Option E | E. When looping over integers (for example begin= ‘1’ end= ‘10’), a loop status object may not be used in the tag body. |
Correct Answer | A,C |
Question ID 4678 | Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name of type java.lang.string and the attribute score is of type jave.lang.Integer. |
Option A | A. ${resultMap[results[0].name] = results[0].score} |
Option B | B. <c:set var=“${resultMap}” key=“{results[0].name}” value=“${results[0].score}” /> |
Option C | C. <c:set var=“resultMap” property=“${results[0].name}”> ${results[0].value} |
Option D | D. <c:set var=“resultMap” property=“${results[0].name}”> value=“${results[0].score}” /> |
Option E | E. <c:set target=“${resultMap}” property=“${results[0].name}”> value=“${results[0].score}” /> |
Correct Answer | E |