Magna Concursos

Foram encontradas 120 questões.

2308097 Ano: 2020
Disciplina: TI - Desenvolvimento de Sistemas
Banca: CESPE / CEBRASPE
Orgão: Min. Economia
A seguir, é apresentada parte de um arquivo em JSON, em que foram inseridos números seguidos de ponto (.) apenas para indicar as linhas.
1. [
2. {
3. "Fabrica": "FabricaB",
4. "Pais": "PaisB",
5. "Carros": [
6. "CarroA",
7. "CarroB"
8. ]
9. },
10. {
11. "Fabrica": "FabricaC",
12. "Pais": "PaisC",
13. "Carros": [
14. "CarroC",
15. "CarroD"
16. ]
17. }
18.]
Tendo como referência as informações precedentes, julgue o item subsecutivo, a respeito de JSON.
Considere que a linha 18 atual seja excluída e sejam incluídas, logo após a linha 17, as linhas mostradas a seguir, numeradas de 18 a 21; nesse caso, tem-se um exemplo de como inserir um método no arquivo JSON em questão.
(…)
17. }
18. function inserecarro(nfabrica,ncarro) {
19. new.nfabrica = "ncarro";
20. }
21. ]
 

Provas

Questão presente nas seguintes provas
2308096 Ano: 2020
Disciplina: TI - Desenvolvimento de Sistemas
Banca: CESPE / CEBRASPE
Orgão: Min. Economia
A seguir, é apresentada parte de um arquivo em JSON, em que foram inseridos números seguidos de ponto (.) apenas para indicar as linhas.
1. [
2. {
3. "Fabrica": "FabricaB",
4. "Pais": "PaisB",
5. "Carros": [
6. "CarroA",
7. "CarroB"
8. ]
9. },
10. {
11. "Fabrica": "FabricaC",
12. "Pais": "PaisC",
13. "Carros": [
14. "CarroC",
15. "CarroD"
16. ]
17. }
18.]
Tendo como referência as informações precedentes, julgue o item subsecutivo, a respeito de JSON.
A sintaxe das linhas 1, 5, 8, 13, 16 e 18 está errada, pois, em JSON, os vários valores em um array não devem ser listados entre colchetes, como ocorre nas linhas mencionadas, mas entre parênteses.
 

Provas

Questão presente nas seguintes provas
2308095 Ano: 2020
Disciplina: TI - Desenvolvimento de Sistemas
Banca: CESPE / CEBRASPE
Orgão: Min. Economia
Acerca dos padrões UDDI, SOAP e REST, julgue o item a seguir.
A seguir, é apresentado um exemplo de UDDI para um serviço hipotético de nome OperationX.
<binding name="MyBinding" type="tns:abc" >
<soap:binding style="rpc" transport="http://
schemas.xmlsoap.org/soap/http"/>
<operation name="OperationX">
<soap:operation soapAction=""/>
<input>
<mime:multipartRelated>
<mime:part>
<soap:body parts="part1 part2 ..."
use="encoded"
namespace="http://mynamespace"
encodingStyle="http://schemas.xmlsoap.org/
soap/encoding"/>
</mime:part>
<mime:part>
<mime:content part="attch" type="
text/html"/>
</mime:part>
</mime:multipartRelated>
</input>
</operation>
</binding>
 

Provas

Questão presente nas seguintes provas
2308094 Ano: 2020
Disciplina: TI - Desenvolvimento de Sistemas
Banca: CESPE / CEBRASPE
Orgão: Min. Economia
A seguir, são apresentados dois arquivos, um escrito em XML e outro escrito em XSLT. Nesses arquivos, foram inseridos números seguidos de ponto (.) apenas para indicar as suas linhas.
A tabela a seguir ilustra o resultado esperado quando se utilizam esses arquivos.
arquivo XML
1. <?xml version="1.0" encoding="UTF-8"?>
2. <garagem>
3. <carro>
4. <modelo>ModeloA</modelo>
5. <marca>MarcaA</marca>
6. </carro>
7. <carro>
8. <modelo>ModeloB</modelo>
9. <marca>MarcaB</marca>
10. </carro>
11. </garagem>
arquivo XSLT
1. <?xml version="1.0" encoding="UTF-8"?>
2. <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3. <xsl:template match="/">
4. <html>
5. <body>
6. <table border="1">
7. <tr>
8. <th>Modelo</th>
9. <th>Marca</th>
10. </tr>
11. <xsl:ABCD select="garagem/carro">
12. <tr>
13. <td><xsl:value-of
select="modelo"/></td>
14. <td><xsl:value-of
select="marca"/></td>
15. </tr>
16. </xsl:ABCD>
17. </table>
18. </body>
19. </html>
20. </xsl:template>
21. </xsl:stylesheet>
resultado esperado
modelo marca
ModeloA MarcaA
ModeloB MarcaB
Tendo como referência as informações precedentes, julgue o item seguinte, a respeito de XML e XSLT.
Para a obtenção do resultado esperado, a linha 3 do arquivo XSLT deve ser substituída pela linha a seguir, pois o atributo match deve conter o elemento garagem do arquivo XML. <xsl:template match="garagem">
 

Provas

Questão presente nas seguintes provas
2308093 Ano: 2020
Disciplina: TI - Desenvolvimento de Sistemas
Banca: CESPE / CEBRASPE
Orgão: Min. Economia
A seguir, são apresentados dois arquivos, um escrito em XML e outro escrito em XSLT. Nesses arquivos, foram inseridos números seguidos de ponto (.) apenas para indicar as suas linhas.
A tabela a seguir ilustra o resultado esperado quando se utilizam esses arquivos.
arquivo XML
1. <?xml version="1.0" encoding="UTF-8"?>
2. <garagem>
3. <carro>
4. <modelo>ModeloA</modelo>
5. <marca>MarcaA</marca>
6. </carro>
7. <carro>
8. <modelo>ModeloB</modelo>
9. <marca>MarcaB</marca>
10. </carro>
11. </garagem>
arquivo XSLT
1. <?xml version="1.0" encoding="UTF-8"?>
2. <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3. <xsl:template match="/">
4. <html>
5. <body>
6. <table border="1">
7. <tr>
8. <th>Modelo</th>
9. <th>Marca</th>
10. </tr>
11. <xsl:ABCD select="garagem/carro">
12. <tr>
13. <td><xsl:value-of
select="modelo"/></td>
14. <td><xsl:value-of
select="marca"/></td>
15. </tr>
16. </xsl:ABCD>
17. </table>
18. </body>
19. </html>
20. </xsl:template>
21. </xsl:stylesheet>
resultado esperado
modelo marca
ModeloA MarcaA
ModeloB MarcaB
Tendo como referência as informações precedentes, julgue o item seguinte, a respeito de XML e XSLT.
Para que o arquivo XSLT fique sintaticamente correto, os caracteres ABCD devem ser substituídos por get-value nas linhas 11 e 16.
 

Provas

Questão presente nas seguintes provas
2308092 Ano: 2020
Disciplina: TI - Desenvolvimento de Sistemas
Banca: CESPE / CEBRASPE
Orgão: Min. Economia
A seguir, são apresentados dois arquivos, um escrito em XML e outro escrito em XSLT. Nesses arquivos, foram inseridos números seguidos de ponto (.) apenas para indicar as suas linhas.
A tabela a seguir ilustra o resultado esperado quando se utilizam esses arquivos.
arquivo XML
1. <?xml version="1.0" encoding="UTF-8"?>
2. <garagem>
3. <carro>
4. <modelo>ModeloA</modelo>
5. <marca>MarcaA</marca>
6. </carro>
7. <carro>
8. <modelo>ModeloB</modelo>
9. <marca>MarcaB</marca>
10. </carro>
11. </garagem>
arquivo XSLT
1. <?xml version="1.0" encoding="UTF-8"?>
2. <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3. <xsl:template match="/">
4. <html>
5. <body>
6. <table border="1">
7. <tr>
8. <th>Modelo</th>
9. <th>Marca</th>
10. </tr>
11. <xsl:ABCD select="garagem/carro">
12. <tr>
13. <td><xsl:value-of
select="modelo"/></td>
14. <td><xsl:value-of
select="marca"/></td>
15. </tr>
16. </xsl:ABCD>
17. </table>
18. </body>
19. </html>
20. </xsl:template>
21. </xsl:stylesheet>
resultado esperado
modelo marca
ModeloA MarcaA
ModeloB MarcaB
Tendo como referência as informações precedentes, julgue o item seguinte, a respeito de XML e XSLT.
O arquivo XML continuaria sintaticamente correto mesmo se fossem excluídas as linhas 2 e 11.
 

Provas

Questão presente nas seguintes provas
With the exception of business owners and investors, most Brazilians looked for candidates who prioritized job creation and income generation, in the 2018 elections. According to a Brazilian Economic Outlook from the Institute of Applied Economic Research (IPEA), the economy sustained growth (albeit slow) for a while since the end of 2017, industrial production increased, and unemployment rates declined. Nevertheless, 13.4 million people remained jobless, particularly women, youth, and people of color; and growth rates were disappointing. A poll by Datafolha showed at the time that Brazilians’ perceptions of the economy were pessimistic: 72 percent of those surveyed felt the economic scenario had worsened in the last months. Similar to the reaction to corruption, this extremely negative perception of the socioeconomic environment could potentially further distance voters from the traditional government and their allies, turning voters toward “unconventional” candidates instead, who could represent a change in the status quo.
Idem. Ibidem (adapted).
Concerning the text presented above, judge the following item.
The authors claim that voters’ attitudes towards the economic situation at the time would lead to them identifying with candidates from traditional political parties.
 

Provas

Questão presente nas seguintes provas
With the exception of business owners and investors, most Brazilians looked for candidates who prioritized job creation and income generation, in the 2018 elections. According to a Brazilian Economic Outlook from the Institute of Applied Economic Research (IPEA), the economy sustained growth (albeit slow) for a while since the end of 2017, industrial production increased, and unemployment rates declined. Nevertheless, 13.4 million people remained jobless, particularly women, youth, and people of color; and growth rates were disappointing. A poll by Datafolha showed at the time that Brazilians’ perceptions of the economy were pessimistic: 72 percent of those surveyed felt the economic scenario had worsened in the last months. Similar to the reaction to corruption, this extremely negative perception of the socioeconomic environment could potentially further distance voters from the traditional government and their allies, turning voters toward “unconventional” candidates instead, who could represent a change in the status quo.
Idem. Ibidem (adapted).
Concerning the text presented above, judge the following item.
The article presents data from a survey that pointed to optimism about Brazil’s economic situation.
 

Provas

Questão presente nas seguintes provas
With the exception of business owners and investors, most Brazilians looked for candidates who prioritized job creation and income generation, in the 2018 elections. According to a Brazilian Economic Outlook from the Institute of Applied Economic Research (IPEA), the economy sustained growth (albeit slow) for a while since the end of 2017, industrial production increased, and unemployment rates declined. Nevertheless, 13.4 million people remained jobless, particularly women, youth, and people of color; and growth rates were disappointing. A poll by Datafolha showed at the time that Brazilians’ perceptions of the economy were pessimistic: 72 percent of those surveyed felt the economic scenario had worsened in the last months. Similar to the reaction to corruption, this extremely negative perception of the socioeconomic environment could potentially further distance voters from the traditional government and their allies, turning voters toward “unconventional” candidates instead, who could represent a change in the status quo.
Idem. Ibidem (adapted).
Concerning the text presented above, judge the following item.
According to the authors, unemployment in Brazil, at the time of publication, affected all gender and racial profiles equally.
 

Provas

Questão presente nas seguintes provas
With the exception of business owners and investors, most Brazilians looked for candidates who prioritized job creation and income generation, in the 2018 elections. According to a Brazilian Economic Outlook from the Institute of Applied Economic Research (IPEA), the economy sustained growth (albeit slow) for a while since the end of 2017, industrial production increased, and unemployment rates declined. Nevertheless, 13.4 million people remained jobless, particularly women, youth, and people of color; and growth rates were disappointing. A poll by Datafolha showed at the time that Brazilians’ perceptions of the economy were pessimistic: 72 percent of those surveyed felt the economic scenario had worsened in the last months. Similar to the reaction to corruption, this extremely negative perception of the socioeconomic environment could potentially further distance voters from the traditional government and their allies, turning voters toward “unconventional” candidates instead, who could represent a change in the status quo.
Idem. Ibidem (adapted).
Concerning the text presented above, judge the following item.
When the article was published, unemployment rates in Brazil had been going down.
 

Provas

Questão presente nas seguintes provas