Uploaded by neilpicolet

A00-420 SAS Viya Programming Specialist Exam Questions

advertisement
Pass SAS Institute A00-420 Exam with Real Questions
SAS Institute A00-420 Exam
SAS Viya Intermediate Programming
https://www.passquestion.com/A00-420.html
35% OFF on All, Including A00-420 Questions and Answers
Pass SAS Institute A00-420 Exam with PassQuestion A00-420
questions and answers in the first attempt.
https://www.passquestion.com/
1 / 10
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 / 10
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 / 10
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 / 10
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 / 10
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 / 10
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 / 10
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 / 10
30.Which SQL clause is used to filter rows in a CAS table based on specified conditions?
A. SELECT
B. FROM
C. WHERE
D. GROUP BY
Answer: C
31.Which CAS-enabled procedure is used to apply user-defined formats to variables?
A. CASUTIL
B. CASTABULATE
C. CASFORMAT
D. CASPROC
Answer: B
32.Which SAS Viya procedure is used for statistical modeling and regression analysis?
A. PROC GLM
B. PROC MEANS
C. PROC FREQ
D. PROC SQL
Answer: A
33.Which statement about the CASL language is true?
A. All CAS-enabled procedures are converted to CASL behind the scenes to run in CAS.
B. CASL runs actions on both the SAS Compute Server and in CAS.
C. Actions in CASL are grouped into PROCs, and optional information is provided with parameters.
D. CASL code is submitted to the CAS server using PROC CASUTIL.
Answer: A
34.Which PROC MDSUMMARY step produces results?
A. proc mdsummary data=casuser.orders;
var profit;
output out=casuser.sumorders;
run;
B. proc mdsummary data=casuser.orders;
var profit;
out casuser.sumorders;
run;
C. proc mdsummary data=casuser.orders;
var profit / out=casuser.sumorders;
run;
D. proc mdsummary data=casuser.orders;
var profit;
run;
9 / 10
Answer: A
35.Which CAS action is used to calculate the total count, distinct count, and missing count for variables in
a CAS table?
A. cas.count
B. cas.unique
C. cas.missing
D. cas.summary
Answer: A
36.Which CAS action is used to validate the integrity of relationships between variables in a CAS table?
A. cas.integrity
B. cas.relationship
C. cas.validate
D. cas.link
Answer: B
37.How can you view the contents of a CAS table?
A. Using the CASLIB action
B. Using the LOAD action
C. Using the FETCH action
D. Using the TABLE action
Answer: D
38.Complete the SAS program below to generate a table named cost_cont in the casuser caslib that
contains the statistics for each value of continent.
proc mdsummary data=casuser.orders;
var cost;
groupby continent /_______;
run;
Answer: casuser.cost_cont
39.What is the purpose of the SAS Explorer in SAS Studio?
A. To manage and organize SAS files and folders
B. To visualize data in graphical format
C. To write and execute SAS programs
D. To perform data cleaning and transformation
Answer: A
10 / 10
Download