SAS_Institute
A00-201 · Question #97
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…
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.
How the community answered
(29 responses)- A72% (21)
- B17% (5)
- C7% (2)
- D3% (1)
Community Discussion
No community discussion yet for this question.