Loops

Beschreibung

Quiz am Loops, erstellt von Code Ramp am 18/04/2018.
Code Ramp
Quiz von Code Ramp, aktualisiert more than 1 year ago
Code Ramp
Erstellt von Code Ramp vor fast 7 Jahre
380
0

Zusammenfassung der Ressource

Frage 1

Frage
Which type of loop do you typically use when you know exactly how many iterations you will need to do?
Antworten
  • While loop
  • For loop

Frage 2

Frage
Which type of loop would you use when you are not certain how many iterations you will need to do?
Antworten
  • While loop
  • For loop

Frage 3

Frage
Which of the following do you need to define when you build a loop?
Antworten
  • 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

Frage 4

Frage
Which statement lets you skip one iteration of a loop?
Antworten
  • Break
  • Continue
  • Pass

Frage 5

Frage
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); };
Antworten
  • 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
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Chapter 3 & 4 Review
Shannon Anderson-Rush
JavaScript Fundamentals
Andrew Watters
Programming Techniques
Joseph Beaumont
Brushing up
techmaniac001
Deutsch-Abitur-Basiswissen für Gedichts- & Lektürenvergleich
danastone
Test: Verben mit Präpositionen
Claus Lenz
METH QUANTI SS 2019
Caroline Hannah
MS-1.3 Folienpaket 2
Markus Voßmann
Repro 2016 Vetie
Julia To
Vetie: Geflügelkrankheiten 2020
Johanna Tr
Vetie Spezielle Pathologie 2020
Fioras Hu