- FORMAT: The test will be approximately 5 multiple-choice / short answer questions and 2 free response questions.

1) Assume you have the following code:

```
ArrayList<Integer> myList = new ArrayList<Integer>();
for(int i=0; i<=5; i++)
{
myList.add(i);
if(i != 0)
myList.set(i-1, myList.get(i-1) + 1);
}
```

What does myList store after the above code executes?

2) Create a 2-dimensional array of int data types with a size of 3x3 and initialize it with the numbers 1 through 9 in the following fashion:

```
123
456
789
```

3) Assume we have Card object from our Video Poker project. Complete the method below:

```
public boolean isFlush(ArrayList<Card> hand)
{
}
```

4) A self-divisor is a number that is evenly divisible by all of its digits. For instance, the number 128 is a self-divisor because 128 is evenly divisible by 1, 2, and 8. However, 26 is NOT a self-divisor because it is not evenly divisible by 6. Note that 0 is not considered to be a self-divisor so any number containing a 0 is not a self-divisor. Complete the method below:

```
public boolean isSelfDivisor(int number)
{
}
```