Winter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ex2p65

Exact2Pass Menu

Question # 4

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

A.

Syntax error

B.

Logic error

C.

Special error

D.

Data error

Full Access
Question # 5

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

Full Access
Question # 6

How many statements are in the following PROC PRINT step?

A.

5

B.

3

C.

4

D.

1

Full Access
Question # 7

Which statement is true regarding a DATA step concatenation?

A.

Columns with the same name must be renamed.

B.

The length of variables is determined from the first data set listed on the SET statement.

C.

A DATA step concatenation can contain a maximum of two tables on the same SET statement.

D.

A DATA step concatenation combines the data horizontally.

Full Access
Question # 8

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?

A.

30

B.

10

C.

0

D.

20

Full Access
Question # 9

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;

Full Access
Question # 10

Which two correctly create a SAS date value? (Choose two.)

A.

"10/19/2019"d

B.

mdy (10, 19, 2019)

C.

"190ct2019"d

D.

mdy (19, Oct, 2019)

Full Access
Question # 11

Which sentence is true regarding the VALUE statement in the FORMAT procedure?

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.

Full Access
Question # 12

____ steps typically report, manage, or analyze data.

Enter your answer in the space above. Case is ignored.

Full Access
Question # 13

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 # 14

What happens when you submit the code shown below?

data table1 table2;

set sashelp.shoes;

output;

run;

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.

Full Access
Question # 15

Given the partial report shown below:

Which step will produce this report?

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;

Full Access
Question # 16

Which program assigns the library reference exlib to the CLASS. XLSX workbook and displays the CLASS_TEST worksheet?

A.

libname xlsx exlib "c:\class.xlsx";

proc print data=xlsx.class_test;

run;

B.

libname exlib xlsx "c:\class.xlsx";

proc print data=class_test.xlsx;

run;

C.

libname exlib xlsx "c:\class";

proc print data=exlib.class_test.xlsx;

run;

D.

libname exlib xlsx "c: \class.xlsx";

proc print data=exlib.class_test;

run;

Full Access
Question # 17

Which PROC SORT statement specifies the sort variable?

A.

CLASS

B.

BY

C.

SORTVAR

D.

ORDERBY

Full Access
Question # 18

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 # 19

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 # 20

What is the default byte size of a numeric variable?

Enter your numeric answer in the space above.

Full Access
Question # 21

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

Which DATA step correctly creates the BASEBALL data set?

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;

Full Access
Question # 22

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 # 23

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