jz21324 / Vcode

Apache License 2.0
0 stars 0 forks source link

Collegeboard 66 Question Corrections #20

Open jz21324 opened 1 year ago

jz21324 commented 1 year ago
Question | My Answer | Correct Answer | Explanation -- | -- | -- | -- Question 16 | B | C | The loop in line 8 is supposed to traverse the rows so B is incorrect. The original line 8 assigns a row of col but col is not a 2-D Array. Topic: 8.2 Skill 4.B Question 19 | B | A | There is a double "!" around the "c < d" which causes it to stay the same. Topic 3.6 Skill 4.C Question 33 | E | C | Largest value is not negative and occurs multiple times. maxVal is can be negative and will return 0 since it is the initial condition. Topic 6.4 Skill 4.A Question 36 | E | C | I chose E which is saying that both Line 4 and 5 will cause an error. Line 4 is the only one that has an error because it never originally got the location of the rock. Topic 9.6 Skill 4.B Question 53 | B | A | The correct answer is A and not B because the total needs to be at 1 for the code to run because it allows the code to run without any error in the code while it is running. Question 54 | B | D | The correct answer is D and not B because this method call returns false because the first character is lexicographically less than the second character of the string. If the first character of str is lexicographically greater than the second character of str, the method returns the result of the recursive call with a parameter that contains all but the first character of str. Topic 10.1 Skill 4.A Question 56 | C | E | The correct answer is C and not E because when the value of num is 7, the code segment will print 7, as intended. This occurs when j is 0 and k is 0. The issue was that the outer for loop would not traverse the last row in the 2d array, and D fixed this because it shows that there is an error in it, whereas the others would not.