nerdexam
SAS_Institute

A00-201 · Question #97

A00-201 Question #97: Real Exam Question with Answer & Explanation

The correct answer is A. do i = 1 to 5;. See the full explanation below for the reasoning.

Question

The following SAS program is submitted: data stats; set revenue; array weekly(5) mon tue wed thu fri; <insert DO statement here> total = weekly(i) * .25; output; end; run; Which one of the following DO statements completes the program and processes the elements of the WEEKLY array?

Options

  • Ado i = 1 to 5;
  • Bdo weekly(i) = 1 to 5;
  • Cdo i = mon tue wed thu fri;
  • DA DO loop cannot be used because the variables referenced do not end in a digit.

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice