26. (D) Segment I is incorrect because num is not an index in the loop: It is a value in the array. Thus, the correct test is if (num > 0), which is correctly used in segment II. Segment III is a regular for loop, exactly equivalent to the given while loop.