Saltar navegación

Quiz 3.1.2

Pregunta de selección múltiple

Pregunta

Which HTTP method(s) is/are used to request data from a specified resource? (Select all that apply)

Respostas

POST

GET

DELETE

PUT

Retroalimentación

Pregunta

Node.js is primarily used for: (Select all that apply)

Respostas

Creating CSS stylesheets

Developing server-side and networking applications

Executing JavaScript code on the server-side

Managing databases

Retroalimentación

Pregunta

Axios can be used to: (Select all that apply)

Respostas

Make HTTP requests from both the browser and Node.js.

Handle promises for asynchronous code.

Parse HTML documents on the server-side.

Manipulate DOM elements.

Retroalimentación

Pregunta

In the context of HTTP URLs, what does https indicate? (Select all that apply)

Respostas

The connection to the server is encrypted using TLS or SSL.

Hypertext Transfer Protocol Secure

The website is using the HTTP protocol.

Secure Hyperlink Text Protocol

Retroalimentación

Pregunta

Which of the following are true about creating a server in Node.js using the HTTP module? (Select all that apply)

Respostas

It requires the http module.

It can serve HTML files to clients.

It automatically supports HTTPS protocol.

It can handle requests and send responses.

Retroalimentación

Pregunta

HTTP POST requests are used for: (Select all that apply)

Respostas

Uploading data to the server.

Requesting sensitive data from the server.

Submitting form data.

Updating existing resources.

Retroalimentación

Pregunta

Which features make Axios a popular choice for HTTP communication in web development? (Select all that apply)

Respostas

Automatic transformation of JSON data.

Ability to intercept request and response.

Integration with React Native.

Native support for WebSockets.

Retroalimentación

Pregunta

When setting up a mock server in Postman, which of the following can you define? (Select all that apply)

Respostas

Request methods and response bodies.

Custom status codes for different responses.

Simulation of network latency.

Automatic generation of API documentation.

Retroalimentación

Pregunta

Considering secure communication between a client and server, which of the following are recommended practices? (Select all that apply)

Respostas

Using HTTPS instead of HTTP.

Storing sensitive data in plain text.

Implementing OAuth for API authentication.

Encrypting data payloads in POST requests.

Retroalimentación

Pregunta

For implementing real-time data exchange in a Node.js application, which approaches can be considered? (Select all that apply)

Respostas

Polling the server at regular intervals using Axios.

Setting up WebSockets for a two-way communication channel.

Using Server-Sent Events (SSE) for sending updates from server to client.

Relying solely on HTTP GET requests for fetching new data.

Retroalimentación

Feito con eXeLearning (Nova xanela)