New Year Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

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

Question 1

Which PROC PRINT step correctly displays only the first 10 observations in the data set?

Options:

A.

proc print data=sashelp.class(obs=l10);

run;

B.

proc print data=sashelp.class;

obs=10;

run;

C.

proc print data=sashelp.class obs=10;

run;

D.

proc print data=sashelp.class (oba«'10' )

; run;

Question 2

What is the default byte size of a numeric variable?

Enter your numeric answer in the space above.

Options:

Question 3

Which statement is true regarding a variable?

Options:

A.

A character variable can contain alphabetic characters, numeric digits, and other special characters.

B.

A numeric value must be specified in single or double quotes.

C.

A character value cannot exceed 200 bytes.

D.

A numeric variable can contain digits, decimal point, minus sign, currency symbol, and E for scientific notation.

Question 4

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

Question # 4

Question # 4

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 5

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

Question # 5

The following SAS program is submitted:

Question # 5

Which report is created?

A)

Question # 5

B)

Question # 5

C)

Question # 5

D)

Question # 5

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 6

Which PROC MEANS statement specifies the numeric variables to analyze?

Options:

A.

BY

B.

CLASS

C.

TABLES

D.

VAR

Question 7

Given the partial report shown below:

Question # 7

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 8

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

Question # 8

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 9

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 10

Which PROC PRINT option displays variable labels in the report?

Options:

A.

SHOWLABELS

B.

COLS

C.

LABELS=

D.

LABEL

Question 11

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 12

You submit a program and the SAS log is shown below:

Question # 12

Which statement is true regarding the submitted program?

Options:

A.

The error in the PROC SORT step caused the program to stop processing

B.

All three steps ran successfully

C.

The DATA step and PROC PRINT steps ran without errors.

D.

The PROC SORT and PROC PRINT steps failed.

Question 13

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

Question 14

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

Question # 14

What is the type and length of SnackType?

Options:

A.

Numeric, 8

B.

Character, 7

C.

Character, 8

D.

Character, 5

Question 15

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 16

Given the following code:

Question # 16

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 17

Given the input data set WORK.RUN:

Question # 17

Given the following DATA step:

Question # 17

What is the correct output data set WORK.RUN2?

A)

Question # 17

B)

Question # 17

C)

Question # 17

D)

Question # 17

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Question 18

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

Question # 18

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

Options:

A.

30

B.

10

C.

0

D.

20

Question 19

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 20

Given the SAS data set WORK PRODUCTS:

Question # 20

How many variables does the WORK REVENUE data set contains?

Options:

A.

4

B.

5

C.

2

D.

3

Question 21

How many statements are In the program shown below?

Question # 21

Options:

A.

9

B.

6

C.

10

D.

2

Question 22

When the following code is submitted, execution fails.

Question # 22

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 23

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

Question # 23

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;

Page: 1 / 8
Total 78 questions