Test
Loops: Part II
Este test tiene tipos de pregunta que se abren en el reproductor de siempre.
Preguntas del test (5)
1Which of the following are valid ways to increment a variable?
- A+x
- Bx = x + 1
- Cx++
- Dx += 1
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?
- Aplaceholder
- Bcounter
- Ctally
- Dnum
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].
- Ainfinite loop
4How are we using isFinished in the following example?
var isFinished = false;
while (!isFinished) {
if (now > testDeadline) {
isFinished = true;
}
}- AAs a flag
- BAs a counter
5It is not possible to nest one loop within another loop. A loop needs to end completely before starting a new loop.
- AVerdadero
- BFalso
Información
- Descripción
- Test sobre Loops: Part II, creado por Code Ramp el 17/04/2018.
- Autor
- Code Ramp
- Idioma
- English
- Visitas
- 212
- Historial
- Creado el 17 abr 2018 · actualizado el 17 sep 2019
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test