Test
Java quizlet - appintr is lyf
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (8)
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.
- Adoc-root/dd.xml
- Bdoc-root/web.xml
- Cdoc-root/WEB_INF/dd.xml
- Ddoc-root/WEB-INF/web.xml
- Edoc-root/WEB_INF/web.xml
- Fdoc-root/WEB-INF/lib/dd.xml
- Gdoc-root/WEB-INF/classes/dd.xml
2Which element of the servlet element in the deployment descriptor is used to specify the parameters for the ServletConfig object.
- Aservlet-config
- Binit-param
- Cload-on-startup
- Dfilter
3Which of these is true about deployment descriptors? Select as many answers.
- AThe order of elements in deployment descriptor is not important. The elements can follow any order.
- BThe elements of deployment descriptor are case insensitive.
- CThe servlet-mapping element, if defined, must be included within the servlet element.
- DThe web-app element must include the servlet element
4With in a context-param element of deployment descriptor, which of the following element is required?
- Aparam-name
- Bname
- Cinit-param
- Dservlet-name
5Name the method defined in the HttpServletResponse class that may be used to set the content type.
- AsetType()
- BsetContent()
- CsetContentType()
- DsetResponseContentType()
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?
- AHttpServletRequest
- BHttpServletResponse
- CServletConfig
- DServletContext
7When using HTML forms which of the following is true for POST method?
- APOST allows users to bookmark URLs with parameters.
- BThe POST method should not be used when large amount of data needs to be transferred.
- CPOST allows secure data transmission over the http method.
- DPOST method sends data in the body of the request.
8Name the location of compiled class files within a war file?
- A/META-INF/classes
- B/classes
- C/WEB-INF/classes
- D/root/classes
Información
- Descripción
- HAHAHAHA HOy WaG
- Autor
- Martin Agpalza
- Idioma
- English
- Visitas
- 2
- Valoración
- Aún sin valoraciones Valora este test