AP Computer Science Amediummcq1 pt

To print an array's elements in reverse order, use

A.a loop from a.length - 1 down to 0
B.a loop from 0 to a.length - 1
C.an enhanced for loop
D.a single print of a

Explanation

Core Concept

Backward indexes print reversed.

Correct Answer

Aa loop from a.length - 1 down to 0

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 →