Questões de Concurso Público PRODEB 2018 para Analista de TIC I - Construção de Software

Foram encontradas 50 questões

Q1165344 Algoritmos e Estrutura de Dados

A definição de uma variável é uma das etapas principais para elaboração de um programa, que pode ser compreendida como uma reserva de um espaço na memória do computador para armazenar informações. Em relação aos tipos de variáveis, informe se é verdadeiro (V) ou falso (F) o que se afirma a seguir e assinale a alternativa que apresenta a sequência correta.


( ) Variável do tipo caractere serve para armazenar um único caractere podendo ser letra ou símbolo.

( ) Variável do tipo inteiro é utilizada para armazenar valores numéricos, podendo ser positivos e negativos e, também, valores com ponto decimal.

( ) Variável do tipo numérico real armazena valores reais, inclusive valores com ponto decimal, podendo ser positivos e negativos.

Alternativas
Q1165345 Programação
Com a necessidade crescente da realização do Gerenciamento de Dependências, já estão disponíveis no mercado várias ferramentas para realizar essa atividade, porém, em sua maioria, elas são específicas para cada tipo de linguagem. Em relação à Linguagem de Programação PHP, qual é a ferramenta utilizada para a realização dessa atividade?
Alternativas
Q1165346 Programação
A linguagem de formatação web CSS possui uma funcionalidade denominada de controle de colunas, que pode com a sua aplicação realizar, de forma automatizada, a definição das colunas de texto. Ela possui também uma propriedade que cria um espaço entre as colunas. Como é chamada essa propriedade?
Alternativas
Q1165347 Banco de Dados
Qual comando é utilizado em SQL para retornar a soma de valores?
Alternativas
Q1165348 Engenharia de Software
O Pair Programming (Programação em Pares) é uma característica de um determinado método de desenvolvimento de software em que dois programadores trabalham juntos no desenvolvimento de um código. Qual foi o método que criou essa prática?
Alternativas
Q1165349 Programação
Na linguagem de programação JAVA, o conceito de herança é amplamente utilizado. Sua abstração é derivada do mundo real, onde as características são herdadas dos pais pelos filhos, netos, bisnetos etc. Qual é a palavra utilizada em JAVA para identificar que uma classe (Filho) herdará as funcionalidades de outra (Pai)?
Alternativas
Q1165350 Engenharia de Software
Qual é o comando em GIT utilizado para listar todas as configurações disponíveis em seu estado atual?
Alternativas
Q1165351 Engenharia de Software
Durante a implementação da Metodologia TDD (Test Driven Development), uma técnica abordada para o desenvolvimento de testes unitários é o princípio denominado de F.I.R.S.T., em que cada letra determina uma característica que o teste deve ter. Quais são essas características?
Alternativas
Q1165352 Inglês

Set the Table

When you begin writing tests, you will discover a common pattern:


1. Create some objects

2. Stimulate them

3. Check the results


While the stimulation and checking steps are unique test-to-test, the creation step is often familiar. I have a 2 and 3. If I add them, I expect 5. If I subtract them, I expect – 1, if I multiply them, I expect 6. The stimulation and expected results are unique, the 2 and the 3 don’t change.

If this pattern repeats at different scales (and it does), then we’re faced with the question of how often do we want to create new objects. Looking back at our initial set of constraints, two constraints come into conflict:


· Performance—we would like our tests to run as quickly as possible

· Isolation—we would the success or failure of one test to be irrelevant to other tests


For performance sake, assuming creating the objects (we’ll call them collectively the “fixture”) is expensive, we would like to create them once and then run lots of tests.

But sharing objects between tests creates the possibility of test coupling. Test coupling can have an obvious nasty effect, where breaking one test causes the next ten to fail even though the code is correct. Test coupling can have a subtle really nasty effect, where the order of tests matters. If I run A before B, they both work, but if I run B before A, then A fails. Worse, the code exercised by B is wrong, but because A ran first, the test passes.

Kent Beck – Test-Driven Development By Example. Addison-Wesley Professional; Edição: 1. Novembro, 2002. Page 82.

Based on the text it is correct to state about the coupling of tests that:
Alternativas
Q1165353 Inglês

Set the Table

When you begin writing tests, you will discover a common pattern:


1. Create some objects

2. Stimulate them

3. Check the results


While the stimulation and checking steps are unique test-to-test, the creation step is often familiar. I have a 2 and 3. If I add them, I expect 5. If I subtract them, I expect – 1, if I multiply them, I expect 6. The stimulation and expected results are unique, the 2 and the 3 don’t change.

If this pattern repeats at different scales (and it does), then we’re faced with the question of how often do we want to create new objects. Looking back at our initial set of constraints, two constraints come into conflict:


· Performance—we would like our tests to run as quickly as possible

· Isolation—we would the success or failure of one test to be irrelevant to other tests


For performance sake, assuming creating the objects (we’ll call them collectively the “fixture”) is expensive, we would like to create them once and then run lots of tests.

But sharing objects between tests creates the possibility of test coupling. Test coupling can have an obvious nasty effect, where breaking one test causes the next ten to fail even though the code is correct. Test coupling can have a subtle really nasty effect, where the order of tests matters. If I run A before B, they both work, but if I run B before A, then A fails. Worse, the code exercised by B is wrong, but because A ran first, the test passes.

Kent Beck – Test-Driven Development By Example. Addison-Wesley Professional; Edição: 1. Novembro, 2002. Page 82.

According to the text, as you begin to write tests you will discover a pattern. What pattern is it?
Alternativas
Respostas
21: C
22: D
23: B
24: E
25: B
26: D
27: A
28: B
29: E
30: C