Easter Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Ace Your A00-212 Advanced Programmer Exam

Page: 6 / 7
Total 184 questions

SAS Advanced Programming Questions and Answers

Question 21

Which one of the following is true regarding the KEEP statement?

Options:

A.

The KEEP statement is available in both the DATA and the PROC steps.

B.

The KEEP statement selects the variables read from the input data set(s).

C.

The KEEP statement applies to all data sets created within the same DATA step.

D.

The KEEP statement applies only to the first data set created within the same DATA step if more than one data set is created.

Question 22

Consider the following SAS log:

229 data sasuser.ranch sasuser.condo / view = sasuser.ranch;

230 set sasuser.houses;

231 if style = 'RANCH' then output sasuser.ranch;

232 else if style = 'CONDO' then output sasuser.condo;

233 run;

NOTE: DATA STEP view saved on file SASUSER.RANCH.

NOTE: A stored DATA STEP view cannot run under a different operating system.

234

235 proc print data = sasuser.condo;

ERROR: File SASUSER.CONDO.DATA does not exist.

236 run;

NOTE: The SAS System stopped processing this step because of errors.

Which one of the following explains why the PRINT procedure fails?

Options:

A.

SASUSER.CONDO is a stored DATA step program.

B.

A SAS data file and SAS data view cannot be created in the same DATA step.

C.

A second VIEW=SASUSER.CONDO option was omitted on the DATA statement.

D.

The view SASUSER.RANCH must be processed before SASUSER.CONDO is created.

Question 23

Given the following SAS data set ONE:

ONE

GROUP SUM

A 765

B 123

C 564

The following SAS program is submitted:

data _null_;

set one;

call symput(group,sum);

run;

Which one of the following is the result when the program finishes execution?

Options:

A.

Macro variable C has a value of 564.

B.

Macro variable C has a value of 1452.

C.

Macro variable GROUP has a value of 564.

D.

Macro variable GROUP has a value of 1452.

Question 24

Given the SAS data set WORK.ONE:

The following SAS program is submitted;

Which result set would be generated?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Page: 6 / 7
Total 184 questions