Test
2. Web Technology Basics
Preguntas del test (7)
1Which HTTP response status code indicates that an error occurred at the server side? (1)
- AThe HTTP status code 301
- BThe HTTP status code 404
- CAny HTTP status code between 500 and 599
- DAny HTTP status code below 200
2Which HTTP response status code should a web server (or web application) send to inform the client that a resource was moved to a new location? (1)
- AThe HTTP status code 100 to instruct the client that further requests are required to complete the request
- BThe HTTP status code 200 to indicate that neither a client nor a server error occurred
- CThe HTTP status code 301 if the resource was moved permanently, or 302 if the resource was only moved temporarily
- DThe HTTP status code 404 as the original resource was not found
- EThe HTTP status code 504 as the resource has been changed on the server which means that it’s a server error
3What is the main difference between the HTTP response status codes 301, 302, 307, and 308, given that they all redirect a client to a new location? (3)
- AWeb servers may only send the status code 307 if the client made a request through HTTPS, whereas the code 301 is valid in HTTP and HTTPS
- BThe status codes 307 and 308 return the new URI but explicitly instruct the client not to follow the redirect
- CThe status codes 307 and 308 explicitly instruct the client to use the same method (GET or POST) when requesting the resource at the new location
- DThe status code 308 explicitly instructs the client to use HTTPS rather than HTTP when requesting the resource at the new location
- EThe status code 301 indicates that the resource has been moved permanently, whereas the code 302 indicates a temporary change
- FThe status code 307 indicates that the resource has been moved temporarily, whereas the code 308 indicates a permanent change
4What is a regular expression? (1)
- AA rule that the TYPO3 Association developed for the TYPO3 Code of Conduct
- BAn expression that is regularly used in the web technology to securely encrypt passwords
- CA technology that allows users to specify search patterns for texts
- DA configuration language to define virtual hosts in the Apache HTTP server
5Which of the following statements about the regular expression /^(cute)*(kitty)+/ are correct? (3)
- AIt matches the input “cute” as the word “kitty” is optional (due to the quantifier +)
- BIt matches the input “cutekittycat” as the regex does not feature the $-character that would define the end of the input
- CIt matches the input “etucyttik” as the order of characters is arbitrary
- DIt does not match the input “fookitty” as the input does neither start with “cute” nor “kitty”
- EIt does not match the input “cutekitty” as the input must not start with the word “cute” (due to the quantifier *)
- FIt matches the input “kitty” as the word “cute” at the beginning is optional (due to the quantifier *)
6Which of these terms does the regular expression /^foo.bar[1-9]?$/ match? (1)
- Afoobar
- Bfoobar6
- Cfoo2bar123
- Dfooobar1
- Efoobar1
- Ffoo123
- Gfffoobarrr
- Hbar9
- I123foobar123
7Which regular expressions match the term “Image 42”? (2)
- A/^[A-Za-z0-9][a-z]?\s[0-9]{2,4}$/
- B/^Image[0-9]+$/
- C/^[a-z]{1}[a-z]{1,}[0-9]{1}$/
- D/^\w{1,5}\s\d+$/
- E/^\d[a-zA-Z]*\s42$/
Información
- Descripción
- El usuario ha eliminado su información de asignaturas Test sobre 2. Web Technology Basics, creado por Usuario eliminado el 23/05/2022.
- Autor
- Usuario eliminado
- Idioma
- English
- Visitas
- 12
- Historial
- Creado el 23 may 2022 · actualizado el 23 may 2022
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test