GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Questões - Expression Language (EL)

Luis Felipe Guariento 7 Fragen

Quiz starten

Fragen in diesem Quiz (7)

  1. 1Consider the following code and select the correct statement from the options below.

    <html><body>
    ${(5 + 3 + a > 0) ? 1 : 2}
    </body></html>
    1. AIt will print 1because the statement is valid.
    2. BIt will print 2 because the statement is valid.
    3. CIt will throw an exception because is undefined.
    4. DIt will throw an exception because the expression’s syntax is invalid.
  2. 2Which statement best expresses the purpose of a tag library descriptor (TLD) in an EL function?
    1. AIt contains the Java code that will be compiled.
    2. BIt invokes the Java method as part of the JSP.
    3. CIt matches the tag library with a URI.
    4. DIt matches function names to tags that can be used in the JSP.
  3. 3Which of the following variables is not available for use in EL expressions?
    1. Aparam
    2. Bcookie
    3. Cheader
    4. DpageContext
    5. EcontextScope
  4. 4Which tags tell the web container where to find your TLD file in your filesystem?
    1. A<taglib-directory></taglib-directory>
    2. B<taglib-uri></taglib-uri>
    3. C<taglib-location></taglib-location>
    4. D<tld-directory></tld-directory>
    5. E<taglib-name></taglib-name>
  5. 5Which two of the following expressions won’t return the header’s accept field?
    1. A${header.accept}
    2. B${header[accept]}
    3. C${header['accept']}
    4. D${header["accept"]}
    5. E${header.'accept'}
  6. 6When writing a TLD, which tags would you use to surround fnName(int num), a Java method declared in a separate class?
    1. A<function-signature></function-signature>
    2. B<function-name></function-name>
    3. C<method-class></method-class>
    4. D<method-signature></method-signature>
    5. E<function-class></function-class>
  7. 7Which of the following method signatures is usable in EL functions?
    1. Apublic static expFun(void)
    2. BexpFun(void)
    3. Cprivate expFun(void)
    4. Dpublic expFun(void)
    5. 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
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck