Question 71
Given this class:

And given this main method, located in another class:

Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?

And given this main method, located in another class:

Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?
Question 72
Given:
public class Test {
public static void main(String[] args) {
int day = 1;
switch (day) {
case "7": System.out.print("Uranus");
case "6": System.out.print("Saturn");
case "1": System.out.print("Mercury");
case "2": System.out.print("Venus");
case "3": System.out.print("Earth");
case "4": System.out.print("Mars");
case "5": System.out.print("Jupiter");
}
}
}
Which two modifications, made independently, enable the code to compile and run?
public class Test {
public static void main(String[] args) {
int day = 1;
switch (day) {
case "7": System.out.print("Uranus");
case "6": System.out.print("Saturn");
case "1": System.out.print("Mercury");
case "2": System.out.print("Venus");
case "3": System.out.print("Earth");
case "4": System.out.print("Mars");
case "5": System.out.print("Jupiter");
}
}
}
Which two modifications, made independently, enable the code to compile and run?
Question 73
Given:

What is the result?


What is the result?

Question 74
Given:

And given the code fragment:

Which two modifications enable the code to print the following output? (Choose two.) Canine 60 Long Feline 80 Short A: Replace line n1 with:

B: Replace line n1 with:

C: Replace line n2 with:

D: Replace line n1 with:

E: Replace line n2 with:


And given the code fragment:

Which two modifications enable the code to print the following output? (Choose two.) Canine 60 Long Feline 80 Short A: Replace line n1 with:

B: Replace line n1 with:

C: Replace line n2 with:

D: Replace line n1 with:

E: Replace line n2 with:

Question 75
Given the code fragment:

What is the result?

What is the result?