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
>
General knowledge
General knowledge
Geography
History
Sciences
All Quizzes
/
Quiz General knowledge
/
Quiz Sciences
Quiz Sciences
Arrays in SAS
by
Tomowsiak
59 played -
11 yrs ago
Chapter 16 from the book
10 QUESTIONS
61%
1
In the code shown, how many records are generated?
7
However many are in the original file
No records are generated but the code runs
The code is broken
2
Will the code shown below run, and why or why not?
Yes. . all looks good
No. . too few variables in the list to match the dimension of the array
There is another problem not listed here
The problem is in the input data step
3
In the picture shown, the array name is shown correctly.
No. . the array name includes the index
Yes. . this is the correct way of showing just hte array name
4
Will the code shown below.
Yes. . there is nothing wrong with it. .
No. . 5 : 6 means we're getting at columns 5 and 6. . so we need those int he do loop
It won't work, but for a different reason
5
The following code is submitted. What are the results?
A file called mylib. report2 is created, but it's empty
A file called mylib. report2 is created, and it has 7 fields in it, but the number of observations is unknown from the code.
A file called mylib. report2 is created, and it has 7 fields and 20 obs.
This code doesn't work at all
6
The following code is submitted. What are the results?
This code is broken, so nothing happens.
This code imports 8 fields from the csv, and then creates a new file called report2 in mylib2.
The import step runs, but the array step is broken.
None of the above.
7
The following code is submitted. What are the results?
This code works perfectly, and creates fields, some of which are transformed and some are not.
This code is broken. The line names(i) will create an index out of bounds message.
The part of the code given by the transformation of daytemp works, but not the part given by names.
Something else
8
The following code is submitted. What are the results?
Nothing. . this code is broken
This code works. Now there there is a 1 as the index for names, so it works.
9
Why are arrays so powerful?
They work out a lot : )
The allow us to reference elements one by one, without having to make a long, error prone list.
Usually, arrays are used with do loops to produce make code very compact.
Both options b and c above.
10
What's the correct way of thinking about array execution?
A record is read in. The array operates on the elements(columns). . record is output. . next is read in and so on
A column is read. . then we go down the column using the array
Let's GO
All comments (0)
Add in a Facebook
You will love these quizzes
4th Grade Science Test
17 316 players
- Jmathis
5 Kingdoms
14 942 players
- Cppuntadenamer
Science
4 556 players
- Jeffcoop
9th Standard Science
48 581 players
- Iplfreak
Some Science ?
3 983 players
- Good
Medium level
61%
Average on
59 players
0
this month
all results
Autres quizz de 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 19 Aug 22, 6h50