Showing posts with label Do Loop. Show all posts
Showing posts with label Do Loop. Show all posts

Sunday, June 2, 2013

Base SAS Certification Sample Question 14.1

I hope the below Base SAS Certification sample question is helpful to you when you're studying for the exam. Leave your answer as a comment below and good luck!

-SAS Cert

*******************************

How many variables/observations will come from the below program?


data work.roth_ira;
     start = 1000;
     do year = 1 to 30;
          savings + 5000;
          do month = 1 to 12;
               int = savings * (.05/12);
               savings + int;
          end;
          output;
     end;
run;


a) 4 variables, 12 observations
b) 4 variables, 30 observations
c) 5 variables, 12 observations
d) 5 variables, 30 observations