Labour Day Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

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

Demo: 23 questions
Total 78 questions

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

Question 1

Given the input data set WORK.RUN:

Given the following DATA step:

What is the correct output data set WORK.RUN2?

A)

B)

C)

D)

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Question 2

The SAS log of a submitted DATA step is shown below:

Which action resolve the error messages?

Options:

A.

Remove the period after the value of Inc.

B.

Enclose the value of ABC Inc . in quotation marks.

C.

Add a LENGTH statement to declare the company variable as character

D.

Enclose the value of ABC Inc. in parentheses.

Question 3

What step has correct syntax for the CONTENTS procedure?

Options:

A.

Proc contents file=sashelp .shoes;

Run;

B.

Proc contents lib=sashelp data=shoes;

Run;

C.

Proc contents data=sashelp.shoes;

Run;

D.

Proc contents sashelp. Shoes;

run;

Question 4

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

Options:

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;

Question 5

Which step reads the SASHELP. BASEBALL data set and creates the temporary data set CATCHERS?

Options:

A.

data sashelp. catchers;

set sashelp.baseball;

where position='c';

run;

B.

data sashelp.baseball;

set catchers;

where position='c';

run;

C.

data sashelp.baseball;

set sashelp.catchers;

where position='c';

run;

D.

data catchers;

set sashelp.baseball;

where position='c';

run;

Question 6

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

Question 8

Which PROC MEANS statement specifies the numeric variables to analyze?

Options:

A.

BY

B.

CLASS

C.

TABLES

D.

VAR

Question 9

Which PROC MEANS program creates the report below?

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

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 11

Given the following DATA step:

What is the value of average?

Enter your numeric answer in the space above.

Options:

Question 12

Which statement is true about the SUM statement?

Options:

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.

Question 13

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;

Question 14

Given the report shown below:

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 15

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.

Question 16

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

Question 17

Which statements read the input data set SASHELP. SHOES and create the output data set WORK. TOTAL?

Options:

A.

data sashalp.shoes;

out work.total;

B.

data sashelp.shoes;

output work.total;

C.

data work.total;

set sashelp.shoes;

D.

data out=work.total;

input sasholp.shoes

Question 18

Which PROC SORT option allows you to create an output data set of the sorted data?

Options:

A.

Data=

B.

SORTOUT=

C.

OUTPUT=

D.

OUT=

Question 19

Given the partial report shown below:

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 20

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.

Question 21

Given the display of the CITIES data set:

Which program creates the PROC PRINT report below?

Options:

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;

Question 22

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

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 23

Which PROC MEANS step generates the report below?

Options:

A.

proc means data=class mean std;

var Height Weight;

run;

B.

proc means data=class / mean std;

mean (Height, Weight) ;

std (Height, Weight) ;

run;

C.

proc means data=class;

var mean std;

run;

D.

proc means data=class;

options mean std;

keep Height Weight;

run;

Demo: 23 questions
Total 78 questions