O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Loops: Part II

Code Ramp 5 perguntas Atualizado em 17 set 2019

Fazer o quiz

Este quiz tem tipos de pergunta que abrem no player de sempre.

Perguntas do quiz (5)

  1. 1Which of the following are valid ways to increment a variable?
    1. A+x
    2. Bx = x + 1
    3. Cx++
    4. Dx += 1
  2. 2What do you call a variable that you use to keep track of the number of iterations that you've gone through in a loop?
    1. Aplaceholder
    2. Bcounter
    3. Ctally
    4. Dnum
  3. 3When you write a loop that doesn't make progress toward the end condition, you might crash your browser by throwing it into an [blank_start]infinite loop[blank_end].
    1. Ainfinite loop
  4. 4How are we using isFinished in the following example?

    var isFinished = false;
    while (!isFinished) {
    if (now > testDeadline) {
    isFinished = true;
    }
    }
    1. AAs a flag
    2. BAs a counter
  5. 5It is not possible to nest one loop within another loop. A loop needs to end completely before starting a new loop.
    1. AVerdadeiro
    2. BFalso

Informações

Descrição
Quiz sobre Loops: Part II, criado por Code Ramp em 17-04-2018.
Idioma
English
Visualizações
212
Histórico
Criado em 17 abr 2018 · atualizado em 17 set 2019
Etiquetas
toefl
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Mais sobre Control Structures

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?