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

Note! A00-211 has been withdrawn.

A00-211 Practice Exam Questions with Answers SAS Base Programming for SAS (r) 9 Certification

Question # 6

The following SAS program is submitted once:

A00-211 question answer

Which procedure output will appear in test.html?

A.

Only the FREQ procedure output

B.

Only the PRINT procedure output

C.

No procedure output due to syntax errors

D.

Both the PRINT procedure and FREQ procedure output

Full Access
Question # 7

The following SAS DATA step is submitted:

data work.accounting;

set work.department;

length jobcode $ 12;

run;

The WORK.DEPARTMENT SAS data set contains a character variable named JOBCODE with a length of 5. Which one of the following is the length of the variable JOBCODE in the output data set?

A.

5

B.

8

C.

12

D.

The length can not be determined as the program fails to execute due to errors.

Full Access
Question # 8

Given the data set WORK.DEPARTMENTS:

A00-211 question answer

The following SAS program is submitted:

A00-211 question answer

Which output will be generated?

A.

B.

C.

D.

Full Access
Question # 9

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

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

Joe xx

The following SAS program is submitted:

data test;

infile 'namenum';

input name $ number;

run;

Which one of the following is the value of the NUMBER variable?

A.

xx

B.

Joe

C.

. (missing numeric value)

D.

The value can not be determined as the program fails to execute due to errors.

Full Access
Question # 10

There are 451 observations in the data set WORK.STAFF. The following SAS program is submitted:

A00-211 question answer

What will be the value of NewVar when SAS writes the last observation?

A.

451

B.

1

C.

0

D.

. (a missing value)

Full Access
Question # 11

Which one of the following SAS statements renames two variables?

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));

Full Access
Question # 12

The following SAS program is submitted:

libname temp 'SAS-data-library';

data work.new;

set temp.jobs;

format newdate mmddyy10.;

qdate = qtr(newdate);

ddate = weekday(newdate);

run;

proc print data = work.new;

run;

The variable NEWDATE contains the SAS date value for April 15, 2000.

What output is produced if April 15, 2000 falls on a Saturday?

A.

Obs newdate qdate ddate1 APR152000 2 6

B.

Obs newdate qdate ddate1 04/15/2000 2 6

C.

Obs newdate qdate ddate1 APR152000 2 7

D.

Obs newdate qdate ddate1 04/15/2000 2 7

Full Access
Question # 13

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?

A.

1968 05-10 567

B.

19680510567

C.

196805-10567

D.

1968 0510 567

Full Access
Question # 14

The following SAS program is submitted:

A00-211 question answer

If the value for the Alumcode is: ALUM2, what is the value of the variable Description?

A.

Grad Level

B.

Unknown

C.

GRAD LEVEL

D.

‘’ (missing character value)

Full Access
Question # 15

Consider the following data step:

data WORK.NEW;

set WORK.OLD;

Count+1;

run;

The varaible Count is created using a sum statement. Which statement regarding this variable is true?

A.

It is assigned a value 0 when the data step begins execution.

B.

It is assigned a value of missing when the data step begins execution.

C.

It is assigned a value 0 at compile time.

D.

It is assigned a value of missing at compile time.

Full Access
Question # 16

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?

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.

Full Access
Question # 17

The following SAS program is submitted:

data _null_;

set old (keep = prod sales1 sales2);

file 'file-specification';

put sales1 sales2;

run;

Which one of the following default delimiters separates the fields in the raw data file created?

A.

: (colon)

B.

(space)

C.

, (comma)

D.

; (semicolon)

Full Access
Question # 18

The following SAS program is submitted:

data work.test;

Title = 'A Tale of Two Cities, Charles J. Dickens';

Word = scan(title,3,' ,');

run;

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

A.

T

B.

of

C.

Dickens

D.

' ' (missing character value)

Full Access
Question # 19

After a SAS program is submitted, the following is written to the SAS log:

A00-211 question answer

What issue generated the error in the log?

A.

There should have been commas between the variable names.

B.

The list of variables should have been enclosed in parentheses.

C.

A drop statement and a keep= data set option cannot both be used at the same time.

D.

The syntax of the drop statement does not use an equals sign.

Full Access
Question # 20

The following SAS program is submitted:

data work.staff;

JobCategory = 'FA';

JobLevel = '1';

JobCategory = JobCategory || JobLevel;

run;

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

A.

FA

B.

FA1

C.

FA 1

D.

' ' (missing character value)

Full Access
Question # 21

Given the SAS data set WORK. PRODUCTS:

A00-211 question answer

The following SAS program is submitted:

data WORK. REVENUE (drop=Sales Returns);

set WORK. PRODUCTS (keep=ProdId Price Sales Returns);

Revenue-Price* (Sales-Returns);

run;

How many variables does the WORK.REVENUE data set contain?

A.

5

B.

2

C.

4

D.

3

Full Access
Question # 22

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

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

Janice 10

Henri 11

Michael 11

Susan 12

The following SAS program is submitted:

data group;

infile 'team';

input name $15. age 2.;

file 'file-specification';

put name $15. +5 age 2.;

run;

Which one of the following describes the output created?

A.

a raw data file only

B.

a SAS data set named GROUP only

C.

a SAS data set named GROUP and a raw data file

D.

No output is generated as the program fails to execute due to errors.

Full Access
Question # 23

The following SAS program is submitted:

A00-211 question answer

What types of variables are DayOfMonth, MonthOfYear, and Year?

A.

DayOfMonth, Year, and MonthOfYear are character.

B.

DayOfMonth, Year, and MonthOfYear are numeric.

C.

DayOfMonth and Year are numeric. MonthOfYear is character.

D.

DayOfMonth, Year, and MonthOfYear are date values.

Full Access
Question # 24

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?

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.

Full Access
Question # 25

The following SAS program is submitted:

proc means data = sasuser.shoes;

where product in (‘Sandal’ , ‘Slipper’ , ‘Boot’);

run;

Which ODS statements complete the program and send the report to an HTML file?

A.

ods html = ‘sales.html’; ods html close;

B.

ods file = ‘sales.html’; ods file close;

C.

ods file html = ‘sales.html’; ods file close;

D.

ods html file = ‘sales.html’; ods html close;

Full Access
Question # 26

Given the SAS data set ONE:

Given the SAS data set WORK.ONE:

A00-211 question answer

The following SAS program is submitted:

A00-211 question answer

Which report is produced?

A00-211 question answer

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 27

After a SAS program is submitted, the following is written to the SAS log:

105 data january;

106 set allmonths(keep = product month num_sold cost);

107 if month = ‘Jan’ then output january;

108 sales = cost * num_sold;

109 keep = product sales;

------

22

ERROR 22-322: Syntax error, expecting one of the following:!,

!!, &, *,**, +, -,/, <,< =, <>, =, >, ><, >=,

AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,

NOTIN, OR,^=,|,II,

110 run;

What changes should be made to the KEEP statement to correct the errors in the LOG?

A.

keep product sales;

B.

keep product, sales;

C.

keep = product, sales;

D.

keep = (product sales);

Full Access
Question # 28

Given the SAS data set WORK.TEMPS:

A00-211 question answer

The following program is submitted:

A00-211 question answer

Which output is correct?

A00-211 question answer

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 29

A user-defined format has been created using the FORMAT procedure. Where is it stored?

A.

in a SAS catalog

B.

in an external binary file

C.

in a SAS dataset in the WORK library

D.

in a SAS dataset in a permanent SAS data library

Full Access
Question # 30

The following SAS program is submitted:

data work.test;

set work.staff (keep = jansales febsales marsales);

array diff_sales{3} difsales1 - difsales3;

array monthly{3} jansales febsales marsales;

run;

What new variables are created?

A.

JANSALES, FEBSALES and MARSALES

B.

MONTHLY1, MONTHLY2 and MONTHLY3

C.

DIFSALES1, DIFSALES2 and DIFSALES3

D.

DIFF_SALES1, DIFF_SALES2 and DIFF_SALES3

Full Access
Question # 31

Given the SAS data set WORK.EMP_NAME:

A00-211 question answer

Given the SAS data set WORK.EMP_DEPT:

A00-211 question answer

The following program is submitted:

A00-211 question answer

How many observations are in data set WORK.ALL after submitting the program?

A.

1

B.

2

C.

3

D.

5

Full Access
Question # 32

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?

A.

by Expenses IDNumber;

B.

by IDNumber Expenses;

C.

by ascending Expenses IDNumber;

D.

by ascending IDNumber ascending Expenses;

Full Access
Question # 33

The following SAS program is submitted:

data temp.x;

set sasuser.y;

run;

What must be submitted prior to this SAS program for the program to execute successfully?

A.

A LIBNAME statement for the libref TEMP only must be submitted.

B.

A LIBNAME statement for the libref SASUSER only must be submitted.

C.

LIBNAME statements for the librefs TEMP and SASUSER must be submitted.

D.

No LIBNAME statement needs to be submitted.

Full Access
Question # 34

The following SAS program is submitted:

data WORK.ACCOUNTING;

set WORK.DEPARTMENT;

label Jobcode='Job Description';

run;

Which statement is true about the output dataset?

A.

The label of the variable Jobcode is Job (only the first word).

B.

The label of the variable Jobcode is Job Desc (only the first 8 characters).

C.

The label of the variable Jobcode is Job Description.

D.

The program fails to execute due to errors. Labels must be defined in a PROC step.

Full Access
Question # 35

Given the data set WORK.EMPDATA:

A00-211 question answer

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

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%';

Full Access
Question # 36

The SAS data set WORK.ONE contains a numeric variable named Num ana character variable named Char:

WORK.ONE

Num Char

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

1 23

3 23

1 77

The following SAS program is submitted:

proc print data=WORK.ONE;

where Num='1';

run;

What is output?

A.

Num Char--- ----1 23

B.

Num Char--- ----1 231 77

C.

Num Char--- ----1 233 231 77

D.

No output is generated.

Full Access
Question # 37

Given the raw data file AMOUNT:

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

$1,234

The following SAS program is submitted:

data test;

infile ‘amount’;

input@1 salary 6.;

if_error_then description = ‘Problems’;

else description = ‘No Problems’;

run;

What is the result?

A.

The value of the DESCRIPTION variable is No Probl.

B.

The value of the DESCRIPTION variable is Problems.

C.

The value of the DESCRIPTION variable is No Problems.

D.

The value of the DESCRIPTION variable can not be determined.

Full Access
Question # 38

The following SAS program is submitted:

data one;

addressl = ‘214 London Way’;

run;

data one;

set one;

address = tranwrd(address1, ‘Way’, ‘Drive’); run;

What are the length and value of the variable ADDRESS?

A.

Length is 14; value is ‘214 London Dri’.

B.

Length is 14; value is ‘214 London Way’.

C.

Length is 16; value is ‘214 London Drive’.

D.

Length is 200; value is ‘214 London Drive’.

Full Access
Question # 39

The following SAS program is submitted:

footnote1 ‘Sales Report for Last Month’;

footnote2 ‘Selected Products Only’;

footnote3 ‘All Regions’;

footnote4 ‘All Figures in Thousands of Dollars’;

proc print data = sasuser.shoes;

footnote2 ‘All Products’;

run;

Which footnote(s) is/are displayed in the report?

A.

All Products

B.

Sales Report for Last Month All Products

C.

All Products All Regions All Figures in Thousands of Dollars

D.

Sales Report for Last Month All Products All Regions All Figures in Thousands of Dollars

Full Access
Question # 40

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?

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;

Full Access