Both the Instructions on pages 202-204, Quick reference guide on page 209 are available at this link https://apcentral.collegeboard.org/pdf/ap-computer-science-a-course-and-exam-description.pdf?course=ap-computer-science-a
Correct solution and scoring guidelines are available at this link:
The correct answer outputs should be as follows.
2
0
1
0
false
true