The scoring should be 31/36; in addition to the noted points not being earned, the response would also not earn Q1 Point 2 because it lacks the correct nested-if logic. (If levelOne goal is not reached, we should not even consider the later levels; in this loop strategy there would need to be a break statement somewhere to earn Point 2.)
Also, yes, solutions that use Java features that are not given in the Course and Exam Description (CED) are allowed and can earn full credit on FRQs. Some non-CED features (like using the .contains method) are very common on student responses; others (like using the Random class or the .endsWith method or writing @Override) are less common but would probably be seen at least a few times by anyone scoring a relevant problem.
I'll add that not only is it 31/36, the errors in these responses aren't some off-the-wall thing that would not show up in reality—if someone hand-wrote this it would look entirely plausible as a "real" submitted response. If this isn't just an online lookup (and the errors suggest it isn't?), it's very impressive.
Also, yes, solutions that use Java features that are not given in the Course and Exam Description (CED) are allowed and can earn full credit on FRQs. Some non-CED features (like using the .contains method) are very common on student responses; others (like using the Random class or the .endsWith method or writing @Override) are less common but would probably be seen at least a few times by anyone scoring a relevant problem.
I'll add that not only is it 31/36, the errors in these responses aren't some off-the-wall thing that would not show up in reality—if someone hand-wrote this it would look entirely plausible as a "real" submitted response. If this isn't just an online lookup (and the errors suggest it isn't?), it's very impressive.