Question : 3

 The SAS data set BANKS is listed below:

 BANKS

 name rate

 FirstCapital 0.0718

 DirectBank 0.0721

 VirtualDirect 0.0728

 The following SAS program is submitted:

 data newbank;

 do year = 1 to 3;

 set banks;

 capital + 5000;

 end;

 run;

 Which one of the following represents how many observations and variables will exist in the SAS data set NEWBANK?

 

  1. 0 observations and 0 variables
  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

 Ans : 2

 Exp :

 The four variables are Name, Rate, Year, Capital. we have three variables in the dataset, when we set the dataset in the do loop it reads the three observations from data set

 banks (as the set statement is called thrice) when they do loop terminates the value for year is 4 and the implicit output is executed at run;

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