SAS Base Programming For SAS 9
SAS Base Programming For SAS 9
Item 1
The following program is submitted.
data test;
input name $ age;
cards;
John +35
;
run;
Which values are stored in the output data set?
A. name age
B. ---------------------
C. John 35
D. name age
E. ---------------------
F. John (missing value)
G. name age
H. ---------------------
I. (missing value) (missing value)
J. The DATA step fails execution due to data errors.
correct_answer = "A"
Item 2
The following observation is stored in a SAS data set named EMPLOYEES:
LNAME FNAME JOBCODE
---------------------------------
Whitley Sam na1
If the DATA step below is executed, what will be the value of the variable
JOBDESC in the output SAS data set when this observation is processed:
data navigate;
set employees;
if jobcode = 'NA1' then jobdesc = 'Navigator';
run;
A. navigator
B. Navigator
C. NAVIGATOR
D. a missing value
correct_answer = "D"
Item 3
The following SAS program is submitted:
proc format;
value score 1 - 50 = 'Fail'
51 - 100 = 'Pass';
run;
Which one of the following PRINT procedure steps correctly applies the format?
A. proc print data = sasuser.class;
B. var test;
C. format test score;
D. run;
E. proc print data = sasuser.class;
F. var test;
G. format test score.;
H. run;
I. proc print data = sasuser.class format = score;
J. var test;
K. run;
L. proc print data = sasuser.class format = score.;
M. var test;
N. run;
correct_answer = "B"
Item 4
Given the following DATA step:
data loop;
x = 0;
do index = 1 to 5 by 2;
x = index ;
end;
run;
Upon completion of execution, what are the values of the variables X
and INDEX in the SAS data set named LOOP?
A. x = 3, index = 3
B. x = 3, index = 4
C. x = 5, index = 5
D. x = 5, index = 6
E. x = 5, index = 7
correct_answer = "E"
Item 5
Given that the data set named ONE contains 10 observations and the data set
named TWO contains 10 observations, how many observations will be contained
in the data set named COMBINE that is created in the following DATA step?
data combine;
set one two;
run;
A. 10
B. 20
C. 0, the DATA step will fail due to syntax errors
D. 10 to 20, depending on how many observations match
correct_answer = "B"
Item 1
Given the following SAS data sets ONE and TWO:
A.
B.
C.
D.
correct_answer = "D"
Item 2
Given the following SAS data sets ONE and TWO:
The following SAS program is submitted creating the output table THREE:
data three;
merge one (in = in1) two (in = in2);
by num;
run;
Which one of the following SQL programs creates an equivalent SAS data set
THREE?
A. proc sql;
B. create table three as
C. select *
D. from one full join two
E. where one.num = two.num;
F. quit;
G.
H. proc sql;
I. create table three as
J. select coalesce(one.num, two.num)
K. as NUM, char1, char2
L. from one full join two
M. where one.num = two.num;
N. quit;
O. proc sql;
P. create table three as
Q. select one.num, char1, char2
R. from one full join two
S. on one.num = two.num;
T. quit;
U. proc sql;
V. create table three as
W. select coalesce(one.num, two.num)
X. as NUM, char1, char2
Y. from one full join two
Z. on one.num = two.num;
AA. quit;
correct_answer = "D"
Item 3
The following SAS program is submitted:
%let type = RANCH;
proc sql;
create view houses as
select *
from sasuser.houses
where style = "&type";
quit;
Which one of the following functions on the WHERE clause resolves the current
value of the macro variable TYPE?
A. GET
B. SYMGET
C. %SYMGET
D. &RETRIEVE
correct_answer = "B"
Item 4
The SAS data set SASDATA.SALES has a simple index on the variable DATE
and a variable named REVENUE with no index.
In which one of the following SAS programs is the DATE index considered for
use?
A. proc print data = sasdata.sales;
B. by date;
C. run;
D. proc print data = sasdata.sales;
E. where month(date) = 3;
F. run;
G. data march;
H. set sasdata.sales;
I. if '01mar2002'd < date < '31mar2002'd;
J. run;
K. data march;
L. set sasdata.sales;
M. where date < '31mar2002'd or revenue > 50000;
N. run;
correct_answer = "A"
Item 1
Open the diagram labeled Practice A within the project labeled Practice A.
Perform the following in SAS Enterprise Miner 5.2:
correct_answer = "C" You must change the clustering method to average and
run the cluster node first. Select view results and look in the output window and
view the Variable Importance results.
A. 5.00
B. 14.69
C. 5862.76
D. 67409.93
correct_answer = "B" Run the diagram flow and view the results. From the
results window, select View -> Summary Statistics -> CCC Plot and mouse over
where the data point and the line intersect. This will display the CCC statistic.
Item 2
Use this project to answer the next questions. (Note: only 2 of 7 questions are
displayed for this example)
What is the mean credit card balance (CCBal) of the customers with a variable
annuity?
A. $0.00
B. $8,711.65
C. $9,586.55
D. $11,142.45
correct_answer = "D" You can use a Stat Explore Node and view the output for
the Descriptive Statistics for CCBal by level of the target variable.
Item 1
The location of the repository manager physical files can be found in:
correct_answer = "B"
Item 2
Every SAS platform implementation includes:
correct_answer = "A"
Item 3
Which procedure allows a platform administrator to update table metadata?
A. METAUPDATE_RULE
B. METASELECT
C. METATABLE
D. METALIB
correct_answer = "D"
Item 4
Which statement regarding pre-assigned libraries is true?
correct_answer = "C"
Item 5
A platform administrator needs to retrieve from the metadata a complete
LIBNAME statement including the user ID and password.
correct_answer = "D"
Item 6
By default, which groups have WriteMetadata on the Foundation repository?
A. PUBLIC
B. SASUSERS
C. ADMINISTRATORS ONLY
D. SAS SYSTEM SERVICES ONLY
correct_answer = "B"
Item 7
Given the following authorization settings for Library Sales2:
correct_answer = "C"
Item 8
Which statement is FALSE regarding the WriteMemberMetadata (WMM)
permission?
correct_answer = "D"
Item 9
Content has been exported from a SAS 9.1.3 environment into a SAS 9.2
development environment. After the export, the platform administrator attempts
to promote an object from the SAS 9.2 development environment into a
production environment.
What will be the result of this promotion attempt?
A. The promotion will not be allowed because objects from SAS 9.1.3 cannot
be promoted to SAS 9.2.
B. The promotion will not be allowed because objects in a development
environment cannot be promoted to a production environment.
C. The promotion will be allowed assuming the object type is allowed for
promotion.
D. The promotion will not be allowed because objects exported from a
previous environment cannot be promoted.
correct_answer = "C"
Item 1
Which of the following servers is NOT a part of the platform for SAS Business
Analytics server tier?
correct_answer = "D"
Item 2
Which products are needed on the local host in order to access data from an MS
Access Database using an ODBC Data Source name?
correct_answer = "D"
Item 3
Which statement is true regarding external files?
A. External file objects are accessed with SAS INFILE and FILE statements.
B. External files contain only one record per line.
C. External files can be used as input but not as outputs in SAS Data
Integration Studio jobs.
D. SAS can only work with Blank, Comma, Semicolon and Tab as delimiters
in external files.
correct_answer = "A"
Item 4
Within SAS Data Integration Studio's SQL Join transformation, the option to turn
on debug is located in which Properties pane?
A. Select Properties
B. Create Properties
C. SQL Join Properties
D. Job Properties
correct_answer = "C"
Item 5
Which SAS Data Integration Studio reports, generated as external files, can be
stored as document objects within metadata?
correct_answer = "C"
Item 6
You want to create a job to extract only the rows that contain information about
female employees from a table that contains information about both male and
female employees. The new table should have observations in ascending order
of age. Refer to the job flow diagram in the exhibit. Where would you set the
options to filter and sort the data?
A. Where tab and Group By tab
B. Where tab and Order By tab
C. Where tab and Parameters tab
D. Group By tab and Parameters tab
correct_answer = "B"
Item 7
Within SAS Data Integration Studio's Table Loader transformation, which load
style choice does NOT exist?
A. Delete where
B. Append to Existing
C. Replace
D. Update/Insert
correct_answer = "A"
Item 8
In SAS Data Integration Studio, a business key can be defined in the properties
of which transformation?
A. Data Validation
B. SQL Join
C. Lookup
D. SCD Type 2 Loader
correct_answer = "D"
Item 1
When opening a registered SAS data file into a Microsoft Excel Worksheet, a
user has the option to sort the data.
Which application performs the sort and where does the sort occur?
correct_answer = "A"
Item 2
When can you add a stored process as a data source to an information map?
A. anytime
B. when at least one table is selected as a data source
C. when at least one OLAP cube is selected as a data source
D. once an application server has been selected
correct_answer = "B"
Item 3
Refer to the exhibit.
If the "Group" filter is applied to the map, how will it affect the data?
A. All rows will be returned for any group that the user is a member of.
B. Only rows that belong to the first group are returned.
C. All rows will be returned for PUBLIC group only.
D. All rows matching the group identity login are returned.
correct_answer = "A"
Item 4
A SAS data set is used as a data source for a SAS BI Dashboard data model.
A. DATA Step
B. PROC SQL
C. a SQL/JDBC query
D. MDX
correct_answer = "C"
Item 5
Refer to the exhibit.
correct_answer = "C"
Item 6
In a stored process, when using a range prompt named DateRange, which
macro variables would you use in your SAS code?
correct_answer = "C"
Item 7
Upon initial install, all of the capabilities in the 'Web Report Studio: Report
Creation' role are also included in which role?
Item 8
A content developer would like to create a group of cascading prompts to use in
multiple reports without recreating the prompts for each report.
correct_answer = "D"
Item 9
A SAS Information Map with a SAS OLAP Cube as a data source can be built
from which of the following?
correct_answer = "D"
Item 10
Which statement is true regarding connection profiles used with the SAS platform
applications?
A. Each SAS platform application must have its own connection profile.
B. Connection profiles are stored on the server machine.
C. Connection profiles are stored on the machine where the SAS application
is installed.
D. All SAS platform applications share one connection profile.
correct_answer = "C"