Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > SAS Institute > Programming Fundamentals > A00-215

A00-215 SAS Certified Associate: Programming Fundamentals Using SAS 9.4 Question and Answers

Question # 4

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

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;

Full Access
Question # 5

Which statement is true regarding variable names?

A.

Variable names are case sensitive.

B.

Variable names are from 1 to 32 characters in length.

C.

Variable names are optional when you create a data set

D.

Variable names can start with a number or an underscore

Full Access
Question # 6

Which statement is true about the SUM statement?

A.

The SUM statement includes an equal sign.

B.

Multiple accumulating variables can be created with one SUM statement.

C.

The SUM statement ignores missing values.

D.

By default, the accumulating variable is initialized to 1.

Full Access
Question # 7

Which two statements are true about data set options such as KEEP= and RENAME =? (Choose two.)

A.

The options must be placed in parentheses.

B.

The options are not allowed in PROC steps.

C.

The options can be used only on the output data set.

D.

The options are placed after the data set name.

Full Access
Question # 8

Which PROC PRINT statement controls the order of the variables displayed in the report?

A.

KEEP

B.

DROP

C.

VAR

D.

SELECT

Full Access
Question # 9

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

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

Full Access
Question # 10

Given the following DATA step:

What is the value of average?

Enter your numeric answer in the space above.

Full Access
Question # 11

Which PROC SORT statement specifies the sort variable?

A.

CLASS

B.

BY

C.

SORTVAR

D.

ORDERBY

Full Access
Question # 12

Which PROC MEANS program creates the report below?

A.

proc means data-sashelp. shoes sum mean;

var Sales;

Class Product;

run;

B.

proc means data=sashelp. 'shoes

var Sale;

group Product;

run/

C.

Pror moans data-uashelp . shoes sum mean nobe;

by sales;

class product

D.

proc means data-esea= ashelp. shoes.

sum Salad;

mean Sales;

by product;

run."

Full Access
Question # 13

What is the default byte size of a numeric variable?

Enter your numeric answer in the space above.

Full Access
Question # 14

The data set Snacks contains three variables (productName, Flavor, and Price). Given the program shown below:

What is the type and length of SnackType?

A.

Numeric, 8

B.

Character, 7

C.

Character, 8

D.

Character, 5

Full Access
Question # 15

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

A.

ods excel workbook='c:\report.xlsx' / analysis;

B.

ods excel 'c:\report.xlsx' / analysis;

C.

ods excel='c: \report.xlsx' style=analysis;

D.

ods excel file='c:\report.xlsx' style=analysis;

Full Access
Question # 16

Given the following code:

Which variables are created with the BY statement?

A.

State. First and State. Last

B.

First. State and Last. State

C.

First_State and Last_State

D.

First. and Last.

Full Access
Question # 17

Given the SAS data set WORK PRODUCTS:

How many variables does the WORK REVENUE data set contains?

A.

4

B.

5

C.

2

D.

3

Full Access
Question # 18

How many statements are In the program shown below?

A.

9

B.

6

C.

10

D.

2

Full Access
Question # 19

Given the display of the CITIES data set:

Which program creates the PROC PRINT report below?

A.

proc print data=cities showlabelse;

label Name= ' Employee Name

City =Birth City

B.

proc print data-cities label noobs;

label Name='Employee Name'

City=' Birth City' ;

run;

C.

proc print data=cities ;

Name=' Employee Name' ;

City='Birth City';

run;

D.

options noobs labels;

proc print data=cities;

display Name=' Employee Name*

city='Birth City',

run;

Full Access
Question # 20

Given the report shown below:

Which PROC PREQ step creates the frequency report?

A.

proc freq data= cars;

tables make drivetrain;

run;

B.

proc freq data= cars;

tables make *drivetrain;

run;

C.

proc freq data- cars;

tables drivetrain make;

run;

D.

proc freq data- cars;

tables drivetrain* make;

run;

Full Access
Question # 21

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

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;

Full Access
Question # 22

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

A.

set ClassRoster (rename (StudentName=Name ) ) ;

B set ClassRoster (rename (NamestudentName) ) ;

B.

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

C.

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

Full Access
Question # 23

Which variable in the Program Data Vector represents the number of times the Data step has iterated?

A.

N

B.

_N_

C.

_Obs_

D.

Obs

Full Access