Approaching this question in such a way to eliminate answers, you can start with the .length() method.
length() method of the String class in java and is used to measure the length of a string, not number of items in an array. This would eliminate option B.
Now that leaves size, size() and length(). There is no size variable so that eliminates D and E.
Leaving just .size() and .length(). This part could be confusing and unsure of if you mean Array or ArrayList i'll explain both.
If your variable is of type Array, the answer would be just B as there is no size method that applies to Arrays, just a length variable (so arrayElements.length).
If your variable is of type just ArrayList, the answer would be C, size() as ArrayList inherits the List interface and there is .length variable for ArrayList class.
TLDR:
If variable is truly of type ArrayList - option C is answer.
If variable is of type Array - option B is answer.