Classic quiz
Quiz General knowledge

Quiz SAS DO loops

527 played - 14 yrs ago

Quiz on do loops from the book

Hard
hard
10
QUESTIONS
hard
 
Question 1 / 10

Which statement is false regarding "do" loops?

hard
 
Question 2 / 10

How many times does this code run? data work. earnings; amount=1000; rate=0. 075/12; do month=1 to 12; amount+amount*rate; format amount dollar12. ; output; end; run;

expert
 
Question 3 / 10

If 5000 is invested on Jan 1 of each year for 15 years, complete the data step so as to determine the value of the account after 15 years at a constant 10 percent return rate.

expert
 
Question 4 / 10

What would be the stored value for year in the following? do year=1999 to 2004; capital+5000;capital+capital*. 1;end;run;

expert
 
Question 5 / 10

Which of the following is false regarding this code? data work. invest; do year=1990 to 2004; capital+5000;capital+capital*. 1;output;end;run;

hard
 
Question 6 / 10

How many observations will there be in work. earn? data work. earn; value=2000; do year=1 to 20; interest=value*0. 075; value+interest;output;end;run;

hard
 
Question 7 / 10

Which line generates the same records as this code? do until(capital gt 500000);

expert
 
Question 8 / 10

Complete the statement so that the program stops generating observations when distance is 250 miles or when 10 gallons of fuel have been used?

hard
 
Question 9 / 10

Which would be used to compare the result of investing 4000 a year for five years in three differnt banks that compound interest monthy?

hard
 
Question 10 / 10

Do loops can be used to sample data in a random way ?

Quiz What animal is this?
6 507 played - 19 yrs ago
Quiz Really or forgery
1 472 played - 13 yrs ago
Quiz True or false ?
2 150 played - 9 yrs ago
Quiz How do you say... In French ?
2 241 played - 19 yrs ago
Quiz Colors in French
3 005 played - 19 yrs ago
Quiz Logos Quiz -1
293 played - 7 yrs ago
Quiz General knowledge - 1
404 played - 8 yrs ago
Quiz Whose and Who's
1 177 played - 12 yrs ago
Quiz To vs. Two vs. Too
5 457 played - 13 yrs ago
Quiz The fruits in French - 1
523 played - 7 yrs ago
Quiz Postman Pat
2 923 played - 19 yrs ago
Quiz Say, tell, speak, talk
1 925 played - 12 yrs ago
Quiz Highest mountains
762 played - 19 yrs ago
Quiz I or Me?
5 777 played - 13 yrs ago