Black Friday Special - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dm70dm

Hot Vendors
Note! The A00-211 Exam is no longer available.

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

Questions 4

The following SAS program is submitted:

A00-211 Question 4

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
Questions 5

This questions will ask you to provide two missing variable names.

The following SAS program is submitted:

data WORK.TOTAL;

set WORK.SALARY;

by Department Gender;

if First. then Payroll=0

Payroll+Wagerate;

if Last.;

run;

The SAS data set WORK.SALARY is currently ordered by Gender within Department. Which inserted code will accumulate subtotals for each Gender within Department?

Options:

A.

variable 1: Gender variable 2: Department

B.

variable 1: Gender variable 2: Gender

C.

variable 1: Department variable 2: Gender

D.

variable 1: Department variable 2: Department

Buy Now
Questions 6

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

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

72 95

The following SAS program is submitted:

data test;

infile 'size';

input @1 height 2. @4 weight 2;

run;

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

Options:

A.

2

B.

72

C.

95

D.

. (missing numeric value)

Buy Now
Questions 7

The following SAS program is submitted:

data work.new;

mon = 3;

day = 23;

year = 2000;

date = mdy(mon,day,year);

run;

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

Options:

A.

a character string with the value '23mar2000'

B.

a character string with the value '03/23/2000'

C.

a numeric value of 14692, which represents the SAS date value for March 23, 2000

D.

a numeric value of 3232000, which represents the SAS date value for March 23, 2000

Buy Now
Questions 8

The following SAS program is submitted:

A00-211 Question 8

What is the result?

Options:

A.

The value of the variable Discount in the output data set is 2000. No messages are written to the SAS log.

B.

The value of the variable Discount in the output data set is 2000. A note that conversion has taken place is written to the SAS log.

C.

The value of the variable Discount in the output data set is missing. A note in the SAS log refers to invalid numeric data.

D.

The variable Discount in the output data set is set to zero. No messages are written to the SAS log.

Buy Now
Questions 9

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

EAST

WEST

NORTH

SOUTH

The following program is submitted:

libname MYXLS pcfiles path=’c:\regions.xlsx’;

Which PROC PRINT step correctly displays the NORTH worksheet?

Options:

A.

proc print data=MYXLS.NORTH.XLS;run;

B.

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

C.

proc print data=MYXLS.NORTH$;run;

D.

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

Buy Now
Questions 10

Given the following raw data record:

07Jan2005

Which INFORMAT reads this raw data and stores it as a SAS date value?

Options:

A.

dmy9.

B.

date9.

C.

ddMMMyy9.

D.

ddmmmyyyy9.

Buy Now
Questions 11

The following SAS program is submitted:

libname rawdata1 'location of SAS data library';

filename rawdata2 'location of raw data file';

data work.testdata;

infile

input sales1 sales2;

run;

Which one of the following is needed to complete the program correctly?

Options:

A.

rawdata1

B.

rawdata2

C.

'rawdata1'

D.

'rawdata2'

Buy Now
Questions 12

Given the SAS data set AGES:

AGES

AGE

---------

The variable AGE contains character values. The following SAS program is submitted:

data subset;

set ages;

where age> 12;

run;

How many observations are written out to the data set SUBSET?

Options:

A.

0

B.

1

C.

2

D.

3

Buy Now
Questions 13

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

Options:

A.

END

B.

QUIT

C.

STOP

D.

CLOSE

Buy Now
Questions 14

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 WORK.SALARY, currently ordered by DEPARTMENT, contains 100 observations for each of 5 departments.

What is the result?

Options:

A.

The WORK.TOTAL data set contains 5 observations.

B.

The WORKTDTAL data set contains 100 observations.

C.

The WORKTOTAL data set contains 500 observations.

D.

The program fails to execute due to errors.

Buy Now
Questions 15

The following output is created by the FREQUENCY procedure:

A00-211 Question 15

Which TABLES option(s) would be used to eliminate the row and column counts and just see the frequencies and percents?

Options:

A.

norowcount nocolcount

B.

freq percent

C.

norow nocol

D.

nocounts

Buy Now
Questions 16

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

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

24613 $25.31

The following SAS program is submitted:

data inventory;

infile 'product';

input idnum 5. @10 price;

run;

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

Options:

A.

25.31

B.

$25.31

C.

. (missing numeric value)

D.

No value is stored as the program fails to execute due to errors.

Buy Now
Questions 17

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 18

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 19

Given the raw data file EMPLOYEE:

----I----1 0---I----20---I----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 = ‘Ruth’ then input idnum 10-11;

else input age 7-8;

run;

What value does the variable IDNUM contain when the name of the employee is “Ruth”?

Options:

A.

11

B.

22

C.

33

D.

(missing numeric value)

Buy Now
Questions 20

The following SAS program is submitted:

data work.accounting;

set work.department;

length jobcode $ 12;

jobcode=’FAl’;

run;

The WORK.DEPARTMENT data set contains a character variable named JOBCODE with a length of 5. What is the result?

Options:

A.

The length of the variable JOBCODE is 3.

B.

The length of the variable JOBCODE is 5.

C.

The length of the variable JOSBODE is 12.

D.

The program fails to execute due to errors.

Buy Now
Questions 21

Given the SAS data set WORK.EMP_NAME:

A00-211 Question 21

Given the SAS data set WORK.EMP_DEPT:

A00-211 Question 21

The following program is submitted:

A00-211 Question 21

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

Options:

A.

1

B.

2

C.

3

D.

5

Buy Now
Questions 22

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

A00-211 Question 22

The following SAS program is submitted:

A00-211 Question 22

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 23

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?

Options:

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

Buy Now
Questions 24

Which statement specifies that records 1 through 10 are to be read from the raw data file customer.txt?

Options:

A.

infile 'customer.txt' 1-10;

B.

input 'customer.txt' stop@10;

C.

infile 'customer.txt' obs=10;

D.

input 'customer.txt' stop=10;

Buy Now
Questions 25

Given the SAS data set WORK.TEMPS:

A00-211 Question 25

The following program is submitted:

A00-211 Question 25

Which output is correct?

A00-211 Question 25

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 26

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?

Options:

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’.

Buy Now
Questions 27

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 28

Given the raw data record in the file phone.txt:

A00-211 Question 28

Which SAS statement completes the program and results in a value of "James Stevens" for the

variableFullName?

Options:

A.

FullName=CATX(' ',EmpFName,EmpLName);

B.

FullName=CAT(' ',EmpFName,EmpLName);

C.

FullName=EmpFName!!EmpLName;

D.

FullName=EmpFName + EmpLName;

Buy Now
Questions 29

The value 110700 is stored in a numeric variable named SALARY.

Which FORMAT statement displays the value as $110,700.00 in a report?

Options:

A.

format salary comma11.2;

B.

format salary dollar8.2;

C.

format salary dollar11.2;

D.

format salary comma8.2 dollar8.2;

Buy Now
Questions 30

The following SAS program is submittad:

data work.sales;

do year = 1 to 5;

do month=1 to 12;

x+1;

output

end;

end;

run;

How many observations are written the WORK SALES data set?

Options:

A.

0

B.

1

C.

5

D.

60

Buy Now
Questions 31

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 32

Given the SAS data set WORK.EMP_NAME:

A00-211 Question 32

Given the SAS data set WORK.EMP_DEPT:

A00-211 Question 32

The following program is submitted:

A00-211 Question 32

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

Enter your numeric answer in the space below.

Options:

Buy Now
Questions 33

This question will ask you to provide a line of missing code.

The following SAS program is submitted:

proc freq data = WORK.SALES;

run;

The following output is created by the FREQUENCY procedure:

A00-211 Question 33

Which statement was used to complete the above program that produced the output?

Options:

A.

tables region product;

B.

var region * product;

C.

tables region*product;

D.

var region product;

Buy Now
Questions 34

Given the SAS data set WORK.ORDERS:

A00-211 Question 34

The variable order_id is numeric; customer is character; and shipped is numeric, contains a SAS date value, and is shown with the DATE9. format. A programmer would like to create a new variable, ship_note, that shows a character value with the order_id, shipped date, and customer name. For example, given the first observation ship_note would have the value "Order 9341 shipped on 02FEB2009 to Josh Martin".

Which of the following statement will correctly create the value and assign it to ship_note?

Options:

A.

ship_note=catx(' ','Order',order_id,'shipped on',input(shipped,date9.),'to',customer);

B.

ship_note=catx(' ','Order',order_id,'shipped on',char(shipped,date9.),'to',customer);

C.

ship_note=catx(' ','Order',order_id,'shipped on',transwrd(shipped,date9.),'to',customer);

D.

ship_note=catx(' ','Order',order_id,'shipped on',put(shipped,date9.),'to',customer);

Buy Now
Questions 35

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

A00-211 Question 35

The following SAS program is submitted:

A00-211 Question 35

What is output?

A00-211 Question 35

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 36

This question will ask you to provide a segment of missing code.

Given the SAS data set WORK.ONE:

A00-211 Question 36

The following SAS program is submitted:

A00-211 Question 36

The data set WORK.TWO is created, where Day would be the day of the month:

A00-211 Question 36

Which expression successfully completed the program and creates the variable Day?

Options:

A.

day(BeginDate)

B.

weekday(BeginDate)

C.

dayofmonth(BeginDate)

D.

getday(BeginDate)

Buy Now
Questions 37

The following SAS program is submitted:

proc means data = sasuser.houses std mean max;

var sqfeet;

run;

Which one of the following is needed to display the standard deviation with only two decimal places?

Options:

A.

Add the option MAXDEC = 2 to the MEANS procedure statement.

B.

Add the statement MAXDEC = 7.2; in the MEANS procedure step.

C.

Add the statement FORMAT STD 7.2; in the MEANS procedure step.

D.

Add the option FORMAT = 7.2 option to the MEANS procedure statement.

Buy Now
Questions 38

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

Options:

A.

non-missing numeric variable values only

B.

missing numeric variable values and non-missing numeric variable values only

C.

non-missing character variables and non-missing numeric variable values only

D.

missing character variables, non-missing character variables, missing numeric variable values, and non-missing numeric variable values

Buy Now
Questions 39

The following SAS program is submitted:

data work.test;

Author = 'Agatha Christie';

First = substr(scan(author,1,' ,'),1,1);

run;

Which one of the following is the length of the variable FIRST in the output data set?

Options:

A.

1

B.

6

C.

15

D.

200

Buy Now
Questions 40

The following SAS program is submitted:

options pageno = 1;

proc print data = sasuser.houses;

run;

proc means data = sasuser.shoes;

run;

The report created by the PRINT procedure step generates 5 pages of output.

What is the page number on the first page of the report generated by the MEANS procedure step?

Options:

A.

1

B.

2

C.

5

D.

6

Buy Now
Exam Code: A00-211
Exam Name: SAS Base Programming for SAS (r) 9
Last Update: Nov 27, 2023
Questions: 270
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 23 Nov 2024