AP Computer Science Amediummcq1 pt
To rotate elements one position right, first
A.save the last element in a temp
B.save the first element
C.sort the array
D.reverse the array
The last element would otherwise be lost.
Asave the last element in a temp
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →