Magna Concursos

Foram encontradas 50 questões.

Em um escritório ficou determinado que, durante um determinado período, o ar condicionado não poderá ficar ligado mais de seis horas por dia. Além disso, caso o ar condicionado seja ligado por mais de quatro horas, nos dias seguintes o mesmo não poderá ficar ligado por mais de duas horas por dia. Sabendo que no último dia do período não exista restrição para o tempo de uso para o ar condicionado, então o tempo máximo que esse ar condicionado poderá ficar ligado, em um período de sete dias seguidos, será igual a
 

Provas

Questão presente nas seguintes provas
A contrapositiva da proposição condicional “Se Marcos é escritor, então Paulo é professor” será dada por
 

Provas

Questão presente nas seguintes provas
Em um congresso de informática realizado em Salvador, 1800 pessoas foram entrevistadas. Nessa entrevista, as pessoas opinaram se gostam do sistema operacional Alfa ou se gostam do sistema operacional Beta. Após o término da entrevista, observou-se que 1180 pessoas gostam do sistema operacional Alfa, 1050 pessoas gostam do sistema operacional Beta e 900 gostam dos dois sistemas operacionais. Com base nessas informações, é correto afirmar que o número de pessoas que não gostam dos dois sistemas operacionais, Alfa e Beta, ou que não opinaram, é igual a
 

Provas

Questão presente nas seguintes provas

Pedro, Augusto e César foram a uma concessionária de automóveis. Cada um comprou um carro, todos da mesma marca, porém de cores diferentes: branco, azul ou prata. Considere que somente uma das afirmativas a seguir seja verdadeira:


• Augusto não comprou o carro azul.

• César não comprou o carro prata.

• Pedro comprou o carro prata.


Dessa forma, é correto afirmar que

 

Provas

Questão presente nas seguintes provas
Dados três conjuntos, A, B e C, e utilizando a simbologia de Conjuntos, o diagrama a seguir é descrito como


enunciado 1110607-1
 

Provas

Questão presente nas seguintes provas
Ao se referir à administração pública, surge a necessidade de elaboração de um orçamento público anual que não permita que os gastos superem a arrecadação, de tal forma que não comprometa os orçamentos dos futuros governantes e permita novas ações. Considerando o exposto, assinale a alternativa que apresenta o conceito de gestão estratégica na administração pública que revisa a visão original do Plano Plurianual.
 

Provas

Questão presente nas seguintes provas
1110591 Ano: 2018
Disciplina: Inglês (Língua Inglesa)
Banca: AOCP
Orgão: PRODEB

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?
 

Provas

Questão presente nas seguintes provas
1110589 Ano: 2018
Disciplina: Inglês (Língua Inglesa)
Banca: AOCP
Orgão: PRODEB

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:
 

Provas

Questão presente nas seguintes provas
Uma certa quantia em dinheiro foi deixada como prêmio para 5 pessoas. Após ser feito um sorteio para a ordem de retirada desse dinheiro, ocorreu a seguinte situação: a primeira pessoa sorteada retirou para si 1/5 do valor do prêmio, a segunda retirou 1/4 do restante, a terceira retirou 1/3 do novo restante, a quarta retirou 1/2 do novo restante e a quinta pessoa ficou com o restante final, igual a R$ 300,00. Dessa forma, a quantia de dinheiro que a quarta pessoa retirou foi de
 

Provas

Questão presente nas seguintes provas
Uma companhia de processamento de dados possui uma matriz em Salvador e uma filial em Feira de Santana, sendo que a matriz é responsável por 60% do faturamento mensal da companhia. No último mês, o faturamento da matriz sofreu um aumento de 30% e o faturamento da filial sofreu um aumento de 20%. Com base nessas informações, é correto afirmar que o aumento real no faturamento da companhia foi de
 

Provas

Questão presente nas seguintes provas