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

SAS Institute A00-215 Dumps

Page: 1 / 6
Total 78 questions

SAS Certified Associate: Programming Fundamentals Using SAS 9.4 Questions and Answers

Question 1

Given the following DATA step:

What is the value of average?

Enter your numeric answer in the space above.

Options:

Question 2

What is the default byte size of a numeric variable?

Enter your numeric answer in the space above.

Options:

Question 3

Given the code shown below:

What will be the format for MSRP in the RPOC PRINT output?

Options:

A.

There is a syntax error in the FORMAT statement in the PROC PRINT step.

B.

Comma12. 2

C.

Dollar10.

D.

Dollar12.

Question 4

Which PROC SORT option allows you to create an output data set of the sorted data?

Options:

A.

Data=

B.

SORTOUT=

C.

OUTPUT=

D.

OUT=

Question 5

Which statements read the input data set SASHELP. SHOES and create the output data set WORK. TOTAL?

Options:

A.

data sashalp.shoes;

out work.total;

B.

data sashelp.shoes;

output work.total;

C.

data work.total;

set sashelp.shoes;

D.

data out=work.total;

input sasholp.shoes

Question 6

Given the data sets AMERICIAN NATIONAL and results in the data set BASEBALL shown below:

Which DATA step correctly creates the BASEBALL data set?

Options:

A.

data baseball;

set american (rename=(Team=TeamName)) national;

run;

B.

data baseball;

set american national;

run;

C.

data baseball;

set American (rename=(TeamName=Team)) national;

run;

D.

data baseball;

set national American;

run;

Question 7

Given the program shown below:

Given the partial PROC PRINT report below:

Why are the labels for msbp, MPG_city, and MPG_Highway NOT displaying in the PROC PRINT report^

Options:

A.

You must use the LABEL option on the PROC PRINT statement

B.

You must put the LABEL statement in the PROC PRINT step

C.

You must put the LABEL statement after the KEEP statement In the DATA stop

D.

You must use a single LABEL statement for each variable.

Question 8

Which sentence is true regarding the VALUE statement in the FORMAT procedure?

Options:

A.

The keyword UNKNOWN can be specified on the VALUE statement.

B.

Numeric format names in the VALUE statement must begin with a $ sign.

C.

The VALUE statement can create numeric and character formats.

D.

The VALUE statement uses the LIB= option to specify the location of the format.

Question 9

Given the partial report shown below:

Which step will produce this report?

Options:

A.

proc freq data=sashelp. shoes order=freq;

tables region*product / list;

run;

B.

proc freq data=sashelp. shoes;

tables region product / list;

run;

C.

proc freq data=sashelp. shoes order=freq;

tables region product / crosslist;

run;

D.

proc freq data=sashelp. shoes;

tables region*product / crosslist;

run;

Question 10

Given the input data set WORK. GR_ANS with two character variables:

The following SAS program is submitted:

Which report is created?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 11

Which PROC IMPORT step correctly creates the MYDATA,SALES data set from the SALES.SCV file?

Options:

A.

proc import datafile=sales.csv dbms=csv

out="mydata.sales";

run;

B.

proc import datafile="sales.csv" dbms=csv

out=mydata. sales;

run;

C.

proc import data="mydata. sales" dbms=csv

out="mydata.sales";

run;

D.

proc import data=mydata.sales dbms=csv

out=mydata.sales;

run;

Question 12

Which option renames the variable Name to StudentName when reading the ClassRoster data set?

Options:

A.

set ClassRoster (rename (StudentName=Name ) ) ;

B set ClassRoster (rename (NamestudentName) ) ;

B.

set ClassRoster (renaiae=(Name=studentName) ) ;

C.

set ClassRoster (^name=(StudentName=Name));

Question 13

The sashelp. class data set has 19 observations.

Given the frequency information about the Age, shown below:

How many observations are written to output data set when the following code is submitted?

Options:

A.

preteen will have 7 observations and teen will have 19 observations

B.

preteen will have 7 observations and teen will have 12 observations

C.

preteen will have 26 observations and teen will have 31 observations

D.

preteen will have 10 observations and teen will have 9 observations

Question 14

Given the following SAS program:

What footnotes appear for the second PROC PRINY report?

Options:

A.

Created by HR

B.

Created by HR

C.

Draft - Do Not Distribute

Create by HR

D.

Draft –Do NOT Distribute

Question 15

What happens when you submit the code shown below?

data table1 table2;

set sashelp.shoes;

output;

run;

Options:

A.

The program does not run because there is no data set specified on the OUTPUT statement.

B.

Each observation in sashelp. shoes is written to both table1 and table2.

C.

Each observation is written twice to table1 and table2.

D.

Each observation in sashelp. shoes is written to table1 only.

Question 16

Which assignment statement uses the SUBSTR function to extract the four-digit year from the value of date?

data days;

date="02Apr2019";

insert-statement-here

run;

Options:

A.

year=substr (date, 7, 4) ;

B.

year=substr (date, 4, 6) ;

C.

year=substr (date, 6, 4) ;

O D) year=substr (date, 4, 7) ;

Question 17

When the following code is submitted, execution fails.

Why does the execution fail?

Options:

A.

Multiple executable statements are not allowed in the DO block.

B.

The OUTPUT statement is not allowed in the DO block.

C.

There are two unclosed DO block.

D.

The conditional logic expressions fail for the DO block

Question 18

How many statements are in the following PROC PRINT step?

Options:

A.

5

B.

3

C.

4

D.

1

Question 19

Which statement is true about the DROP statement during the compilation phase of the DATA step?

Options:

A.

The DROP statement flags the variables in the Program Data Vector to be dropped at output.

B.

The DROP statement determines the order of the variables in the Program Data Vector

C.

Variables on the DROP statement are removed from the input data set.

D.

Variables on the DROP statement are not created in the Program Data Vector

Question 20

Which two correctly create a SAS date value? (Choose two.)

Options:

A.

"10/19/2019"d

B.

mdy (10, 19, 2019)

C.

"190ct2019"d

D.

mdy (19, Oct, 2019)

Question 21

Given the following code:

Which variables are created with the BY statement?

Options:

A.

State. First and State. Last

B.

First. State and Last. State

C.

First_State and Last_State

D.

First. and Last.

Question 22

Which statement is true regarding the SET statement?

Options:

A.

The SET statement specifies an input data set in the DATA step.

B.

The SET statement specifies an output data set in the PROC SORT step.

C.

The SET statement specifies an input data sot in the PROC SORT step

D.

The SET statement specifies an output data 5et in the DAI A step.

Question 23

Given the PATIENT and VISIT data sets and the DATA step shown below:

PATIENT

VISIT

How many observations are created in the ALLVISITS data set?

Options:

A.

5

B.

12

C.

7

D.

0

Page: 1 / 6
Total 78 questions