GoConqr has a new look! Let us know what you think.

Quiz

Advanced Arrays

Code Ramp 5 questions

Take the quiz

Questions in this 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. ATrue
    2. BFalse

Information

Description
Quiz on Advanced Arrays, created by Code Ramp on 25/04/2018.
Author
Code Ramp
Language
English
Views
308
Tags
toefl
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?