Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(TCOs 1, 4, and 6) Which of the following is false? (Points : 3) A The size of a

ID: 2081276 • Letter: #

Question

(TCOs 1, 4, and 6) Which of the following is false? (Points : 3)

A The size of an ArrayList can be determined by its length instance variable.

B The size of an ArrayList can be determined by its size method.

C You can add a new item to the end of an ArrayList with its add method.

D You can get an item from a specified index in an ArrayList with its get method.

A ListSelectionEvent
B ItemSelectionEvent
C ItemClickedEvent
D ListClickedEvent

A tabTitle
B Title
C addTab
D setTitle

(TCOs 1, 4, and 6) When an item in a JList is selected by the user, a _____ occurs. (Points : 3)

Explanation / Answer

(1) option (A) is false because we use methods in java to find the size of array list. Length gives last index + 1.

(2) when an item in a JLIST is selected by the user, a ListSelectionEvent occurs.

(3) The title of the tab is specified using the tabTitle method