AP Computer Science Amediummcq1 pt
Swapping the values at a[i] and a[j] requires
A.a temporary variable
B.a new array
C.an enhanced for loop
D.a String method
A temp holds one value during the swap.
Aa temporary variable
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →