wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Section A Past Year Exam

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

What happens when a DATA step or PROC step contains multiple WHERE statements?

a)

The last WHERE statement replaces previous WHERE statements.

b)

Only the first WHERE statement is processed.

c)

The WHERE conditions are combined with a logical AND operator.

d)

A syntax error is displayed in the log, and the program does not execute.

2.

Which TITLE statement correctly codes the title Analytics Engineering’s Report?

a)

TITLE allowquote(Analytics Engineering's Report);

b)

TITLE "Analytics Engineering's Report";

c)

TITLE ' "Analytics Engineering's Report" ';

d)

TITLE 'Analytic Engineering' ''s Report';

3.

Considering the following PROC SORT step:

 

PROC SORT data=students;

<insert statement here>

RUN;

 

Which statement completes the step and sorts the observations in descending order by ID and, within ID, in ascending order by FirstName?

a)

by ID descending FirstName;

b)

by descending ID FirstName;

c)

by descending ID ascending FirstName;

d)

by ID descending FirstName ascending;

4.

The scores.csv file is a comma-delimited raw data file. Which INFILE statement correctly references the file?

a)

INFILE 'sales.csv' dlm=csv;

b)

INFILE 'sales.csv' dlm=comma;

c)

INFILE 'sales.csv';

d)

INFILE 'scores.csv' dlm=',';

5.

Which statement about the DATA step merge is TRUE?

a)

It expects the data to be in sorted order or indexed according to the BY variable.

b)

It is capable of sorting the data.

c)

It uses the ORDER BY clause to sort the data.

d)

It returns only matching rows by default.

6.

Consider the following expression:

 

Total = P + Q + S;

 

What is the result of the expression given these values:

 

P = 9

Q = . (missing)

S = 5

a)

5

b)

9

c)

14

d)

. (missing)

7.

Which statement is used in the DATA step to concatenate multiple data sets?

a)

SET

b)

MERGE

c)

CONCATE

d)

APPEND

8.

Which statement is FALSE concerning the compilation phase of the DATA step?

a)

The DATA step is checked for syntax errors.

b)

Initial values are assigned to the columns.

c)

The program data vector (PDV) is created.

d)

The descriptor portion of the output table is created.

9.

Which function calculates the average of the columns Sales1, Sales2, Sales3, and Sales4?

a)

mean (Sales1, Sales4)

b)

mean (Sales1 – Sales4)

c)

mean (of Sales1 – Sales4)

d)

mean (of Sales1, Sales4)

10.

Which statement is TRUE regarding the iterative DO loop?

 

DO index-column = start TO stop <BY increment>;

a)

The index column is incremented at the bottom of each DO loop.

b)

The index column is not in the final table unless specifically kept.

c)

The start and stop values can be character or numeric values.

d)

If an increment value is not specified, the default increment is 0.