A00-420 Exam Dumps - SAS Viya Intermediate Programming
A00-420 Exam Dumps - SAS Viya Intermediate Programming
2. Which CAS action is used to merge two or more CAS tables based on common variables?
A. MERGE
B. LOAD
C. EXPORT
D. ALTER TABLE
Answer: A
4. Which CAS action is used to load data into the CAS environment?
A. LOAD
B. IMPORT
C. READ
D. INPUT
Answer: A
5. 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?
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
6. Which CAS action is used to recode the values of a categorical variable in a CAS table?
A. cas.remap
B. cas.modify
C. cas.recode
D. cas.transform
Answer: C
9. Which program will successfully load cars.csv from the casuser caslib data source to an in-
memory table named cars?
A. proc cas;
table.loadTable /
caslib="casuser"
path="cars.csv"
casout={caslib="casuser", name="cars"};
quit;
B. proc cas;
table.loadTable /
incaslib="casuser"
casdata="cars.csv"
outcaslib="casuser"
casout="cars";
quit;
C. proc cas;
table.loadTable /
incaslib="casuser"
casdata="/home/&sysuserid/casuser/cars.csv"
outcaslib="casuser"
casout="cars";
quit;
D. proc cas;
table.loadTable /
caslib="casuser"
path="/home/&sysuserid/casuser/cars.csv"
casout={caslib="casuser", name="cars"};
quit;
Answer: A
10. Which statement will display column name, type, label and format information for the
clientes table in the casuser caslib?
A. table.tableInfo /
table={caslib="casuser", name="clientes"};
B. table.columnInfo /
table={caslib="casuser", name="clientes"};
C. table.tableInfo /
caslib="casuser",
name="clientes";
D. table.columnInfo /
caslib="casuser",
name="clientes";
Answer: B
12. Which CAS action is used to retrieve a subset of rows and columns from a CAS table?
A. cas.fetch
B. cas.sample
C. cas.filter
D. cas.select
Answer: A
15. 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
17. In the space provided, enter the text for ensuring the table is available to any subsequent
CAS session.
table.loadTable / caslib="public", path="sales.xlsx",
casOut={caslib="public", name="sales",______=true};
Answer: promote
18. Which CAS statement is used to create a new column in a CAS table?
A. CASSET
B. CASCOMPUTE
C. CASTABLE
D. CASWHERE
Answer: B
19. Using the altertable action, which is the correct statement to rename the make column to
veh_make in a CAS table?
proc cas;
table.altertable /
caslib="casuser", name="cars",
<enter code
segment here>;
quit;
A. columns={name="make" = "veh_make"};
B. columns=[[name="make" , rename="veh_make"]];
C. columns={{rename="make" , name="veh_make"}};
D. columns={{name="make" , rename="veh_make"}};
Answer: D
20. Which CAS action is used to create a new CAS table based on specified conditions?
A. FILTER
B. SELECT
C. WHERE
D. SUBSET
Answer: C
21. What is the primary advantage of using CAS language programming in SAS?
A. Faster data processing
B. Improved visualization capabilities
C. Easier data exploration
D. Advanced statistical modeling techniques
Answer: A
22. Which PROC CASUTIL step suppresses error messages if the table is not found in-
memory?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
23. What CASL data type is created from the following assignment statement?
half = 1/2;
A. INT32
B. INT64
C. DOUBLE
D. DECIMAL
Answer: C
24. What is the file extension used for SAS Viya programs?
A. sas
B. py
C. sql
D. viya
Answer: A
26. Which CAS action is used to append rows to an existing CAS table?
A. APPEND
B. LOAD
C. EXPORT
D. ALTER TABLE
Answer: A
28. What is the primary purpose of using the DATA step in CAS programming?
A. Creating plots and graphs
B. Importing and exporting data
C. Performing complex statistical analyses
D. Transforming and manipulating data
Answer: D
31. When submitted, this program runs normally on the Compute Server and produces a cross-
tab report:
proc freq data=casuser.cars;
by descending origin;
table type*make / nocol
norow nopercent;
run;
What happens when this program is submitted instead?
proc freqtab data=casuser.cars;
by descending origin;
table type*make / nocol
norow nopercent;
run;
A. The program runs normally on the Compute Server and produces a cross-tab report.
B. The program runs normally on the CAS server and produces a cross-tab report.
C. The program produces an error indicating the DESCENDING option is not supported in the
BY statement.
D. The program produces an error indicating the NOPERCENT option is not supported in the
TABLE statement.
Answer: C
32. Which statement will show all available caslibs in the log?
A. caslib listall;
B. caslib all list;
C. caslib list;
D. caslib _all_ list;
Answer: D
34. 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
35. In the deduplication.deduplicate action, which parameter eliminates rows with duplicate
group-by variable values?
A. noUniqueKeys
B. noDuplicateKeys
C. groupBy
D. uniqueOut
Answer: B
36. Which CAS action is used to execute a DATA step program in SAS CAS?
A. DATA
B. RUN
C. SUBMIT
D. EXECUTE
Answer: C
37. Which CAS-enabled procedure is used to perform factor analysis on CAS tables?
A. CASFACTOR
B. CASANALYZE
C. CASSCORE
D. CASPROC
Answer: A
38. Which CAS action is used to execute SQL queries in SAS CAS?
A. SQL
B. RUN
C. SUBMIT
D. EXECUTE
Answer: A