Select the best answer
for each question. Check your answers using the answer key in the
appendix.
-
Which statement is false
regarding the use of DO loops?
-
They can contain conditional
clauses.
-
They can generate multiple
observations.
-
They can be used to
combine DATA and PROC steps.
-
They can be used to
read data.
-
During each execution
of the following DO loop, the value of Earned is calculated and is
added to its previous value. How many times does this DO loop execute?
data work.earnings;
Amount=1000;
Rate=.075/12;
do month=1 to 12;
Earned+(amount+earned)*rate;
end;
run;
-
On January 1 of each year, $5,000 is invested in an account. Complete the DATA step below ...