1. When you refactor code, do you need to modify your unit tests or can you continue to use the existing tests? Yes / No

  2. Can you use a switch statement for string values? Yes / No

  3. Write a while statement that produces the same output as the following for statement for any integer value of n:

    for (int i = 0; i < n; i++) {
      System.out.println(i);
    }
    
  4. Write a recursive algorithm for computing the summation function described in lab exercise 5b.5. You may assume that your value of n is non-negative.