Question 1
  1. Potentially ambiguous operations
    1. Step 1 → how many tires do we buy? what kind?
    2. Step 2 → which tire do we change?
    3. Step 3 → to which point do we inflate the wheel?
    4. Step 4 → When is a wheel considered balanced?
    5. Step 5 → What operation(s) do we repeat?
  2. Modified pseudocode
    1. Buy 4 new tires of XXX characteristics
    2. For every new tire (4 tires)
      1. Inflate the wheel
      2. Balance the wheel
Question 2

C. The outcome is “you did it!”

Question 3

A. Byte code is given as input to the Java Virtual machine

Question 4

B. Java Virtual Machine is a compiler

Question 5

Either C or D

Question 6

public static int max(int data[10]) { int max = 0; for (int i = 0; i < data.length(); i++) { if (array[i] > max) { max = array[i]; } } return max[]; }

Question 7
index0123456
value10 (? or -1?)231302
Question 8
public static void printDigits(int x) {
	if (x == 0) return;
	else {
		System.out.println(x-(x/10)*10);
		printDigits(x/10);
	}
}
Question 9