New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

Note! SAS Institute has retired the A00-211 Exam Contact us through Live Chat or email us for more information.

A00-211 SAS Base Programming for SAS (r) 9 Questions and Answers

Questions 4

The following SAS program is submitted:

data work.test;

array items{3} _temporary_;

run;

What are the names of the variable(s) in the WORKTEST data set?

Options:

A.

ITEMS

B.

ITEMS1, ITEMS2, ITEMS3

C.

No variables are created because it is a temporary array.

D.

The program fails to execute because there are no variables listed on the ARRAY statement.

Buy Now
Questions 5

Given the SAS data set EMPLOYEE INFO:

EMPLOYEE_INFO

IDNumber

Expenses

2542

100.00

3612

133.15

2198

234.34

2198

111.12

The following SAS program is submitted:

proc sort data = employee_info;

run;

Which BY statement completes the program and sorts the data sequentially by ascending expense values within each ascending IDNUMBER value?

Options:

A.

by Expenses IDNumber;

B.

by IDNumber Expenses;

C.

by ascending Expenses IDNumber;

D.

by ascending IDNumber ascending Expenses;

Buy Now
Questions 6

The following SAS program is submitted:

data work.total;

set work.salary(keep = department wagerate);

by department;

if first.department

then payroll = 0;

payroll + wagerate;

if last.department;

run;

The SAS data set named WORKSALARY contains 10 observations for each department, and is currently ordered by DEPARTMENT.

Which statement is true?

Options:

A.

The BY statement in the DATA step causes a syntax error.

B.

The statement payroll + wagerate; in the DATA step causes a syntax error.

C.

The values of the variable PAYROLL represent the total for each department in the WORK.SALARY data set.

D.

The values of the variable PAYROLL represent a total for all values of WAGERATE in the WORKSALARY data set.

Buy Now
Questions 7

The Excel workbook REGIONS.XLS contains the following four worksheets:

EAST

WEST

NORTH

SOUTH

The following program is submitted:

libname MYXLS 'regions.xls';

Which PROC PRINT step correctly displays the NORTH worksheet?

Options:

A.

proc print data=MYXLS.NORTH;run;

B.

proc print data=MYXLS.NORTH$;run;

C.

proc print data=MYXLS.'NORTH'e;run;

D.

proc print data=MYXLS.'NORTH$'n;run;

Buy Now
Questions 8

Given the contents of the raw data file TYPECOLOR.DAT:

The following SAS program is submitted:

What are the values of the variables Type and Color?

Options:

A.

Type=daisy, Color=yellow

B.

Type=daisy, Color=w

C.

Type=daisy, Color=daisyyellow

D.

Type=daisy, Color=

Buy Now
Questions 9

Given the SAS data set EMPLOYEES:

EMPLOYEES

NAME SALARY

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

Innis60000

Jolli50000

Ellis55000

Liu45000

The following SAS program is submitted:

proc print data = employees; where name like ‘_i%’;

run;

What is contained in the output?

Options:

A.

Liu only

B.

Innis and Ellis only

C.

Innis, Ellis, and Liu only

D.

Innis, Jolli, Ellis, and Liu

Buy Now
Questions 10

Which ODS statement option terminates output being written to an HTML rile?

Options:

A.

END

B.

QUIT

C.

STOP

D.

CLOSE

Buy Now
Questions 11

Given the following raw data record:

----I----10---I----20---I----30

son Travis,

The following output is desired:

Obs relation firstname

1 son Travis

Which SAS program correctly reads in the raw data?

Options:

A.

data family ( dIm = ‘,’); infile ‘tile specification’; input relation $ firstname $; run;

B.

options dIm = ‘,’; data family; infile ‘file specification’; input relation $ firstname $; run;

C.

data family; infile ‘file specification’ dIm = ‘,’; input relation $ firstname $; run;

D.

data family; infile ‘file specification’; input relation $ firstname $ / dim = ‘,’; run;

Buy Now
Questions 12

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.

Buy Now
Questions 13

The following SAS program is submitted:

<_insert_ods_code_>

proc means data=SASUSER.SHOES;

where Product in ('Sandal' , 'Slipper' , 'Boot');

run;

<_insert_ods_code_>

Which ODS statements inserted, respectively, in the two location above creates a report stored in an html file?

Options:

A.

ods html open='sales.html';ods html close;

B.

ods file='sales.html' / html;ods file close;

C.

ods html file='sales.html';ods html close;

D.

ods file html='sales.html';ods file close;

Buy Now
Questions 14

Given the SAS data set QTR 1_REVENUE:

destinationrevenue

YYZ53634

FRA62129

FRA75962

RDU76254

YYZ82174

The following SAS program is submitted:

proc sort data = qtr1_revenue;

by destination descending revenue; run;

What is the first observation in the output data set?

Options:

A.

destination revenueFRA 62129

B.

destination revenueFRA 75962

C.

destination revenueYYZ 53634

D.

destination revenueYYZ 82174

Buy Now
Questions 15

The following SAS program is submitted:

data test;

infile ‘file specification’;

input name $ amount@@;

run;

Which of the following is true?

Options:

A.

Two @@ together are the same as one c.

B.

Two @@ hold the data records until the bottom of the DATA step.

C.

Two @@ hold the raw data record across iterations of the DATA step.

D.

Two @@ are invalid syntax and will cause the program to fail to execute.

Buy Now
Questions 16

Read the table

The following SAS program is submitted:

proc freq data = sales;

run;

The following output is created by the FREQUENCY procedure:

Which TABLES statement(s) completed the program and produced the output?

Options:

A.

tables region product;

B.

tables region * product;

C.

tables product * region;

D.

tables product; tables region;

Buy Now
Questions 17

The following program is submitted:

proc contents data=_all_;

run;

Which statement best describes the output from the submitted program?

Options:

A.

The output contains only a list of the SAS data sets that are contained in the WORK library.

B.

The output displays only the contents of the SAS data sets that are contained in the WORK library.

C.

The output displays only the variables in the SAS data sets that are contained in the WORK library.

D.

The output contains a list of the SAS data sets that are contained in the WORK library and displays the contents of those data sets.

Buy Now
Questions 18

Given the data set WORK.EMPDATA:

Which one of the following where statements would display observations with job titles containing the word 'Manager'?

Options:

A.

where substr(Job_Title,(length(Job_Title)-6))='Manager';

B.

where upcase(scan(Job_Title,-1,' '))='MANAGER';

C.

where Job_Title='% Manager ';

D.

where Job_Title like '%Manager%';

Buy Now
Questions 19

The following SAS program is submitted:

data ONE TWO SASUSER.TWO

set SASUSER.ONE;

run;

Assuming that SASUSER.ONE exists, how many temporary and permanent SAS data sets are created?

Options:

A.

2 temporary and 1 permanent SAS data sets are created

B.

3 temporary and 2 permanent SAS data sets are created

C.

2 temporary and 2 permanent SAS data sets are created

D.

there is an error and no new data sets are created

Buy Now
Questions 20

The following SAS program is submitted:

proc freq data = class;

tables gender * age / ;

run;

The following report is created:

The FREQ Procedure

Table of gender by age

Row Column

Gender ageFrequencyPercent Percent Percent

F11110.0020.0050.00

12220.0040.0040.00

13220.0040.0066.67

Total550.00100.00

M11110.0020.0050.00

12330.0060.0060,00

13110.0020.0033.33

Total550.00100.00

Total11220.00100.00

12550.00100.00

13330.00100.00

Total10100.00

Which option correctly completes the program and creates the report?

Options:

A.

LIST

B.

NOCOLS

C.

CROSSLIST

D.

NOCROSSTAB

Buy Now
Questions 21

The following SAS program is submitted:

data work.retail;

cost = '20000';

total = .10 * cost;

run;

Which one of the following is the value of the variable TOTAL in the output data set?

Options:

A.

2000

B.

'2000'

C.

. (missing numeric value)

D.

' ' (missing character value)

Buy Now
Questions 22

Which one of the following SAS statements renames two variables?

Options:

A.

set work.dept1work.dept2(rename = (jcode = jobcode)(sal = salary));

B.

set work.dept1work.dept2(rename = (jcode = jobcodesal = salary));

C.

set work.dept1work.dept2(rename = jcode = jobcodesal = salary);

D.

set work.dept1work.dept2(rename = (jcode jobcode)(sal salary));

Buy Now
Questions 23

The contents of the raw data file EMPLOYEE are listed below:

--------10-------20-------30

Ruth 39 11

Jose 32 22

Sue 30 33

John 40 44

The following SAS program is submitted:

data test;

infile 'employee';

input employee_name $ 1-4;

if employee_name = 'Sue' then input age 7-8;

else input idnum 10-11;

run;

Which one of the following values does the variable AGE contain when the name of the employee is "Sue"?

Options:

A.

30

B.

33

C.

40

D.

. (missing numeric value)

Buy Now
Questions 24

The following SAS program is submitted:

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

Options:

A.

6

B.

7

C.

8

D.

. (missing numeric)

Buy Now
Questions 25

The following SAS program is submitted:

What will the data set WORK.TEST contain?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 26

The data set WORK.REALESTATE has the variable LocalFee with a format of 9. and a variable CountryFee with a format of 7.;

The following SAS program is submitted:

What are the formats of the variables LocalFee and CountryFee in the output data set?

Options:

A.

LocalFee has format of 9. and CountryFee has a format of percent7.2

B.

LocalFee has format of 9. and CountryFee has a format of 7.

C.

Both LocalFee and CountryFee have a format of percent7.2

D.

The data step fails execution; there is no format for LocalFee.

Buy Now
Questions 27

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

Buy Now
Questions 28

Which step sorts the observations of a permanent SAS data set by two variables and stores the sorted observations in a temporary SAS data set?

Options:

A.

proc sort out=EMPLOYEES data=EMPSORT;by Lname and Fname;run;

B.

proc sort data=SASUSER.EMPLOYEES out=EMPSORT;by Lname Fname;run;

C.

proc sort out=SASUSER.EMPLOYEES data=WORK.EMPSORT;by Lname Fname;run;

D.

proc sort data=SASUSER.EMPLOYEES out=SASUSER.EMPSORT;by Lname and Fname;run;

Buy Now
Questions 29

The following SAS program is submitted:

What is the value of the price variable?

Options:

A.

No value is stored.

B.

$25.31

C.

. (missing numeric value)

D.

25.31

Buy Now
Questions 30

The following SAS program is submitted:

Data WORK.COMPRESS;

ID = ‘1968 05-10 567’;

NewID = compress (ID, “-“);

run;

What will the value of NewID be in the WORK.COMPRESS data set?

Options:

A.

1968 05-10 567

B.

19680510567

C.

196805-10567

D.

1968 0510 567

Buy Now
Questions 31

The following SAS DATA step is submitted:

libname temp 'SAS-data-library';

data temp.report;

set sasuser.houses;

newvar = price * 1.04;

run;

Which one of the following statements is true regarding the program above?

Options:

A.

The program is reading from a temporary data set and writing to a temporary data set.

B.

The program is reading from a temporary data set and writing to a permanent data set.

C.

The program is reading from a permanent data set and writing to a temporary data set.

D.

The program is reading from a permanent data set and writing to a permanent data set.

Buy Now
Questions 32

A raw data file is listed below:

--------10-------20-------30

squash 1.10

apples 2.25

juice 1.69

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

data groceries;

infile 'file-specification';

input item $ cost;

run;

Which one of the following completes the program and produces a grand total for all COST values?

Options:

A.

grandtot = sum cost;

B.

grandtot = sum(grandtot,cost);

C.

retain grandtot 0;grandtot = sum(grandtot,cost);

D.

grandtot = sum(grandtot,cost);output grandtot

Buy Now
Questions 33

A SAS programmer assigns a library reference to an existing Excel workbook named exceldata.xlsx. Using a DATA step, the programmer attempts to create a worksheet named outdata in this Excel workbook. However, the Excel workbook already contains a worksheet named outdata.

What will happen?

Options:

A.

A second copy of the workbook named exceldata(2).xlsx. will be created with the new worksheet outdata.

B.

A second worksheet outdata(2) will be added to the existing exceldata.xlsx workbook.

C.

The program will overwrite the outdata worksheet in the exceldata.xlsx workbook.

D.

The program will produce an error message indicating that the exceldata.xlsx workbook already exists.

Buy Now
Questions 34

The following SAS program is submitted:

data work.month;

date = input('13mar2000',date9.);

run;

Which one of the following represents the type and length of the variable DATE in the output data set?

Options:

A.

numeric, 8 bytes

B.

numeric, 9 bytes

C.

character, 8 bytes

D.

character, 9 bytes

Buy Now
Questions 35

Given the following SAS log entry:

What caused the error?

Options:

A.

The INPUT statement should be after the DATALINES statement.

B.

The CANCEL option is required with DATALINES.

C.

A semi-colon is missing on the DATALINES statement.

D.

Character data must be specified in quotes.

Buy Now
Questions 36

Given the contents of the raw data file 'EMPLOYEE.TXT'

Which SAS informat correctly completes the program?

Options:

A.

date9

B.

mmddyy10

C.

ddmmyy10

D.

mondayyr10

Buy Now
Questions 37

The following SAS DATA step is submitted:

data sasdata.atlanta

sasdata.boston

work.portland

work.phoenix;

set company.prdsales;

if region = 'NE' then output boston;

if region = 'SE' then output atlanta;

if region = 'SW' then output phoenix;

if region = 'NW' then output portland;

run;

Which one of the following is true regarding the output data sets?

Options:

A.

No library references are required.

B.

The data sets listed on all the IF statements require a library reference.

C.

The data sets listed in the last two IF statements require a library reference.

D.

The data sets listed in the first two IF statements require a library reference.

Buy Now
Questions 38

By default, which variables and data values are used to calculate statistics in the MEANS procedure?

Options:

A.

all non-missing numeric variable values

B.

all missing and non-missing numeric variable values and numbers stored as character variables.

C.

all non-missing numeric variable values and numbers stored as character variables

D.

all missing and non-missing numeric variable values

Buy Now
Questions 39

The SAS data set BANKS is listed below:

BANKS

name rate

FirstCapital 0.0718

DirectBank 0.0721

VirtualDirect 0.0728

The following SAS program is submitted:

data newbank;

do year = 1 to 3;

set banks;

capital + 5000;

end;

run;

Which one of the following represents how many observations and variables will exist in the SAS data set NEWBANK?

Options:

A.

0 observations and 0 variables

B.

1 observations and 4 variables

C.

3 observations and 3 variables

D.

9 observations and 2 variables

Buy Now
Questions 40

The following SAS program is submitted:

If the value for the variable Jobcode is: PILOT2, what is the value of the variable Description?

Options:

A.

' ' (missing character value)

B.

Unknown

C.

Senior Pilot

D.

SENIOR PILOT

Buy Now
Exam Code: A00-211
Exam Name: SAS Base Programming for SAS (r) 9
Last Update: Dec 22, 2024
Questions: 270