Question 17:
Shoe E = new Shoe(7, "Left");
This line of code will not compile correctly because the programmer provided a string when a boolean value was required. "Left" should either be true or false.
Question 18:
2 is the output.
The substring of r at index 3, 4 is w and w is at index 2 in the q variable.
Question 19:
The output is: The answer is: 8.0. The math.pow function returns floating type values and that's why you get a decimal point.
Question 20:
The integers are being added together.
5 + 8 = 13
The output is 13.