Which of these code segments will result in displaying the same output?

Answer:
I and II only.
Explanation:
I and II will output all except the last item in the array, as its i < arrnum.length.
III, however, will output all items in the array, since the last case is a = arrnum.length.