Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

SAS Institute A00-215 SAS Certified Associate: Programming Fundamentals Using SAS 9.4 Exam Practice Test

Page: 1 / 8
Total 78 questions

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

Testing Engine

  • Product Type: Testing Engine
$42  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$36.75  $104.99
Question 1

Which step temporarily assign a format to the sales variable?

Options:

A.

Proc format;

Formatsales comma12.;

Run;

B.

Data sasuer. Shoes

Set sashelp,sheoes;

Format sales comma12.;

C.

Proc contents data=sashelp.shoes;

Format Sales comma12.;

Run;

D.

Proc print data= sashelp. Shoes

Format sales comma12.;

Run;

Question 2

What is the result of submitting the program below?

proc contents data=revenue;

run;

Options:

A.

a report showing the descriptor portion of the REVENUE data set

B.

a report showing the properties of the REVENUE variable

C.

a report showing the values of the REVENUE variable

D.

a report showing the data portion of the REVENUE data set

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

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 5

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 6

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 7

Which step reads the SASHELP. BASEBALL data set and creates the temporary data set CATCHERS?

Options:

A.

data sashelp. catchers;

set sashelp.baseball;

where position='c';

run;

B.

data sashelp.baseball;

set catchers;

where position='c';

run;

C.

data sashelp.baseball;

set sashelp.catchers;

where position='c';

run;

D.

data catchers;

set sashelp.baseball;

where position='c';

run;

Question 8

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

Question 9

Which statement is true about SAS program syntax?

Options:

A.

Any statement that begins with an & is a comment and will not execute.

B.

Global statements (such as LIBNAME) need a RUN statement to execute.

C.

Character values in quotation marks are case sensitive.

D.

SAS cannot process steps with multiple statements on the same line.

Question 10

Which LIBNAME statement has the correct syntax for accessing SAS data sets?

Options:

A.

libname 'c:\sas\data' mydata;

B.

libname mydata 'c:\sas\data';

C.

libname mydata='c:\sas\data';

D.

libname 'c:\sas\data'=mydata;

Question 11

Which PROC MEANS statements specifies variables to group the data before calculating statistics?

Options:

A.

CLASS

B.

GROUP

C.

SUMBY

D.

VAR

Question 12

Given the PROC PRINT report of the INVEST data set shown below:

How many observations are in the FORCAST data set after this program executes?

Options:

A.

30

B.

10

C.

0

D.

20

Question 13

Which code uses the correct syntax to conditionally create the two variables age-Cat and account?

Options:

A.

if age<13 do then;

age_Cat='Pre-teen';

account='No Social Media Allowed';

end;

B.

if age<13 then do;

age_Cat-'Pre-teen';

account-'No Social Media';

end;

C.

if age<13 then

age_Cat-' Pre-teen'

account='No Social Media Allowed';

end;

D.

if age<13 do;

age_Cat-' Pre-teen';

account='No Social Media Allowed';

end;

Question 14

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 15

Which statement is true when creating two SAS data sets with a DATA step?

Options:

A.

Name both data sets in the DATA statement

B.

Use an OUT= option in the WHERE statement to output the observations to the appropriate data sets.

C.

Use a PUT statement to output the observations to the appropriate data sets.

D.

Use a separate SET statement for each data set.

Question 16

Given the input data set INVENTORY as shown below:

Two output data sets are desired, CHIPS and OTHERSNACKS.

* The CHIPS data set should only include QtySold, Price, and Product.

* The OTHERSNACKS data set should include QtySold, Price, product, and Type.

Which Data step creates the two desired output data sets

Options:

A.

data chips othersnacks;

set inventory;

if Type="chips" then do;

keep Qtysold Price Product;

output chips;

end;

else output othersnacks;

run;

B.

data chips (keep=QtySold Price Product) othersnacks;

set inventory;

if Type="chips" then output chips;

else output othersnacks;

run;

C.

data chips othersnacks;

set inventory;

if Type="chips" then output chips;

else output othersnacks;

keep QtySold Price Product;

run;

D.

data chips othersnacks;

set inventory (keep=QtySold Price Product) ;

if Type="chips" then output chips;

else output othersnacks;

run;

Question 17

Which PROC MEANS step generates the report below?

Options:

A.

proc means data=class mean std;

var Height Weight;

run;

B.

proc means data=class / mean std;

mean (Height, Weight) ;

std (Height, Weight) ;

run;

C.

proc means data=class;

var mean std;

run;

D.

proc means data=class;

options mean std;

keep Height Weight;

run;

Question 18

Which ODS EXCEL statement correctly creates an Excel using the ANALYSIS style?

Options:

A.

Ods excel=’ c : \report. xlsx’ style=analysis;

B.

Ods excel workbook=’ report. xles’ analysis;

C.

Ods excel=’ c : \report. xlsx’ / analysis;

D.

Ods excel file =’c \report.xlsx’ styleanalysis;

Question 19

The data set SASHELP. CARS contains information on different vehicles. How do you correctly write the observations with Type of 'SUV' to the suv data set and Type

of 'Sedan' to the sedans data set?

Options:

A.

data=SUV data=Sedans;

set sashelp.cars;

if Type = 'SUV' then output SUV;

else if Type = 'Sedan' then output Sedans;

run;

B.

data SUV Sedans;

set sashelp.cars;

if Type = 'SUV' then output SUV;

else if Type = 'Sedan' then output Sedans;

run;

C.

data SUV;

data Sedans;

set sashelp.cars;

if Type = SUV then output SUV;

else if Type = Sedan then output Sedans;

run;

D.

data= (SUV Sedans) ;

set sashelp.cars;

if Type = 'SUV' then output SUV;

else if Type = 'Sedan' then output Sedans;

run;

Question 20

Given the input data sets EMPLOYEES and DONATIONS, and the output data set NODONATIONS below:

Options:

A.

data nodonations;

merge employees (in-inE) donations (in=inD);

by employee_id;

if inE=0 and inD-0;

run;

B.

data nodonations;

merge employees (in-inE) donations (in=inD);

by employee_id;

run;

C.

data nodonations;

merge employees (in-inE) donations (in=inD);

by employee_id;

if inE=1 and inD-0;

run;

D.

data nodonations;

merge employees (in-inE) donations (in=inD);

by employee_id;

if inE=1 and inD-1;

run;

Question 21

Which iterative DO statement is invalid?

Options:

A.

Do 100 to 1200 by 100;

B.

Do num = 1.1 to 1.9 by 0.1;

C.

Do year = 2000 to 2016 by 2;

D.

Do reverse = 10 to 1 by -1;

Question 22

What is the default sort order of PROC SORT?

Options:

A.

Internal

B.

Ascending

C.

Formatted

D.

Descending

Question 23

The following program is summited:

The following report is created:

However, the desired report is shown below:

What change is needed to display the desired formatted values for the Answer varia

Options:

A.

Change the unformatted values on the VALUE statement to upper case letters

B.

Remove the comma located on the VALUE statement

C.

Add a period to the end of the format name on the VALUE statement.

D.

Remove the dollar sign located at the front of the format name

Page: 1 / 8
Total 78 questions