AP Computer Science Aeasymcq1 pt

An enhanced for loop over an ArrayList gives

A.each element's value without the index
B.each index only
C.the list size
D.nothing

Explanation

Core Concept

For-each yields values only.

Correct Answer

Aeach element's value without the index

More Unit 7: ArrayList practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 7: ArrayList Questions →