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 ?
- do i=1 to dim(fee);
- do i=1 to dim(*);
- do i=1,2,3,4;
- do i=1 to 4;
- A,B,C
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- 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.