Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Web Developer perguntas e respostas de entrevista

Pergunta 36. What is the purpose of the 'role' attribute in HTML?

The 'role' attribute is used to define the purpose or type of an element for accessibility, helping assistive technologies interpret content.

Example:

Unchecked

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 37. Explain the concept of 'WebSockets' and how they differ from HTTP.

WebSockets provide a full-duplex communication channel over a single, long-lived connection, enabling real-time communication between the client and server, unlike the request-response nature of HTTP.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 38. What is the purpose of the 'fetch' API in JavaScript?

The 'fetch' API is used to make HTTP requests and handle responses in a more flexible and modern way compared to the traditional 'XMLHttpRequest'.

Example:

fetch('https://api.example.com/data')
  .then(response => response.json())
  .then(data => console.log(data));

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 39. Explain the concept of 'Cross-site Scripting (XSS)' and how to prevent it.

XSS is a security vulnerability where attackers inject malicious scripts into web pages. To prevent it, developers should sanitize user input, use proper encoding, and implement Content Security Policy (CSP).

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 40. What is the purpose of the 'transition' property in CSS?

The 'transition' property is used to create smooth transitions between different property values, allowing for animation effects.

Example:

div {
  transition: width 2s, height 2s;
}

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright © 2026, WithoutBook.