Quiz
Questões - Expression Language (EL)
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (7)
1Consider the following code and select the correct statement from the options below.
<html><body>
${(5 + 3 + a > 0) ? 1 : 2}
</body></html>- AIt will print 1because the statement is valid.
- BIt will print 2 because the statement is valid.
- CIt will throw an exception because is undefined.
- DIt will throw an exception because the expression’s syntax is invalid.
2Which statement best expresses the purpose of a tag library descriptor (TLD) in an EL function?
- AIt contains the Java code that will be compiled.
- BIt invokes the Java method as part of the JSP.
- CIt matches the tag library with a URI.
- DIt matches function names to tags that can be used in the JSP.
3Which of the following variables is not available for use in EL expressions?
- Aparam
- Bcookie
- Cheader
- DpageContext
- EcontextScope
4Which tags tell the web container where to find your TLD file in your filesystem?
- A<taglib-directory></taglib-directory>
- B<taglib-uri></taglib-uri>
- C<taglib-location></taglib-location>
- D<tld-directory></tld-directory>
- E<taglib-name></taglib-name>
5Which two of the following expressions won’t return the header’s accept field?
- A${header.accept}
- B${header[accept]}
- C${header['accept']}
- D${header["accept"]}
- E${header.'accept'}
6When writing a TLD, which tags would you use to surround fnName(int num), a Java method declared in a separate class?
- A<function-signature></function-signature>
- B<function-name></function-name>
- C<method-class></method-class>
- D<method-signature></method-signature>
- E<function-class></function-class>
7Which of the following method signatures is usable in EL functions?
- Apublic static expFun(void)
- BexpFun(void)
- Cprivate expFun(void)
- Dpublic expFun(void)
- Epublic native expFun(void)
Informationen
- Beschreibung
- Concursos Públicos Desenvolvimento de Software (OCEJWCD 6 ONLINE COURSE) Quiz am Questões - Expression Language (EL), erstellt von Luis Felipe Guariento am 09/04/2018.
- Sprache
- Português
- Aufrufe
- 1
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz