Arrays provide _______ access to elements, but inserting or deleting elements can be _______.

  • Constant, complex
  • Direct, inefficient
  • Random, time-consuming
  • Sequential, fast
Arrays provide sequential access to elements, meaning that elements are stored in contiguous memory locations. However, inserting or deleting elements in the middle of an array can be time-consuming and inefficient, as it may require shifting all subsequent elements.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *