Questões de Concurso Público TCE-TO 2022 para Analista Técnico - Tecnologia da Informação
Foram encontradas 5 questões
function myFunction() {
document.getElementById("xxxx").submit();
}
o elemento xxxx deve identificar:
<!DOCTYPE html>
<html>
<head>
<style>
td {
border: 1px solid #dddddd;
padding: 20px;
} </style>
<h2>Tabela UM</h2>
<table>
<tr>
<td>A</td>
<td>B</td>
</tr>
<td>C</td>
<td>B2</td>
</tr>
</table>
</body>
</html>
Sobre esse script, é correto afirmar que:
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
É correto concluir que o termo this refere-se:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<table border="1">
<tr>
<th>Tipo</th>
<th>Nome</th>
</tr>
<xsl:for-each select="lista/produto">
<tr>
<td><xsl:value-of select="tipo"/></td>
<xsl:choose>
<xsl:when test="preco > 10">
<td>
<xsl:text>CARO </xsl:text>
<xsl:value-of select="nome"/>
</td>
</xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="nome"/></td>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Observe o seguinte recorte do documento lista.xml
<?xml-stylesheet type="text/xsl" href="
listacara.xsl"?>
<lista>
<produto>
<tipo>Comida</tipo>
<nome>Arroz</nome>
<preco>10</preco>
</produto>
<produto>
<tipo>Roupa</tipo>
<nome>Blusa</nome>
<preco>15</preco>
</produto>
</lista>
Ao abrir o documento lista.xml em um browser, o resultado será: