Page 651 - AP Computer Science A, 7th edition
P. 651
7. (B) The maximum number will be achieved if /∗ test ∗/ is true in each pass through the loop. So the question boils down to: How many times is the loop executed? Try one odd and one even value of n:
If n=7, i=0,2,4,6 Ans =4 If n=8, i=0,2,4,6 Ans =4
Notice that choice B is the only expression that works for both n = 7 and n = 8.