Classic
Quiz General knowledge

Quiz Sas Programming 1

520 played - 12 yrs ago

Chapter 1 From Book

 

Medium QUIZ 24 QUESTIONS
medium
1

What does the following code do?

2

Is the data being imported in this code external or instream?

3

The little "@" symbols is a line pointer.

4

The "mmddyy08. " thing is a FORMAT

5

In the code below, the FORMAT year4. does what exactly?

6

Is the data being input free-format or fixed field?

7

Will the dataset test available when SAS is run again?

8

The name field is numeric or character? How do you know?

9

What's the different between an informat and a format?

10

Format's can't ever be associated with data permanently?

11

The words record/field/variable all mean the same thing.

12

The code shown does what exactly with respect to the year cutoff statement and the code highlighted in blue?

13

How do the year cutoff lines and the code highlighted in blue interact?

14

The following code does what exactly?

15

Are the fields lastname and month numeric data sasuser. sales; infile saledata; input LastName $ 1-7 Month $ 9-11 Residential 13-21 Commercial 23-31; Total=residential+commercial; ru

16

Data sasuser. sales; infile saledata; input LastName $ 1-7 Month $ 9-11 Residential 13-21 Commercial 23-31; Total=residential+commercial; run; proc print data=sasuser. sales; run;

17
In the code shown, what's the result of the line that says total=?

In the code shown, what's the result of the line that says total=?

18
In the code shown, residential and commerical are what kinds of fields?

In the code shown, residential and commerical are what kinds of fields?

19
According to the code shown, we're creating a custom format of character type, so we can use it just as we use formats that come with SAS.

According to the code shown, we're creating a custom format of character type, so we can use it just as we use formats that come with SAS.

20
What does the code below show?

What does the code below show?

21
When proc print is run, how will the letter  C  in the original file look?

When proc print is run, how will the letter "C" in the original file look?

22
When the data step is executed in the code shown, how is the data read?

When the data step is executed in the code shown, how is the data read?

23
When the code below is run, how will the dollar9. 2 format format the data?

When the code below is run, how will the dollar9. 2 format format the data?

24

Where are formats stored?