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 etwa 6 Jahre
372
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
Teil B, Kapitel 1.3, Handelsregister
Stefan Kurtenbach
Säure-Basen- Theorie
elham_riefaie
Dramenanalyse
sysa
Innere Medizin
marieschwertl
Anatomie Grundlagen
m m
MS-1.3: Folienpaket 5
Stephanie Hendricks
Vetie Repro 2020
Franziska Piepho