Code Ramp
Quiz von , erstellt am more than 1 year ago

Quiz am Loops, erstellt von Code Ramp am 18/04/2018.

372
0
0
Code Ramp
Erstellt von Code Ramp vor etwa 6 Jahre
Schließen

Loops

Frage 1 von 5

1

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

Wähle eine der folgenden:

  • While loop

  • For loop

Erklärung

Frage 2 von 5

1

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

Wähle eine der folgenden:

  • While loop

  • For loop

Erklärung

Frage 3 von 5

1

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

Wähle eine oder mehr der folgenden:

  • 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

Erklärung

Frage 4 von 5

1

Which statement lets you skip one iteration of a loop?

Wähle eine der folgenden:

  • Break

  • Continue

  • Pass

Erklärung

Frage 5 von 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);
};

Wähle eine oder mehr der folgenden:

  • 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

Erklärung