Question 7: You have been given below SAS program, select the statement which is correct

 data course100 ;

 Fee=5000;

 FEE_HIKE=0.1;

 do month=1 to 12 ;                        

 INCREASE+(FEE+INCREASE)*FEE_HIKE;

 iteration+1;

 output;

 end;

 put _all_;

 run;

  1. There would be 12 iteration
  2. Output statement will help in generating only last observation as an output.
  3. Last value hold by month variable will be 13
  4. Iteration variable is redundant, and does not help in creating output.

 

  1. A,B,C
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 3 Exp : There would in total 12 iteration as given do statement stop value.

 Yes, there is as such no use of iteration variable. You can remove that statement.

You can access to full explanation to question and answer from this page.