Uploaded by enochdepottey

A00-420 SAS Viya Intermediate Programming Dumps

advertisement
Download SAS A00-420 Exam Dumps For Best Preparation
Exam
: A00-420
Title
: SAS Viya Intermediate
Programming
https://www.passcert.com/A00-420.html
1/8
Download SAS A00-420 Exam Dumps For Best Preparation
1.Given the following SAS program:
data casuser.national;
set casuser.baseball(where=(league='National'));
r=ranuni(625);
drop league;
run;
Why is the above program processed by the Compute Server rather than the CAS server?
A. The WHERE option is not supported in the SET statement.
B. The SESSREF= option is not specified in the DATA statement.
C. The DROP statement is not supported.
D. The RANUNI function is not supported.
Answer: D
2.Which CAS action is used to execute SQL queries in SAS CAS?
A. SQL
B. RUN
C. SUBMIT
D. EXECUTE
Answer: A
3.Which CAS statement is used to join two or more CAS tables based on a common key variable?
A. CASMERGE
B. CASTABLE
C. CASJOIN
D. CASCOMBINE
Answer: A
4.Which CAS action is used to perform data profiling to analyze the distribution of values in a CAS table?
A. cas.summarize
B. cas.profile
C. cas.statistics
D. cas.inspect
Answer: B
5.The following code is executed multiple times:
data casuser.eurorders;
set casuser.orders end=eof;
if Continent="Europe" then EurOrders+1;
if eof=1 then output;
keep EurOrders;
run;
proc print data=casuser.eurorders;
run;
Will the rows in the output table be sorted the same way for each execution and why?
2/8
Download SAS A00-420 Exam Dumps For Best Preparation
A. Yes, because only one row will be printed.
B. Yes, because by default CAS sorts the output table.
C. No, because each thread inserts a row into the casuser.eurorders table when it ends.
D. No, because the CAS Controller randomly reads the casuser.eurorders table when processing the proc
print.
Answer: C
6.Which SAS Viya component allows users to create and manage machine learning models?
A. SAS Data Preparation
B. SAS Studio
C. SAS Visual Analytics
D. SAS Model Studio
Answer: D
7.Which SAS Viya procedure is used for data summarization and descriptive statistics?
A. PROC GLM
B. PROC MEANS
C. PROC FREQ
D. PROC SQL
Answer: B
8.Which function is used to calculate the mean of a variable in SAS Viya?
A. AVG
B. MEAN
C. SUM
D. MEDIAN
Answer: B
9.Which DATA step statement is used to read data from an external file in CAS programming?
A. PROC SQL
B. SET statement
C. MERGE statement
D. OUTPUT statement
Answer: B
10.Which CAS action is used to calculate the correlation matrix for numeric variables in a CAS table?
A. cas.correlation
B. cas.covariance
C. cas.relationship
D. cas.association
Answer: A
11.The regnm format has been created and stored in an CAS format library.
Which program associates the format regnm with the region column in the orders table?
3/8
Download SAS A00-420 Exam Dumps For Best Preparation
A. proc casutil;
load data=work.orders casout="orders" outcaslib="public";
format region regnm.;
quit;
B. proc casutil;
load data=work.orders casout="orders" outcaslib="public"
format=yes;
format region regnm.;
quit;
C. proc casutil;
format region regnm.;
load data=work.orders casout="orders" outcaslib="public"
format=yes;
quit;
D. proc casutil;
format region regnm.;
load data=work.orders casout="orders" outcaslib="public";
quit;
Answer: D
12.Which CAS-enabled procedure is used to combine multiple CAS tables based on a common key
variable?
A. CASMERGE
B. CASCOMBINE
C. CASTABLE
D. CASEJOIN
Answer: A
13.Which variables must be included in the CAS table that stores DATA step code to be executed by the
dataStep.runCodeTable action?
A. PgmName
CASEngine
B. Code
TableName
C. Source
Name
D. DataStepSrc
ModelName
E. DataStepSrc
ModelName
Answer: D
14.Which CAS action is used to create a new CAS table based on specified conditions?
A. FILTER
4/8
Download SAS A00-420 Exam Dumps For Best Preparation
B. SELECT
C. WHERE
D. SUBSET
Answer: C
15.Which DATA step will NOT run in CAS?
A. data casuser.class;
input x;
datalines;
1
2
3
;
run;
B. data casuser.new;
x=1;
run;
C. data casuser.new;
set casuser.class;
x=((height*weight)+10)/(age**2)+round(100.9999);
run;
D. data casuser.new;
array test(*) weight height age (1 2 3);
do i=1 to dim(test);
put test(i)=;
end;
run;
Answer: A
16.What is the purpose of the LIBNAME statement in SAS Viya?
A. Defining a library or a location for SAS datasets
B. Declaring and initializing variables
C. Executing SQL queries
D. Controlling the flow of the program
Answer: A
17.Which PROC CASUTIL step suppresses error messages if the table is not found in-memory?
5/8
Download SAS A00-420 Exam Dumps For Best Preparation
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
18.Which data format should be used when saving a CAS table so that it will later load into CAS memory
the fastest?
A. sashdat
B. sas7bdat
C. csv
D. txt
Answer: A
19.In the following code, complete the PRINT statement to print only rows where column begins with
MPG:
proc cas;
simple.summary result=res / table={name="cars"};
resultTable = res.summary;
print <insert code segment here>;
run;
A. resultTable.where(column like 'MPG%')
B. resultTable.where("column like 'MPG%'")
C. resultTable / where("column like 'MPG%'")
D. resultTable / where(column like 'MPG%')
Answer: A
20.Which CAS-enabled procedure is used to import data into a CAS table?
A. CASLIB
B. CASIMPORT
C. CASDATA
D. CASTABLE
6/8
Download SAS A00-420 Exam Dumps For Best Preparation
Answer: B
21.Which CAS-enabled procedure is used for regression analysis and modeling?
A. PROC MEANS
B. PROC SQL
C. PROC FREQ
D. PROC GLM
Answer: D
22.Which PROC CASUTIL step correctly saves a CSV file in the casuser caslib and overwrites any files
with the same name?
A. proc casutil;
save casdata="employees" incaslib="casuser"
outcaslib="casuser" casout="out_employees.csv" replace;
quit;
B. proc casutil;
save casdata="employees" incaslib="casuser"
outcaslib="casuser" casout="out_employees.csv";
quit;
C. proc casutil;
save type="csv" casdata="employees" incaslib="casuser"
outcaslib="casuser" casout="out_employees";
quit;
D. proc casutil;
save type="csv" casdata="employees" incaslib="casuser"
outcaslib="casuser" casout="out_employees" replace;
quit;
Answer: B
23.Complete the following FedSQL code to convert the character variable markup to a numeric variable.
proc cas;
session mysess;
fedSql.execDirect /
query="create table casuser.cars_fedsql {options replace=true} as
select make, model, mpg_city, mpg_highway, <insert code segment here> as markup_N
from casuser.cars";
run;
A. put(markup,'best12.')
B. inputn(markup,'best12.')
C. cast(markup,'best12.')
D. input(markup,'best12.')
Answer: B
24.In SAS Viya, what is the purpose of the LIBNAME statement?
7/8
Download SAS A00-420 Exam Dumps For Best Preparation
A. To create a new library
B. To import external data
C. To assign a library reference
D. To delete a library
Answer: C
25.Which statement correctly creates a global caslib called mycas that is connected to the
/workshop/data location?
A. caslib mycas path="/workshop/data" global;
B. caslib path="/workshop/data" mycas global;
C. caslib path="/workshop/data" mycas promote;
D. caslib mycas path="/workshop/data" promote;
Answer: A
26.The dataPreprocess.impute action preforms data matrix (variable) imputation.
Which imputation methods can be used?
A. MIDRANGE, MODE, RANDOM, VALUE
B. MIDRANGE, MODE, RANDOM, CUSTOM
C. MODE, RANDOM, VALUE, CUSTOM
D. MIDRANGE, RANDOM, VALUE, CUSTOM
Answer: A
27.Which statement is true about SAS Viya?
A. It contains the SAS launcher server, which is the primary server for processing big data.
B. It supports only single-threaded DATA step processing.
C. It can employ multiple servers to execute programs.
D. Its primary interface for submitting programs is the SAS Windowing Environment.
Answer: C
28.Which CAS action is used to create a new CAS table by concatenating two or more existing CAS
tables?
A. cas.join
B. cas.concat
C. cas.combine
D. cas.merge
Answer: B
29.Which Compute Server system option prevents inadvertently moving large in-memory tables to the
Compute Server?
A. MAXDATA=
B. CASDATALIMIT=
C. NOCOMPUTE
D. MAXOBS=
Answer: B
8/8
Download