Black Friday Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtick70

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

Questions 4

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

Options:

A.

KEEP

B.

DROP

C.

VAR

D.

SELECT

Buy Now
Questions 5

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

Buy Now
Questions 6

Which PROC PRINT option displays variable labels in the report?

Options:

A.

SHOWLABELS

B.

COLS

C.

LABELS=

D.

LABEL

Buy Now
Questions 7

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.

Buy Now
Questions 8

Which two data sets are permanent?

Options:

A.

New

B.

Mylib.new

C.

Work.new

D.

Temp.new

Buy Now
Questions 9

What is the default byte size of a numeric variable?

Enter your numeric answer in the space above.

Options:

Buy Now
Questions 10

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) ;

Buy Now
Questions 11

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.

Buy Now
Questions 12

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

What is the type and length of SnackType?

Options:

A.

Numeric, 8

B.

Character, 7

C.

Character, 8

D.

Character, 5

Buy Now
Questions 13

Which SAS format displays a SAS date as 25JUN2019?

Options:

A.

ddMMMyy9.

B.

Date9.

C.

Ddmmmyyyy9.

D.

Dmy9.

Buy Now
Questions 14

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

Buy Now
Questions 15

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

Buy Now
Questions 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;

Buy Now
Questions 17

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

Buy Now
Questions 18

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.

Buy Now
Questions 19

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;

Buy Now
Questions 20

How does SAS display missing values?

Options:

A.

a period for missing numeric and a blank for missing character

B.

an N for missing numeric and C for missing character

C.

a blank for Doth numeric and character missing

D.

a blank for missing numeric and a $ for missing character

Buy Now
Questions 21

Given the program below:

Why does the program fail?

Options:

A.

You must use two different DATA statements for HEIGHT1 and HEIGHT2

B.

You cannot output to different data sets

C.

You must include the data set height2 in the DATA statement

D.

You cannot use numbers in data set names.

Buy Now
Questions 22

Given the SAS data set WORK PRODUCTS:

How many variables does the WORK REVENUE data set contains?

Options:

A.

4

B.

5

C.

2

D.

3

Buy Now
Questions 23

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

Options:

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;

Buy Now
Exam Code: A00-215
Exam Name: SAS Certified Associate: Programming Fundamentals Using SAS 9.4
Last Update: Nov 24, 2024
Questions: 78
A00-215 pdf

A00-215 PDF

$25.5  $84.99
A00-215 Engine

A00-215 Testing Engine

$30  $99.99
A00-215 PDF + Engine

A00-215 PDF + Testing Engine

$40.5  $134.99