Question 1:

Assume that nums has been created as an ArrayList object and initially contains the following Integer values: 
[0, 0, 4, 2, 5, 0, 3, 0] 

What will nums contain as a result of executing the following method numQuest?

---

private List<Integer> nums;

//precondition: nums.size() > 0
//nums contains Integer objects
public void numQuest() {
   int k = 0;
   Integer zero = new Integer(0);
   while (k < nums.size())
   {
      if (nums.get(k).equals(zero))
         nums.remove(k);
      k++;
   }
}

---

A. [0, 0, 4, 2, 5, 0, 3, 0]
B. [3, 5, 2, 4, 0, 0, 0, 0]
C. [0, 0, 0, 0, 4, 2, 5, 3]
D. [4, 2, 5, 3]
E. [0, 4, 2, 5, 3]
