///
Quando carregada, essa página exibe:","answerCount":5,"datePublished":"2023-01-01T00:00:00-03:00","author":{"@type":"Organization","name":"FGV","url":"https://questionei.com"},"suggestedAnswer":[{"@type":"Answer","text":"O resultado é ... 400","position":1,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-0","author":{"@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"resultado é ... false","position":2,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-1","author":{"@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"O resultado é ... true","position":3,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-2","author":{"@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"O resultado é ... undefined","position":4,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-3","author":{"@type":"Organization","name":"FGV"}},{"@type":"Answer","text":"O resultado é ... abc*+","position":5,"encodingFormat":"text/html","upvoteCount":0,"datePublished":"2023-01-01T00:00:00-03:00","url":"https://questionei.com/questoes/457941200314548/#alternativa-4","author":{"@type":"Organization","name":"FGV"}}]}}
Esta questão foi aplicada no ano de 2023 pela banca FGV no concurso para DPE-RS. A questão aborda conhecimentos da disciplina de Linguagens de Programação, especificamente sobre Linguagens de Programação, Linguagens de Marcação.
Esta é uma questão de múltipla escolha com 5 alternativas. Teste seus conhecimentos e selecione a resposta correta.
Analise o código a seguir.
<!DOCTYPE html>
<html>
<body>
<p id="e2"><span id="e1"></p>
<script>
let a = 12;
let b = 8;
let c = a+b;
try {
let xpto = eval("(a+b)*c");
document.getElementById("e1").innerHTML = xpto;
}
catch(err) {
document.getElementById("e1").innerHTML =
undefined;
}
finally {
document.getElementById("e1").innerHTML =
"O resultado é ... " +
document.getElementById("e1").innerHTML;
}
</script>
</body>
</html>
Quando carregada, essa página exibe: