Coffee Cram: Final Mock Exam

  1. A programmer has a validly configured directory structure for his Java EE web application which is called MyWebApp. In which two directories could a file called myTag.tag reside in order to be accessed correctly by the container? (Choose two.)

    A.

    MyWebApp/WEB-INF

    B.

    MyWebApp/META-INF

    C.

    MyWebApp/WEB-INF/lib

    D.

    MyWebApp/WEB-INF/tags

    E.

    MyWebApp/WEB-INF/TLDs

    F.

    MyWebApp/WEB-INF/tags/myTags

  2. Which of the following are legal EL? (Choose all that apply)

    A.

    ${"1" + "2"}

    B.

    ${1 plus 2}

    C.

    ${1 eq 2}

    D.

    ${2 div 1}

    E.

    ${2 & 1}

    F.

    ${"head"+"first"}

  3. A TLD from a Java forum website contains this tag definition: ...

Get Head First Servlets and JSP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.