quizzes
Forums
Forums
Global
Art & Literature
Entertainment
General knowledge
High Tech
Nature
Society
Sports et Recreation
Games
Quiz of the day
The Great Test
Tops
Top Quizzes of the month
Top Quizzes
Top Quizers
Top Challengers
Top Players
Top Authors
Top Correctors
News
Latest quizzes & tests
50 last topics
Members activity
The 100 last reactions
Online members
Tests
General knowledge
Entertainment
Sport & Recreation
+
All Quizzes
Art & Literature
Entertainment
General knowledge
IT & Internet
Science & Nature
Society
Sport & Recreation
>
High Tech
High Tech
Web sites
All Quizzes
/
Quiz High Tech
Quiz High Tech
SAS DO loops
created by
Tomowsiak
on 23 Mar 12, enabled by
Alex
High Tech
Hard level
(43% of success)
10 questions - 492 players
Quiz on do loops from the book
1
Which statement is false regarding "do" loops?
They can contain additiona clauses
They can generate multiple observations
They can be used to combine data and proc steps
They can be used to read data
2
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;
0
1
12
13
3
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.
Do count=1 to 15;
Do count=1 to 15 by 10%;
Do count=1 to capital;
Do count=capital to (capital*. 1);
4
What would be the stored value for year in the following? do year=1999 to 2004; capital+5000;capital+capital*. 1;end;run;
Missing
1990
2004
2005
5
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;
Output statement writes current values to the data set immediately
Stored value for year 2005
Output statement overrides automatic output at the end of the step
Do loop performs 15 iterations
6
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;
0
1
19
20
7
Which line generates the same records as this code? do until(capital gt 500000);
Do while(capital ge 500000);
Do while(capital=500000);
Do while(capital le 500000);
Do while(capital>500000);
8
Complete the statement so that the program stops generating observations when distance is 250 miles or when 10 gallons of fuel have been used?
Do gallons=1 to 10 while(distance<250);
Do gallons=1 to 10 while(distance>250);
Do gallons=1 to 10 over(distance le 250);
Do gallons=1 to 10 until(distance=250)
9
Which would be used to compare the result of investing 4000 a year for five years in three differnt banks that compound interest monthy?
Do while
Nested do loops
Do until
Do groups
10
Do loops can be used to sample data in a random way ?
True
False
Let's GO
All comments (0)
Add in a Facebook
You will love these quizzes
Introduction to Computers…
1 559 players
- Gford
Lab Apparatus Quiz
3 438 players
- Anadaniella
CCNA 1 - Chapter 2
1 034 players
- Karen.urate
Parts of a Computer
2 417 players
- Rstrome
Logo Design Quiz
724 players
- Montgomeryq
created
10 yrs ago
by
Tomowsiak
Hard level
43%
Average on
492 players
(
1
this month )
1.
Shivu419
70% in 434s
all results
Autres quizz de Tomowsiak
Arrays in SAS
2 players
- Tomowsiak
Sas Programming 1
54 players
- Tomowsiak
Reading date and time values
16 players
- Tomowsiak
Design Of Experiments
25 players
- Tomowsiak
User defined formats chapter 7
7 players
- Tomowsiak
Generated on 7 Jul 22, 5h41