GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Advanced Arrays

Code Ramp 5 Fragen

Quiz starten

Fragen in diesem Quiz (5)

  1. 1Which of the following lets us loop over an array?
    1. Afor loop
    2. BforEach method
    3. Cwhile loop
  2. 2If we use a for loop to loop through an array, what would the end condition typically be?
    1. Ai < array.length
    2. Bi <= array.length
    3. Ci > array.length
    4. Di >= array.length
  3. 3The forEach method allow you to define parameters for which of the following? (Note: some of them are optional!)
    1. AThe array you're iterating over
    2. BThe element itself
    3. CThe index of that element
  4. 4Which of the following accurately reflects how we might represent 2D data?

    Example data:
    a b c
    1 2 3
    1. Avar myData = [['a', 'b' ,'c'], [1, 2, 3]];
    2. Bvar myData = ['a', 1, 'b', 2, 'c', 3];
    3. Cvar myData = ['a', 'b', 'c', 1, 2 ,3];
    4. Dvar myData = ['a', 'b', 'c'] + [1, 2, 3];
  5. 5In nested loops, the outer loop will be completed (i.e. iterate over every single item) before the inner loop ever begins.
    1. ARichtig
    2. BFalsch

Informationen

Beschreibung
Quiz am Advanced Arrays, erstellt von Code Ramp am 25/04/2018.
Sprache
English
Aufrufe
308
Schlagwörter
toefl
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck