¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

REST and servlets

Boy Achternaam 16 preguntas

Hacer el test

Preguntas del test (16)

  1. 1Describe the general format of a REST call
    1. AGET

      POST +URL
      
DELETE
      
PUT
    2. BGET

      POST +URL
      
DELETE
      DROP
    3. CSELECT
      UPDATE
      FROM
      DELETE
  2. 2Which REST command can be used to update a resource?
    1. APUT
    2. BGET
    3. CPOST +URL
    4. DDELETE
  3. 3Give two types of representations of resources that are frequently used with REST
    1. AXML & JSON
    2. BCSV & JSON
    3. CCSV & XML
    4. DJSON & TXT
  4. 4What is meant by the phrase “REST is stateless”?
    1. AThe server does not keep track of client states
    2. BThe server accepts all the client states
    3. CThe server doesn't checks the client states
  5. 5What is a servlet?
    1. AA servlet is a class for handling http-request; a class that implements the HttpServlet interface.
    2. BA servlet is a class for handling resources (xml and json); a class that implements the resource handling interface
  6. 6What is a servlet engine? Give an example.
    1. AA program that can run servlets and exchange information with servlets. Like 
Tomcat, glassfish
    2. BA program that can run servlets and exchange information with resources. Like 
Tomcat, glassfish
    3. CA program that can run resources and exchange information with servlets.
 Like Tomcat, glassfish
  7. 7Which servlet-method is called in response to a http GET-command?
    1. AThe doGet method
    2. BThe doSelect method
    3. CThe doFind method
  8. 8Which annotation is used in JAVA-RS to specify the relative path of a resource?
    1. A@path ( )
    2. B@route ( )
    3. C@get ( )
  9. 9The doGet method of the httpServlet class contains two parameters. The first parameter is of the 
class HttpServletRequest. Describe the second parameter.
    1. AHttpServletResponse response
      In the object response the http-response is built
    2. BHttpServletResponse get
      In the object header the http-response is built
    3. CHttpServletResponse
      In the json header the http-response is built
  10. 10Describe the utf8 encoding which is frequently used by http
    1. AThe encoding is variable-length and uses 8-bit code units. It was designed for backward compatibility with ASCII. UTF-8 encodes each of the 1,112,064[8] valid code points in Unicode using one to four 8-bit bytes
    2. BThe encoding is variable-length and uses 8-bit code units. It was designed for backward compatibility with XML. UTF-8 encodes each of the 1,112,064[8] valid code points in Unicode using one to four 8-bit bytes

Información

Descripción
Test sobre REST and servlets, creado por Boy Achternaam el 29/01/2018.
Idioma
English
Visitas
1
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?