A

Admin • 828.03K Points
Coach

Q. What does the pop method do when called on an array in Ruby?

  • (A) Removes the first element of the array
  • (B) Removes the last element of the array
  • (C) Returns a new array with the last element removed
  • (D) Inserts an element at a specified index
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category Ruby
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.