wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Ch 4 Quiz

Total questions: 9

Worksheet time: 4mins

Name
Class
Date
1.

In which phase does the DATA step check for syntax errors?

a)

compilation

b)

execution

c)

proclamation

d)

excitation

2.

What statement is used to read a SAS data set in a DATA step?

a)

DATA statement

b)

WHERE statement

c)

SET statement

d)

assignment statement

3.

To process an Excel file with the DATA step, you must first create a copy of the data as a SAS table.

a)

True

b)

False

4.

What is the name of the output data set in the program below?

a)

work.us

b)

orion.sales

c)

country

d)

sales

5.

The data set orion.sales contains nine columns. Given this DATA step, how many columns does work.comp contain?

a)

four

b)

nine

c)

five

6.

Given the assignment statement below, what is the value of AvgExp for the observation that is shown?

a)

6

b)

8

c)

. (missing value)

d)

The statement generates a syntax error

7.

In the program below, what is the value of Credit if Country is 'au'?

a)

300

b)

500

c)

0

d)

missing

8.

What is the length of the Car_Type column created in this program?

a)

6

b)

7

c)

8

9.

Use a DO group in a DATA step when you want to execute multiple statements for a true IF-THEN expression.

a)

True

b)

False