Question 19: You have been given below array declaration

 array fee{4} fee1 fee2 fee3 fee4;

 which of the following option correctly process all the variable declared in array ?

  1. do i=1 to dim(fee);
  2. do i=1 to dim(*);
  3. do i=1,2,3,4;
  4. do i=1 to 4;

 

  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 are multiple ways by which you can reference all the variables in do loop. Once is by getting its size using dim

 function. Next normal do loop start with index 1 and end with last index in this case 4.

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