Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

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

Page: 2 / 3
Total 78 questions

Which SAS format displays a SAS date as 25JUN2019?

A.

ddMMMyy9.

B.

Date9.

C.

Ddmmmyyyy9.

D.

Dmy9.

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?

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;

Which statement is true regarding the DATA step?

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.

When the following code is submitted, execution fails.

Why does the execution fail?

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

Which statement is true about SAS program syntax?

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.

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;

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

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;

Which PROC SORT statement specifies the sort variable?

A.

CLASS

B.

BY

C.

SORTVAR

D.

ORDERBY

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.

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^

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.