Page 1179 - AP Computer Science A, 7th edition
P. 1179

9. (E) The actual letter and its point value must not be in quotes because their values must be printed. Everything else, including the parentheses, must be in quotes. (All text in quotes is printed literally, as is.) Choices A and C fail because they don’t place the opening word, Letter, in quotes. Choice B doesn’t have the parentheses in quotes. Choice D incorrectly tries to cast an int to a String.


































































































   1177   1178   1179   1180   1181