Quiz
Questões - Expression Language (EL)
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this 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)
Information
- Description
- Concursos Públicos Desenvolvimento de Software (OCEJWCD 6 ONLINE COURSE) Quiz on Questões - Expression Language (EL), created by Luis Felipe Guariento on 09/04/2018.
- Author
- Luis Felipe Guariento
- Language
- Português
- Views
- 1
- Tags
- Rating
- No ratings yet Rate this quiz