Array Aces: The Manipulation u0026 Search Quiz Quiz

  1. Array Length

    What property do you use to determine the number of elements in an array in most programming languages?

    1. size()
    2. length()
    3. count()
    4. length
    5. elements
  2. Push Method

    Which array method is used to add one or more elements to the end of an array and return the new length of the array?

    1. append()
    2. add()
    3. push()
    4. insert()
    5. put()
  3. Pop Operation

    What array operation removes the last element from an array and returns that element?

    1. delete()
    2. pop()
    3. removeLast()
    4. slice()
    5. shift()
  4. Unshift Method

    Which array method adds one or more elements to the beginning of an array and returns the new length of the array?

    1. prepend()
    2. addToStart()
    3. unshift()
    4. insertAtBeginning()
    5. pushToFront()
  5. Shift Operation

    What array operation removes the first element from an array and returns that element?

    1. removeFirst()
    2. pop()
    3. shift()
    4. slice()
    5. deleteFirst()
  6. Splice Method

    Which array method is used to add or remove elements from an array at a specific index?

    1. slice()
    2. splice()
    3. cut()
    4. replace()
    5. concat()
  7. Slice Method

    Which method returns a shallow copy of a portion of an array into a new array object selected from start to end (end not included) where start and end represent the index of items in that array?

    1. split()
    2. copy()
    3. splice()
    4. slice()
    5. duplicate()
  8. IndexOf Method

    What method is used to find the first index at which a given element can be found in the array, or -1 if it is not present?

    1. find()
    2. search()
    3. indexOf()
    4. locate()
    5. findIndex()
  9. Includes Method

    Which array method determines whether an array includes a certain value among its entries, returning true or false as appropriate?

    1. contains()
    2. has()
    3. includes()
    4. exists()
    5. find()
  10. Join Method

    Which array method creates and returns a new string by concatenating all of the elements in an array, separated by commas or a specified separator string?

    1. merge()
    2. combine()
    3. concat()
    4. join()
    5. toString()