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

Base Programmer A00-211 Reddit Questions

Page: 9 / 10
Total 270 questions

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

Question 33

The following SAS program is submitted:

data WORK.ACCOUNTING;

set WORK.DEPARTMENT;

length EmpId $6;

CharEmpid=EmpId;

run;

If data set WORK.DEPARTMENT has a numeric variable EmpId. Which statement is true about the output dataset?

Options:

A.

The type of the variable CharEmpid is numeric.

B.

The type of the variable CharEmpid is unknown.

C.

The type of the variable CharEmpid is character.

D.

The program fails to execute due to errors.

Question 34

The following SAS program is submitted:

data work.totalsales (keep = monthsales{12} );

set work.monthlysales (keep = year product sales);

array monthsales {12} ;

do i=1 to 12;

monthsales{i} = sales;

end;

run;

The data set named WORK.MONTHLYSALES has one observation per month for each of five years for a total of 60 observations.

Which one of the following is the result of the above program?

Options:

A.

The program fails execution due to data errors.

B.

The program fails execution due to syntax errors.

C.

The program executes with warnings and creates the WORK.TOTALSALES data set.

D.

The program executes without errors or warnings and creates the WORK.TOTALSALES data set

Question 35

A raw data file is listed below:

RANCH,1250,2,1,Sheppard Avenue,"$64,000"

SPLIT,1190,1,1,Rand Street,"$65,850"

CONDO,1400,2,1.5,Market Street,"80,050"

TWOSTORY,1810,4,3,Garris Street,"$107,250"

RANCH,1500,3,3,Kemble Avenue,"$86,650"

SPLIT,1615,4,3,West Drive,"94,450"

SPLIT,1305,3,1.5,Graham Avenue,"$73,650"

The following SAS program is submitted using the raw data file as input:

data work.condo_ranch;

infile 'file-specification' dsd;

input style $ @;

if style = 'CONDO' or style = 'RANCH';

input sqfeet bedrooms baths street $ price : dollar10.;

run;

How many observations will the output data set contain?

Options:

A.

0

B.

3

C.

5

D.

7

Question 36

Which of the following programs correctly invokes the DATA Step Debugger?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Page: 9 / 10
Total 270 questions