Code Ramp
Test por , creado hace más de 1 año

Test sobre Loops, creado por Code Ramp el 18/04/2018.

372
0
0
Code Ramp
Creado por Code Ramp hace alrededor de 6 años
Cerrar

Loops

Pregunta 1 de 5

1

Which type of loop do you typically use when you know exactly how many iterations you will need to do?

Selecciona una de las siguientes respuestas posibles:

  • While loop

  • For loop

Explicación

Pregunta 2 de 5

1

Which type of loop would you use when you are not certain how many iterations you will need to do?

Selecciona una de las siguientes respuestas posibles:

  • While loop

  • For loop

Explicación

Pregunta 3 de 5

1

Which of the following do you need to define when you build a loop?

Selecciona una o más de las siguientes respuestas posibles:

  • Exactly how many times you're going to run your loop

  • Where to start

  • How to make progress toward the end condition

  • Where to end

Explicación

Pregunta 4 de 5

1

Which statement lets you skip one iteration of a loop?

Selecciona una de las siguientes respuestas posibles:

  • Break

  • Continue

  • Pass

Explicación

Pregunta 5 de 5

1

In the following for loop, which of the following semicolons (if any) are *not* correct syntax?

for (var i = 0; i < 10; i++); {
console.log(i);
};

Selecciona una o más de las siguientes respuestas posibles:

  • Those inside the first set of parentheses (between each of the components of the loop)

  • The one after the first set of parentheses

  • The one after the console log statement

  • The one at the end of the for loop

Explicación