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

Quiz

Questões - Simple Tags

Luis Felipe Guariento 16 Fragen

Quiz starten

Fragen in diesem Quiz (16)

  1. 1Which of the following methods are not immediately available to a SimpleTagSupport subclass?
    1. AgetJspBody();
    2. BgetJspContext().getAttribute("name");
    3. CgetParent();
    4. DgetBodyContent();
  2. 2What method should you use in a SimpleTag tag handler to access dynamic variables?
    1. AdoTag()
    2. BsetDynamicAttribute()
    3. CgetParent()
    4. DsetDynamicParameter()
  3. 3Which object does a SimpleTag tag handler use to access implicit variables?
    1. APageContext
    2. BBodyContent
    3. CJspContext
    4. DSimpleTagSupport
  4. 4Consider the following TLD excerpt:
    <body-content>
    empty
    </body-content>
    <attribute>
    <name>color</name>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    <dynamic-attributes>
    true
    </dynamic-attributes>

    If the name of the tag is tagname and its prefix is pre, which of the following JSP statements is valid?
    1. A<pre:tagname color="yellow" size=${sizenum} />
    2. B<pre:tagname size="18" color="red"> </pre:tagname>
    3. C<pre:tagname color="${colorname}" size="22" font="verdana"></pre:tagname>
    4. D<pre:tagname color="green" size="30">font="Times New Roman"</pre:tagname>
    5. E<pre:tagname color="${colorname}" size="18"></pre>
  5. 5If placed inside the body of a simple tag, which of the following statements won’t produce “9”? (Select one)
    1. A${3 + 3 + 3}
    2. B"9"
    3. C<c:out value="9">
    4. D<%= 27/3 %>
  6. 6Which of the following methods need to be invoked in a SimpleTag to provide iterative processing? (Select one)
    1. AsetDynamicAttribute()
    2. BgetParent()
    3. CgetJspBody()
    4. DdoTag()
    5. EgetJspContext()
  7. 7Which of the following values is invalid inside a SimpleTag’s <body-content> subelement? (Select one)
    1. AJSP
    2. Bscriptless
    3. Ctagdependent
    4. Dempty
  8. 8Which of the following is a valid return value for the SimpleTag’s doTag() method? (Select one)
    1. AEVAL_BODY_INCLUDE
    2. BSKIP_BODY
    3. Cvoid
    4. DEVAL_PAGE
    5. ESKIP_PAGE
  9. 9Which tag file directive makes it possible to process dynamic attributes?
    1. Ataglib
    2. Bpage
    3. Ctag
    4. Dattribute
  10. 10Which of the following statements can’t be used to access a tag file from a JSP? (Select one)
    1. A<%@ taglib prefix="pre" uri="www.mysite.com/dir/" %>
    2. B<%@ taglib prefix="pre" tagdir="/WEB-INF/tags" %>
    3. C<%@ taglib prefix="pre" tagdir="/WEB-INF/tagfiles" %>
    4. D<%@ taglib prefix="pre" tagdir="/WEB-INF/tags/myDirectory" %>

Informationen

Beschreibung
Concursos Públicos Desenvolvimento de Software (OCEJWCD 6 ONLINE COURSE) Quiz am Questões - Simple Tags, erstellt von Luis Felipe Guariento am 15/03/2018.
Sprache
Português
Aufrufe
0
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck