AP Computer Science Amediummcq1 pt
A loop condition of i ≤ list.size() while calling list.get(i)
A.throws an IndexOutOfBoundsException on the last iteration
B.runs correctly
C.skips the first element
D.fails to compile
get(size) is out of bounds.
Athrows an IndexOutOfBoundsException on the last iteration
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →