Computer Science - Data Structures - Arrays - Array Operations Quiz
8 questions. Q1: What is the time complexity of accessing arr[5]? → O(1). Q2: Array: [10,20,30,40,50]. After inserting 25 at index 2, what's the array? → [10,20,25,30,40,50]. Q3: Why is inserting at the beginning O(n)? → All existing elements must shift right by one position. Q4: Given a 2D array gr