¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

Advanced Arrays

Code Ramp 5 preguntas

Hacer el test

Preguntas del test (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. AVerdadero
    2. BFalso

Información

Descripción
Test sobre Advanced Arrays, creado por Code Ramp el 25/04/2018.
Idioma
English
Visitas
308
Etiquetas
toefl
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?