It seems that the Function Requirments section from the Survival Guide is at odds with Example 4 and maybe even the College Board’s Scoring Guidelines.
Code.org’s Survival Guide, Function Requirements (which received the point)
Selection means that a conditional, or if-statement, selects between two or more portions of your program to run. Iteration simply means repeating some behavior, as in a loop.
Code.org’s Survival Guide, Algorithm 4
function addPositives(list){
var total = 0;
var currentItem;
for(var i = 0; i < list.length; i++){
currentItem = list[i];
if(currentItem > 0){
total = total + list[i];
}
}
return total;
}
College Board’s Scoring Guidelines
describe two calls to the selected procedure identified in written response 3c. Each call must pass a different argument(s) that causes a different segment of code in the algorithm to execute.
Question
If argument A causes line x to execute and
argument B prevents line x from executing, (example 4)
Does that satisfy “different segments of code in the algorithm to execute”?