Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dumps65

SAS Institute A00-215 Dumps

Page: 1 / 8
Total 78 questions

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

Question 1

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 2

Which statement is true regarding the DATA step?

Options:

A.

The DATA step can only read raw data files.

B.

The DATA step reads, processes and creates date

C.

The DATA step can output only one data set.

D.

The DATA step must be the first step in a program.

Question 3

Which PROC SORT statement specifies the sort variable?

Options:

A.

CLASS

B.

BY

C.

SORTVAR

D.

ORDERBY

Question 4

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

as

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

Options:

A.

30

B.

10

C.

0

D.

20

Question 5

Given the partial report shown below:

as

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 6

How many statements are In the program shown below?

as

Options:

A.

9

B.

6

C.

10

D.

2

Question 7

Given the following assignment statement:

BirthDate = 15DEC2005’d;

Which statement is true?

Options:

A.

15DEC2005 'd is a character constant

B.

BirthDate is a numeric variable.

C.

The byte size of BirthDate is 9.

D.

The assignment statement contains a syntax error.

Question 8

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 9

Which PROC MEANS program creates the report below?

as

Options:

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

Question 10

Given the STUDENTS data set below:

as

What will be the values for First. State and Last. State for Ellen's observation?

Options:

A.

First. State=0 and Last. State=1

B.

First. State=0 and Last.State=0

C.

First. State=1 and Last. State=1

D.

First. State=1 and Last.State=0

Question 11

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 12

Which PROC PRINT option displays variable labels in the report?

Options:

A.

SHOWLABELS

B.

COLS

C.

LABELS=

D.

LABEL

Question 13

Given the code shown below:

as

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 14

Which program correctly subnets the SASHELP. BASEBALL data set to include only the players in the East Division with 75 or more hits?

as

Options:

A.

data bball;

set sashelp.baseball;

where Division and nHits in ('East' and 75+);

run;

B.

data bball;

set sashelp.baseball;

where Division = 'East';

where nHits >= 75;

run;

C.

data bball;

set sashelp.baseball;

where Division - 'East' or nHits >= 75;

run;

D.

data bball;

set sashelp.baseball;

where Division = 'East' and nHits >= 75;

run;

Question 15

Given the input data set INVENTORY as shown below:

as

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

as

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 16

Given the report shown below:

as

Which PROC PREQ step creates the frequency report?

Options:

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;

Question 17

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 18

What type of error does NOT produce the expected results and does NOT generate errors or warnings in the log?

Options:

A.

Syntax error

B.

Logic error

C.

Special error

D.

Data error

Question 19

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

Options:

A.

N

B.

_N_

C.

_Obs_

D.

Obs

Question 20

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 21

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

as

What is the type and length of SnackType?

Options:

A.

Numeric, 8

B.

Character, 7

C.

Character, 8

D.

Character, 5

Question 22

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 23

Which statement is true regarding the XLSX engine in the LIBNAME statement?

Options:

A.

The individual worksheets are automatically concatenated when reading a Microsoft Excel workbook.

B.

The XLSX engine can road and write data in Microsoft Excel workbooks.

C.

The XLSX engine can road Microsoft workbooks with both XLSX and XLS extensions

D.

The XLSX extension in the Microsoft Excel workbook name is optional in the LIBNAME statement

Page: 1 / 8
Total 78 questions