By admin | September 14, 2009

SAS Certified Base Programmer 123 Questions (46)

The following SAS program is submitted:

data stats;
    set revenue;
    array weekly{5} mon tue wed thus fri;
    <insert DO statement here>
    total = weekly{i} * .25;

Which one of the following DO statements completes the program and processes the elements of the WEEKLY array?

A. do i = 1 to 5;
B. do weekly {i} = 1 to 5;
C. do i = mon tue wed thu fri;
D. A DO loop cannot be used because the variables referenced do not end in a digit.

One comment | Add One

  1. admin - 09/14/2009 at 1:19 pm

    A

Leave a Comment

Leave a Reply

Your email address will not be published.