Foram encontradas 515 questões
Resolva questões gratuitamente!
Junte-se a mais de 4 milhões de concurseiros!
Seja o algoritmo abaixo, no qual o operador “!” inverte o valor dos bits de um número inteiro, e 1 é verdadeiro e 0 é falso.
|
Inicio Algoritmo Declarar cont como inteiro; Declarar bl como inteiro; bl= 1; Enquanto (bl) faça Enquanto (!bl) faça bl = !bl; Fim enquanto Para cont=1 até 10, de 1 em 1 faça Enquanto (!bl) faça Escreva "frase"; Fim enquanto; Fim para bl = !bl; Fim enquanto; Fim Algoritmo. |
Ao se executar esse algoritmo, “frase” será escrita:
Read the text below and answer the questions that follow.
Text:
How to get the most enjoyment from your color TV set
Your new color TV incorporates a host of features designed to give you excellent performance. Besides, this model utilizes a highly sophisticated control microprocessor that can give you unprecedented convenience and control in the areas of picture adjustment, channel tuning, monitor operation, on-screen information, and remote control.
We therefore strongly urge that you read all of these instructions before using your TV for the first time.
Installation
Antenna
Unless your TV is connected to a cable TV system, or to a centralized antenna system, a good outdoor color TV antenna is recommended for the best performance. However, if you are located in a strong signal area that is free from interference and ghost conditions (multipath), an indoor antenna may be sufficient. The two pole antenna packed with this set is for your convenience only. It is not capable of providing you with the sharp detail and rich color that this television was designed to display.
Location
Select an area where sunlight or bright indoor illumination will not fall directly on the picture screen. Also, be sure that the location selected allows a free flow of air to and from the perforated back cover of the set.
Note
Never remove the back cover of the set. This can expose you to very high voltage and other hazards.
If the set does not operate properly, unplug it and call your dealer or service shop.
(Fonte: Color Television – Operating Instructions.)
The word BESIDES in the first paragraph means:
Read the text below and answer the questions that follow.
Text:
How to get the most enjoyment from your color TV set
Your new color TV incorporates a host of features designed to give you excellent performance. Besides, this model utilizes a highly sophisticated control microprocessor that can give you unprecedented convenience and control in the areas of picture adjustment, channel tuning, monitor operation, on-screen information, and remote control.
We therefore strongly urge that you read all of these instructions before using your TV for the first time.
Installation
Antenna
Unless your TV is connected to a cable TV system, or to a centralized antenna system, a good outdoor color TV antenna is recommended for the best performance. However, if you are located in a strong signal area that is free from interference and ghost conditions (multipath), an indoor antenna may be sufficient. The two pole antenna packed with this set is for your convenience only. It is not capable of providing you with the sharp detail and rich color that this television was designed to display.
Location
Select an area where sunlight or bright indoor illumination will not fall directly on the picture screen. Also, be sure that the location selected allows a free flow of air to and from the perforated back cover of the set.
Note
Never remove the back cover of the set. This can expose you to very high voltage and other hazards.
If the set does not operate properly, unplug it and call your dealer or service shop.
(Fonte: Color Television – Operating Instructions.)
According to the text, the new color TV set “incorporates a host of features” (first paragraph). This means that the new color TV set has:

Nessa arquitetura,
- há um protocolo padrão para transmissão de dados, baseado no XML e que segue o modelo "REQUEST- RESPONDE" do HTTP.
- há um arquivo tipo XML, cuja finalidade é descrever detalhadamente um "web service", fornecendo uma descrição específica das operações que compõem o "web service" e define de forma clara como deve ser o formato de entrada e saída de cada operação.
O protocolo padrão e o arquivo XML referenciados acima são conhecidos, respectivamente, pelas siglas:
algoritmo "MDA"
var
M : vetor[1..5,1..5] de inteiro
L,C : inteiro
procedimento GERAR
inicio
para L de 1 ate 5 faca
para C de 1 ate L faca
se ((C=1) ou (L=C)) entao
M[L,C] <- 1
senao
M[L,C] <- M[L-1,C] + M[L-1 ,C-1]
fimse
fimpara
fimpara
fimprocedimento
procedimento SAIDA
inicio
para L de 1 ate 5 faca
para C de 1 ate I faca
escreva(M[L,C]:3)
fimpara
|escreval
fimpara
fimprocedimento
inicio
GERAR
SAIDA
fimalgoritmo
Após a execução, a saída será:

Observe as afirmativas a seguir.
- Após a execução, será impressa uma sequência de números.
- Na saída da estrutura, K terá um valor específico.
- As instruções no loop serão executadas n vezes.
A sequência de números e os valores de K e de n serão, respectivamente:
algoritmo "MDA"
var
X, W, N : inteiro
funcao FF(Y:inteiro):inteiro
inicio
N <- N + 1|
se Y < 2 entao
retorne 1
senao
retorne Y * FF(Y-1)
fimse
fimfuncao
inicio
X <-5
N <-0
W <- FF(X)
W <-W-50
escreval(W,N)
fimalgoritmo
Após a execução, o algoritmo, os valores de W e N serão, respectivamente:
algoritmo "MDA"
var
N : inteiro
C : caractere
L : logico
procedimento P14(var PN:inteiro;var PC:caractere;PL:logico)
inicio
PN <-65
PL <- FALSO
se (PN MOD 4 = 3) entao
PC < - "FLASH"
senao
PC < - "PHOTOSHOP"
fimse
fimprocedimento
inicio
N <-17
C<-"INDESIGN"
L <- FALSO
P14(N,C,L)
N <- N MOD 13
se L = VERDADEIRO entao
C<-"ILLUSTRATOR"
fimse
escreval(N:5,C:-10," ",L)
fimalgoritmo
Após a execução, o algoritmo ira gerar a seguinte saida:
algoritmo "ALG888"
var
N : inteiro
inicio
para N de 5 ate -2 passo -1 faca
se N MOD 2 = 0 entao
escreva(N)
fimse
fimpara
fimalgoritmo
Após a execução, o algoritmo irá gerar a seguinte saída:
- Interconexão;
- Segurança;
- Meios de Acesso;
- Organização e Intercambio de Informações;
- Áreas de Integração para Governo Eletrônico.
Essa arquitetura é conhecida pela sigla:
I. Situação em que exis tem as mesmas informações armazenadas em arquivos diversos, com conteúdos diferentes.
II. Existência das mesmas informações em aplicações diferentes, como por exemplo, em arquivos de pessoal e em registros de treinamento.
No que diz respeito aos dados armazenados, esses dois aspectos sao conhecidos, respectivamente, como:

Na execução das funções agr1($nr) e agr2(&$nr) , os tipos de passagens de parâmetros e a saída resultante são, respectivamente:
- É criado quando o projeto é salvo.
- Contém o código de inicialização da aplicação.
- Contem o código-fonte em Pascal do arquivo principal do projeto.
- Lista todos os formulários e units no projeto.
O formato para esse arquivo é:
Os níveis ALFA e BETA caracterizam , respectivamente, os seguintes qualificadores de acesso:

Existe a possibilidade de se inserir uma instrução no bloco de instruções no “ loop” , com o objetivo de forgar o termino da execução e a saída incondicional do While.
Essa instrução é:

Na figura, GAMA representa o ambiente de execução para todos os programs e interpreta o bytecode e o executa dinamicamente, enquanto, simultaneamente, providencia serviços como coleta de lixo e o tratamento de exceções.
GAMA é conhecido como:

Essa figura é conhecida como diagrama de :