Pular para o conteúdo principal

Questão de TI - Desenvolvimento de Sistemas — Javascript — FUNDATEC 2023

TI - Desenvolvimento de SistemasJavascript
Código
qa541616
Banca
FUNDATEC
Órgão
PROCERGS
Ano
2023
Cargo
ANC ( )
Tendo em vista o código fonte abaixo, assinale a alternativa que apresenta o resultado do processamento desse código.   <!DOCTYPE html> <html> <body>     <section></section>       <script>          const conteudo = document.getElementById('conteudo');          const titulo = document.createElement('h1');          titulo.textContent = 'Título';         conteudo.appendChild(titulo);         const paragrafo = document.createElement('p');         paragrafo.textContent = 'Conteúdo deste parágrafo. ';         conteudo.appendChild(paragrafo);         const link = document.createElement('a');         link.textContent = 'Link';         link.setAttribute("href", "https://google.com");         paragrafo.appendChild(link);      </script> </body> </html>
  1. A<section>
       <h1>Título</h1>
       <p>Conteúdo deste parágrafo.</p>
       <a href="https://google.com">Link</a>
    </section>
  2. B<section>
       <h1>Título</h1>
       <p>
         Conteúdo deste parágrafo.
         <a href="https://google.com">Link</a>
        </p>
    </section>
  3. C<h1          >Título</h1> <section>     <p>     Conteúdo deste parágrafo.     <a href="https://google.com">Link</a>     </p> </section>
  4. D<section>
       <h1 i          d="titulo">Título</h1>
        <a href="https://google.com">Link</a>
       <p>Conteúdo deste parágrafo.</p>
    </section>
  5. E<section>
        <h1>Título</h1>
        <p>Conteúdo deste parágrafo.</p>
    </section>
    <a href="https://google.com">Link</a>
Revelar gabarito e comentário

GabaritoB — <section>    <h1>Título</h1>    <p>      Conteúdo deste parágrafo.      <a href="https://google.com">Link</a>     </p> </section>

Link permanente: /questoes/qa541616