AP Computer Science Amediummcq1 pt

Shifting every element one position left with a[i] = a[i + 1]

A.loses the first element
B.loses the last element
C.reverses the array
D.throws an exception

Explanation

Core Concept

The first value is overwritten.

Correct Answer

Aloses the first element

More Unit 6: Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 6: Array Questions →