nerdexam
SAS_Institute

A00-211 · Question #190

The following SAS program is submitted: data stats; set revenue; array weekly{5} mon tue wed thu fri; total = weekly{i} * .25; output; end; run; Which one of the following DO statements completes…

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; 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.

How the community answered

(30 responses)
  • A
    83% (25)
  • B
    10% (3)
  • C
    3% (1)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full A00-211 Practice