GoConqr has a new look! Let us know what you think.

Quiz

Java quizlet - appintr is lyf

Martin Agpalza 8 questions

Take the quiz

Questions in this quiz (8)

  1. 1Which of the following files is the correct name and location of deployment descriptor of a web application. Assume that the web application is rooted at doc-root. Select the one correct answer.
    1. Adoc-root/dd.xml
    2. Bdoc-root/web.xml
    3. Cdoc-root/WEB_INF/dd.xml
    4. Ddoc-root/WEB-INF/web.xml
    5. Edoc-root/WEB_INF/web.xml
    6. Fdoc-root/WEB-INF/lib/dd.xml
    7. Gdoc-root/WEB-INF/classes/dd.xml
  2. 2Which element of the servlet element in the deployment descriptor is used to specify the parameters for the ServletConfig object.
    1. Aservlet-config
    2. Binit-param
    3. Cload-on-startup
    4. Dfilter
  3. 3Which of these is true about deployment descriptors? Select as many answers.
    1. AThe order of elements in deployment descriptor is not important. The elements can follow any order.
    2. BThe elements of deployment descriptor are case insensitive.
    3. CThe servlet-mapping element, if defined, must be included within the servlet element.
    4. DThe web-app element must include the servlet element
  4. 4With in a context-param element of deployment descriptor, which of the following element is required?
    1. Aparam-name
    2. Bname
    3. Cinit-param
    4. Dservlet-name
  5. 5Name the method defined in the HttpServletResponse class that may be used to set the content type.
    1. AsetType()
    2. BsetContent()
    3. CsetContentType()
    4. DsetResponseContentType()
  6. 6The method getWriter returns an object of type PrintWriter. This class has println methods to generate output. Which of these classes define the getWriter method?
    1. AHttpServletRequest
    2. BHttpServletResponse
    3. CServletConfig
    4. DServletContext
  7. 7When using HTML forms which of the following is true for POST method?
    1. APOST allows users to bookmark URLs with parameters.
    2. BThe POST method should not be used when large amount of data needs to be transferred.
    3. CPOST allows secure data transmission over the http method.
    4. DPOST method sends data in the body of the request.
  8. 8Name the location of compiled class files within a war file?
    1. A/META-INF/classes
    2. B/classes
    3. C/WEB-INF/classes
    4. D/root/classes

Information

Description
HAHAHAHA HOy WaG
Language
English
Views
2
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?