Hard Multiple Choice QuestionsΒΆ

These problems are about the same or harder than those you will see on the AP CS A exam.

8-9-1: What is in the list nums if it initially contained {5, 3, 1} and the following code is executed?

nums.add(6);
nums.add(0,4);
nums.remove(1);