By admin | August 10, 2009

SAS Certified Base Programmer 50 Questions (47)

The following SAS program is submitted:

data work.travel;
    do i=1 to 6 by 2;
        trip + i;
    end;
run;

Which one of the following is the value of the variable trip in the output data set?

a. 2
b. 3
c. 9
d. 10

3 comments | Add One

  1. admin - 08/10/2009 at 10:01 am

    C

  2. Bill - 10/13/2011 at 3:59 pm

    Could somebody kindly explain me the process of getting c?

  3. Max - 06/27/2013 at 7:48 pm

    Construct a table:

    i trip
    1 1
    3 4
    5 9
    7 Outside of Loop so stops processing.

Leave a Comment

Leave a Reply

Your email address will not be published.