Quiz
Loops: Part II
Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.
Fragen in diesem Quiz (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.
- ARichtig
- BFalsch
Informationen
- Beschreibung
- Quiz am Loops: Part II, erstellt von Code Ramp am 17/04/2018.
- Autor
- Code Ramp
- Sprache
- English
- Aufrufe
- 212
- Verlauf
- Erstellt am 17 Apr 2018 · aktualisiert am 17 Sep 2019
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz