AP Computer Science Aeasymcq1 pt

The method list.add(5) on an Integer list

A.appends 5 to the end of the list
B.adds 5 at index 5
C.replaces index 5
D.returns index 5

Explanation

Core Concept

add appends the element.

Correct Answer

Aappends 5 to the end of the list

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 →