Labour Day Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Pass A00-211 Exam Guide

Page: 3 / 10
Total 270 questions

SAS Base Programming for SAS (r) 9 Questions and Answers

Question 9

Given the AIRPLANES data set

AlRPLANES

TYPE MPG

-------- ------

F-18 105

C-130 25

Harrier 75

A-6 110

The following SAS program is submitted:

data gt100;

set airplanes(keep = type mpg load);

load = mpg * 150;

run;

The program fails to execute due to syntax errors.

What is the cause of the syntax error?

Options:

A.

MPG is not a numeric variable.

B.

LOAD is not a variable in the data set GT100.

C.

LOAD is not variable in the data set AIRPLANES.

D.

LOAD must be defined prior to the SET statement.

Question 10

The following SAS program is submitted:

data work.empsalary;

set work.people (in = inemp)

work.money (in = insal);

if insal and inemp;

run;

The SAS data set WORKPEOPLE has 5 observations, and the data set WORKMONEY has 7 observations. How many observations will the data set WORK.EMPSALARY contain?

Options:

A.

0

B.

5

C.

7

D.

12

Question 11

The following SAS program is submitted:

Data_null_;

set old;

put sales 1 sales2;

run;

Where is the output written?

Options:

A.

to the SAS log

B.

to the SAS data set _NULL_

C.

to the SAS output window or to an output file

D.

to the raw data file that was most recently opened

Question 12

The following SAS program is submitted:

data work.sets;

do until (prod gt 6);

prod + 1;

end;

run;

What is the value of the variable PROD in the output data set?

Options:

A.

6

B.

7

C.

8

D.

(missing numeric)

Page: 3 / 10
Total 270 questions