Your browser does not support JavaScript!

Given an empty array with 5 in size and the following operations have been executedEnqueue(8)Enqueue(1)Enqueue(7)Enqueue(2)Enqueue(6)What will happen if an attempt to execute enqueue(3)?

  • The element will be added into the rear of the array
  • The element will be added in front of the array
  • None of the choices
  • A queue overflow error will occur Correct
Similar ITE-6201 questions