Question 5: The following SAS program is submitted:
1 2 3 4 5 6
data WORK.LOOP; X = 0; do Index = 1 to 5 by 2; X = Index; end; run;
Upon completion of execution, what are the values of the variables X and Index in the SAS data set named WORK.LOOP?
A. X = 3, Index = 5 B. X = 5, Index = 5 C. X = 5, Index = 6 D. X = 5, Index = 7
*The SAS certification sample problem and answer above are sourced from the official SAS sample questions page. All answer logs, data sets, output, and commentary are provided by this blog.