Question 66 The following SAS program is submitted:
data work.inventory;
products=7;
do until (products gt 6);
products+1;
end;
run;
Which one of the following is the value of the variable products in the output data set?
- 5
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering SAS Certification Material
Ans :4
Exp : A DO UNTIL loop always executes at least once because the condition is not evaluated until the bottom of the loop. In the SAS program above, the value of Products is
incremented from 7 to 8 on the first iteration of the DO UNTIL loop, before the condition is checked. Therefore the value of Products is 8.
You can access to full explanation to question and answer from this page.