Logo
QuestõesDisciplinasBancasDashboardSimuladosCadernoRaio-XBlog
Logo Questionei

Links Úteis

  • Início
  • Questões
  • Disciplinas
  • Simulados

Legal

  • Termos de Uso
  • Termos de Adesão
  • Política de Privacidade

Disciplinas

  • Matemática
  • Informática
  • Português
  • Raciocínio Lógico
  • Direito Administrativo

Bancas

  • FGV
  • CESPE
  • VUNESP
  • FCC
  • CESGRANRIO

© 2026 Questionei. Todos os direitos reservados.

Feito com ❤️ para educação

/
/
/
/
/
/
  1. Início/
  2. Questões/
  3. Língua Inglesa/
  4. Questão 457941201413482

According to the text, as you begin to write tests you will discove...

📅 2018🏢 INSTITUTO AOCP🎯 PRODEB📚 Língua Inglesa
#Compreensão de Texto

Esta questão foi aplicada no ano de 2018 pela banca INSTITUTO AOCP no concurso para PRODEB. A questão aborda conhecimentos da disciplina de Língua Inglesa, especificamente sobre Compreensão de Texto.

Esta é uma questão de múltipla escolha com 5 alternativas. Teste seus conhecimentos e selecione a resposta correta.

1

457941201413482
Ano: 2018Banca: INSTITUTO AOCPOrganização: PRODEBDisciplina: Língua InglesaTemas: Compreensão de Texto
Texto associado

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?
Gabarito comentado
Anotações
Marcar para revisão

Acelere sua aprovação com o Premium

  • Gabaritos comentados ilimitados
  • Caderno de erros inteligente
  • Raio-X da banca
Conhecer Premium

Questões relacionadas para praticar

Questão 457941200512422Língua Inglesa

In information systems, it is necessary that the user has an access name to use the system. Thus, it is correct to state that login refers to:

#Sinônimos#Compreensão de Texto
Questão 457941200900452Língua Inglesa

Match the columns according to the meanings for the words in the article and mark the option which contains the correct sequence:I. Garner II. Briefly...

#Aspectos Linguísticos#Vocabulário#Sinônimos#Verbos#Substantivos e Compostos#Adjetivos
Questão 457941201113795Língua Inglesa

The text presents some tips to keep your bowels healthy. According to them, mark the INCORRECT alternative concerning such tips.

#Compreensão de Texto
Questão 457941201240202Língua Inglesa

Choose the right preposition to fill up the following sentence: “I’m data scientist ____ MJSP.”

#Aspectos Linguísticos#Preposições
Questão 457941201682186Língua Inglesa

What does the text mainly talk about?

#Compreensão de Texto
Questão 457941202073557Língua Inglesa

According to the CIO’s 2021 State of the CIO survey, the technology enterprise which will probably demand IT investment in the near future will be bus...

#Compreensão de Texto

Continue estudando

Mais questões de Língua InglesaQuestões sobre Compreensão de TextoQuestões do INSTITUTO AOCP