exam code: a00-211 exam name: sas base programming · pdf filenumber : a00-211 passing score :...

59
http://www.gratisexam.com/ SAS Institute.Visualexams.A00-211.v2014-12-02.by.Elliott.66q Number : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 http://www.gratisexam.com/ Exam Code: A00-211 Exam Name: SAS Base Programming for SAS 9

Upload: leminh

Post on 31-Jan-2018

237 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

SAS Institute.Visualexams.A00-211.v2014-12-02.by.Elliott.66q

Number: A00-211Passing Score: 800Time Limit: 120 minFile Version: 30.5

http://www.gratisexam.com/

Exam Code: A00-211

Exam Name: SAS Base Programming for SAS 9

Page 2: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Exam A

QUESTION 1After a SAS program is submitted,thefollowing is written to the SAS log:

What issue generated the error in the log?

A. The syntax of the drop statement does not use an equals sign.B. There should have been commas between the variable names.C. The list of variables should have been enclosed in parentheses.D. A drop statement and a keep= data set option cannotboth be used at the same time.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 2Given the SAS data set WORK.PRODUCTS:

Page 3: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

How many variables does the WORK.REVENUE data set contain?

A. 2B. 3C. 4D. 6

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 3Given the SAS data set WORK.PRODUCTS:

Page 4: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

How many observations does the WORK.OUTDOOR data set contain?

A. 1B. 2C. 3D. 6

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 4The following SAS program is submitted:

http://www.gratisexam.com/

Page 5: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

What will the data set WORK.TEST contain?

Page 6: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 5Which statement is true concerning the SAS automatic variable _ERROR_?

Page 7: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. It cannot be used in an if/then condition.B. It cannot be used in an assignment statement.C. It can be put into a keep statement or keep= option.D. It is automatically dropped.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 6The following SAS program is submitted:

What is produced as output?

A. A file named test.csv that can only be opened in Excel.B. A text file named test.csv that can be opened in Excel or in any text editor.C. A text file named test.csv that can only be opened in a text editor.D. A file named test.csv that can only be opened by SAS.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 7The following SAS program is submitted:

Page 8: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

What is the value of the variable X?

A. the numeric value 0B. the character value "01011960"C. a missing value due to syntax errorsD. the step will not compile because ofthe character argument in the mdy() function.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 8The following SAS program is submitted:

If the value for the variable Jobcode is: PILOT2, what is the value of the variable Description?

A. ' ' (missing character value)B. UnknownC. Senior PilotD. SENIOR PILOT

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

Page 9: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Explanation:

QUESTION 9The following SAS program is submitted:

How will the Exam variable value be displayed in the FREQ procedure output?

A. FailB. PassC. 50.5D. (missing numeric value)

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 10Given the raw data record in the file phone.txt:

Page 10: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Which SAS statement completes the program and results in a value of "James Stevens" for the variable FullName?

A. FullName=CATX(' ',EmpFName,EmpLName);B. FullName=CAT(' ',EmpFName,EmpLName);C. FullName=EmpFName!!EmpLName;D. FullName=EmpFName + EmpLName;

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 11The following code was modified to generate the results further below:

The following results were generated to display only specific statistics and limit the decimals with the modification:

Page 11: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Which statement below was modified or added to generate the results above:

A. var Height / nobs min max mean maxdec=1;B. proc means data=SASHELP.CLASS maxdec=1 ;C. proc means data=SASHELP.CLASS min max mean maxdec=1;D. output nobs min max mean maxdec=1;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 12Given the contents of the raw data file 'EMPLOYEE.TXT'

Page 12: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Which SAS informat correctly completes the program?

A. date9B. mmddyy10C. ddmmyy10D. mondayyr10

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 13Which is a valid LIBNAME statement?

A. libname "_SAS_data_library_location_";B. libname mysasdata "_SAS_data_library_location_";C. libname sasdata "_SAS_data_library_location_";D. libname work "_SAS_data_library_location_";

Correct Answer: CSection: (none)Explanation

Page 13: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Explanation/Reference:Explanation:

QUESTION 14The following SAS program is submitted:

The program fails execution due to syntax errors. What is the cause of the syntax error?

A. An array cannot be referenced on a keep= data set option.B. The keep= data set option should be (keep=MonthSales*).C. An array can only be referenced in a KEEP statement not within a keep= data set option.D. The keep= data set option should be (keep=MonthSales).

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 15The following SAS program is submitted:

Which ODS statements inserted, respectively, in the two location indicated above creates a report stored in an html file?

Page 14: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 16The following SAS program is submitted:

http://www.gratisexam.com/

Page 15: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

What is the initial value of the variable Total in the listed program?

A. 0B. MissingC. The value of the first observations WagerateD. Cannot be determined from the information given

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 17The following SAS program is submitted:

Which statement is true about the output data set?

A. The type of the variable CharEmpid is numeric.B. The type of the variable CharEmpid is unknown.C. The type of the variable CharEmpid is character.D. The program fails to execute due to errors.

Correct Answer: DSection: (none)

Page 16: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Explanation

Explanation/Reference:Explanation:

QUESTION 18Given the SAS data set WORK.EMP_NAME:

Given the SAS data set WORK.EMP_DEPT:

The following program is submitted:

How many observations are in data set WORK.ALL after submitting the program?

A. 1B. 2C. 3D. 5

Correct Answer: BSection: (none)Explanation

Page 17: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Explanation/Reference:Explanation:

QUESTION 19Which statement specifies that records 1 through 10 are to be read from the raw data file customer.txt?

A. infile 'customer.txt' obs=1-10;B. input 'customer.txt' end=10;C. infile 'customer.txt' obs=10;D. input 'customer.txt' stop=10;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 20The following output is created by the FREQUENCY procedure:

Page 18: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Which TABLES statement was used to completed the following program that produced the output?

proc freq data=sales;

run;

A. tables region product;B. tables region,product;C. tables region by product;D. tables region*product;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 21Which of the following choices is an unacceptable ODS destination for producing output that can be viewed in Microsoft Excel?

A. MSOFFICE2KB. EXCELXPC. CSVALLD. WINXP

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 22The following SAS program is submitted:

Page 19: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

What is the value of the variable Prod in the output data set?

A. . (missing)B. 6C. 7D. Undetermined, infinite loop.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 23Given the SAS data set WORK.TEMPS:

The following program is submitted:

Which output is correct?

Page 20: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Page 21: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 24The following SAS program is submitted:

What is the value of the variable Prod in the output data set?

A. 6B. 7C. 8D. . (missing numeric)

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 25The following SAS program is submitted:

Page 22: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

What is the result?

A. The value of the variable Discount in the output data set is 2000.No messages are written to the SAS log.B. The value of the variable Discount in the output data set is 2000.A note that conversion has taken place is written to the SAS log.C. The value of the variable Discount in the output data set is missing.A note in the SAS log refers to invalid numeric data.D. The variable Discount in the output data set is set to zero.No messages are written to the SAS log.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 26Given the SAS data set WORK.ONE:

What value will SAS assign to Total?

A. 3B. 1.6C. 4.8D. The program fails to execute due to errors.

Correct Answer: B

Page 23: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 27The following program is submitted:

Why does the program fail?

A. The PAGENO option is invalid in the OPTIONS statement.B. The RUN statement is missing after the FORMAT procedure.C. The format name contains a period in the VALUE statement.D. The LABEL option is missing from the PROC PRINT statement.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 28

Page 24: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Consider the following data step:

The variable Count is created using a sum statement. Which statement regarding this variable is true?

A. It is assigned a value 0 after the data step begins execution.B. It is assigned a value of missing after the data step begins execution.C. It is assigned a value 0 at compile time.D. It is assigned a value of missing at compile time.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 29The following output is created by the FREQUENCY procedure:

Page 25: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Which TABLES option(s) would be used to eliminate the row and column counts and just see the frequencies and percents?

A. norowcount nocolcountB. freq percentC. norow nocolD. nocounts

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 30The following SAS program is submitted:

Page 26: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

The SAS data set WORK.SALARY is currently ordered by Gender within Department. Which inserted code will accumulate subtotals for each Gender withinDepartment?

A. GenderB. DepartmentC. Gender DepartmentD. Department Gender

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 31The following SAS program is submitted:

What new variables are created?

A. Difcount1, Difcount2 and Difcount3B. Diff1, Diff2 and Diff3C. Janpt, Febpt, and MarptD. Patients1, Patients2 and Patients3

Correct Answer: A

Page 27: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 32The SAS data set Fed.Banks contains a variable Open_Date which has been assigned a permanent label of "Open Date". Which SAS program temporarilyreplaces the label "Open Date" with the label "Starting Date" in the output?

http://www.gratisexam.com/

Page 28: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 33Which statement describes a characteristic of the SAS automatic variable _ERROR_?

A. The _ERROR_ variable maintains a count of thenumber of data errors in a DATA step.B. The _ERROR_ variable is added to the program datavector and becomes part of the data set being created.C. The _ERROR_ variable can only be used in expressionsin the DATA step.D. The _ERROR_ variable contains the number of theobservation that caused the data error.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 34Given the SAS data set WORK.ONE:

Page 29: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

The following SAS program is submitted:

Which report is produced?

Page 30: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: B

Page 31: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 35Which step displays a listing of all the data sets in the WORK library?

A. proc contents lib=WORKrun;

B. proc contents lib=WORK.all;run;

C. proc contents data=WORK._all_;run;

D. proc contents data=WORK _ALL_;run;

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 36Consider the following data step:

The computed variables City and State have their values assigned using two different methods, a RETAIN statement and an Assignment statement. Whichstatement regarding this program is true?

A. The RETAIN statement is fine, but the valueof City will be truncated to 8 bytes as the LENGTHstatement has been omitted.B. Both the RETAIN and assignment statement arebeing used to initialize new variables and are equallyefficient. The method used is only a matter ofprogrammer

preference.

Page 32: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

C. The assignment statement is fine, but thevalue of City will be truncated to 8 bytes as the LENGTHstatement has been omitted.D. City's value will be assigned one time, State'svalue 5 times.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 37The following SAS program is submitted:

How many observations are written to the WORK.SALES data set?

A. 0B. 1C. 5D. 60

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 38The following SAS program is submitted:

Page 33: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Assuming that SASUSER.ONE exists, how many temporary and permanent SAS data sets are created?

A. 2 temporary and 1 permanent SAS data sets are createdB. 3 temporary and 2 permanent SAS data sets are createdC. 2 temporary and 2 permanent SAS data sets are createdD. there is an error and no new data sets are created

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 39The following program is submitted:

Which of the following is true concerning the submitted program?

A. The descending option applies to the variable Code.B. The variable Code is sorted by ascending order.C. The PSORT data set is stored in the SASUSER library.D. The descending option applies to the Date and Cost variables.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 40The following SAS program is submitted:

Page 34: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Which statement is true about the output data set?

A. The label of the variable Jobcode is Job (only the first word).B. The label of the variable Jobcode is Job Desc (only the first 8 characters).C. The label of the variable Jobcode is Job Description.D. Labels can only be defined in PROC steps. The program fails to executedue to errors and the data set is not created.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 41Given the SAS data set WORK.ONE:

Andthe SAS data set WORK.TWO:

The following program is submitted:

Page 35: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

What is the first observation in the SAS data set WORK.BOTH?

A. Option AB. Option BC. Option CD. Option D

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

Page 36: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

QUESTION 42The following SAS program is submitted:

How many raw data records are read during each iteration of the DATA step?

A. 1B. 2C. 3D. 4

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 43Given the SAS data set WORK.ONE:

The following SAS program is submitted:

Page 37: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

The data set WORK.TWO is created, where Day would be 1 for Sunday, 2 for Monday, 3 for Tuesday, ... :

Which expression successfully completed the program and creates the variable DAY?

A. day(BeginDate)B. weekday(BeginDate)C. dayofweek(BeginDate)D. getday(BeginDate,today())

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 44The Excel workbook QTR1.XLS contains the followingthree worksheets:

JAN

FEB

MAR.

Which statement correctly assigns a library reference to the Excel workbook?

A. libname qtrdata 'qtr1.xls';B. libname 'qtr1.xls' sheets=3;C. libname jan feb mar 'qtr1.xls';D. libname mydata 'qtr1.xls' WORK.sheets=(jan,feb,mar);

Correct Answer: A

Page 38: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 45The following SAS program is submitted:

What variable X contains what value?

A. the numeric value 0B. the character value "01Jan1960"C. the date value 01011960D. the code contains a syntax error and does not execute.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 46The following SAS program is submitted:

What types of variables are DayOfMonth, MonthOfYear, and Year?

A. DayOfMonth, Year, and MonthOfYear are character.B. DayOfMonth, Year, and MonthOfYear are numeric.

Page 39: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

C. DayOfMonth and Year are numeric. MonthOfYear is character.D. DayOfMonth, Year, and MonthOfYear are date values.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 47Consider the data step:

Which of the following assignment statements for variable group are functionally equivalent to the original statement used in the above data step?

A. if Age not in(15,16) then Group=1; else Group=2;B. if (Age NE 16) or (Age NE 15) then Group=1; else Group=2;C. where Age not between 15 and 16 then Group=1; else Group=2;D. both A or C will work.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 48Given the following raw data records in TEXTFILE.TXT:

Page 40: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

The following output is desired:

Which SAS program correctly produces the desired output?

Page 41: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option A

Page 42: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

B. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 49Given the following raw data records in DATAFILE.TXT:

Which output is correct based on the submitted program?

Page 43: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 50

Page 44: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Given the SAS data set WORK.ORDERS:

The variable Order_id is numeric; Customer is character; and Ship_date is a numeric containing a SAS date value.

A programmer would like to create a new variable called Note, that shows a character value with the Order_id and Ship_date shown with a date9. format. For thefirst observation, Note would look like the following: "Order 9341 shipped on 02FEB2009".

Which of the following statement will correctly create the value and assign it to Note?

A. note=catx(' ','Order',order_id,'shipped on',input(ship_date,date9.));B. note=catx(' ','Order',order_id,'shipped on',char(ship_date,date9.));C. note=catx(' ','Order',order_id,'shipped on',transwrd(ship_date,date9.));D. note=catx(' ','Order',order_id,'shipped on',put(ship_date,date9.));

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 51Given the following data step:

Page 45: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

After data step execution, what will data set WORK.GEO contain?

Page 46: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: ASection: (none)Explanation

Explanation/Reference:

Page 47: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Explanation:

QUESTION 52The SAS data set named WORK.SALARY contains 10 observations for each department, and is currently ordered by Department. The following SAS program issubmitted:

Which statement is true?

A. The by statement in the DATA step causes a syntax error.B. The statement Payroll+(MonthlyWageRate*12); in the datastep causes a syntax error.C. The values of the variable Payroll represent the monthlytotal for each department in the WORK.SALARY data set.D. The values of the variable Payroll represent a monthlytotal for all values of WAGERATE in the WORK.SALARY data set.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 53Given the SAS data set SASDATA.TWO:

The following SAS program is submitted: data

Page 48: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

What is the result?

A. data set SASUSER.ONE has 5 observationsdata set SASUSER.TWO has 5 observationsdata set WORK.OTHER has 3 observations

B. data set SASUSER.ONE has 2 observationsdata set SASUSER.TWO has 2 observationsdata set WORK.OTHER has 1 observations

C. data set SASUSER.ONE has 2 observationsdata set SASUSER.TWO has 2 observationsdata set WORK.OTHER has 5 observations

D. No data sets are output.The DATA step fails execution due to syntax errors.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 54A user-defined format has been created using the FORMAT procedure. How is it stored?

A. in a SAS catalogB. in a memory resident lookup tableC. in a SAS data set in the WORK libraryD. in a SAS data set in a permanent SAS data library

Correct Answer: ASection: (none)Explanation

Page 49: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Explanation/Reference:Explanation:

QUESTION 55The following program is submitted:

Which statement best describes the output from the submitted program?

A. The output displays only a list of the SAS data setsthat are contained in the WORK library.B. The output displays only the contents of the SAS data setsthat are contained in the WORK library.C. The output displays only the variables in the SAS data setsthat are contained in the WORK library.D. The output displays a list of the SAS data sets that arecontained in the WORK library and displays their contents.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 56You're attempting to read a raw data file and you see the following messages displayed in the SAS Log:

What does it mean?

A. A compiler error, triggered by an invalid characterfor the variable Salary.B. An execution error, triggered by an invalid characterfor the variable Salary.C. The 1st of potentially many errors, this one occurringon the 4th observation.

Page 50: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

D. An error on the INPUT statement specification forreading the variable Salary.

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 57Given the following raw data records:

The following output is desired:

Which SAS program correctly reads in the raw data?

Page 51: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 58Given the contents of the raw data file TYPECOLOR.DAT:

Page 52: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

The following SAS program is submitted:

What are the values of the variables Type and Color?

A. Type=daisy, Color=yellowB. Type=daisy, Color=wC. Type=daisy, Color=daisyyellowD. Type=daisy, Color=

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 59The data set WORK.REALESTATE has the variable LocalFee with a format of 9. and a variable CountryFee with a format of 7.;

The following SAS program is submitted:

What are the formats of the variables LOCALFEE and COUNTRYFEE in the output data set?

Page 53: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. LocalFee has format of 9. and CountryFee has a format of 7.B. LocalFee has format of 9. and CountryFee has a format of percent7.2C. Both LocalFee and CountryFee have a format of percent7.2D. The data step fails execution; there is no format for LocalFee.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 60Given the data set WORK.EMPDATA:

http://www.gratisexam.com/

Which one of the following where statements would display observations with job titles containing the word 'Manager'?

A. where substr(Job_Title,(length(Job_Title)-6))='Manager';B. where upcase(scan(Job_Title,-1,' '))='MANAGER';C. where Job_Title='% Manager ';D. where Job_Title like '%Manager%';

Correct Answer: D

Page 54: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 61Given the following code:

How many observations will be displayed?

A. 11B. 15C. 10 or fewerD. 11 or fewer

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 62Which of the following programs correctly invokes the DATA Step Debugger?

Page 55: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

A. Option AB. Option BC. Option CD. Option D

Correct Answer: CSection: (none)Explanation

Explanation/Reference:Explanation:

Page 56: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

QUESTION 63The SAS data set WORK.ONE contains a numeric variable named Num and a character variable named Char:

The following SAS program is submitted:

What is output?

A. Option A

Page 57: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

B. Option BC. Option CD. Option D

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 64Which step sorts the observations of a permanent SAS data set by two variables and stores the sorted observations in a temporary SAS data set?

A. proc sort data=SASUSER.EMPLOYEES out=EMPSORT;by Lname, Fname;run;

B. proc sort data=SASUSER.EMPLOYEES out=EMPSORT;by Lname Fname;run;

C. proc sort data=SASUSER.EMPLOYEES out=TEMPORARY.EMPSORT; by Lname, Fname;run;

D. proc sort data=SASUSER.EMPLOYEES out=TEMPORARY.EMPSORT; by Lname Fname;run;

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 65Consider the following data step:

Page 58: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

In filtering the values of the variable X in data set WORK.OLD, what new value would be assigned to X if its original value was a missing value?

A. X would get a value of 1.B. X would get a value of 3.C. X would retain its original value of missing.D. This step does not run because of syntax errors.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Explanation:

QUESTION 66The Excel workbook REGIONS.XLS contains the following four worksheets:

EAST

WEST

NORTH

SOUTH

The following program is submitted:libname MYXLS 'regions.xls';

Which PROC PRINT step correctly displays the NORTH worksheet?

A. proc print data=MYXLS.NORTH.XLS;run;

B. proc print data=MYXLS.NORTH$;run;

Page 59: Exam Code: A00-211 Exam Name: SAS Base Programming · PDF fileNumber : A00-211 Passing Score : 800 Time Limit : 120 min File Version : 30.5 Exam Code: A00-211 Exam Name: SAS Base Programming

http://www.gratisexam.com/

C. proc print data=MYXLS.'NORTH'e;run;

D. proc print data=MYXLS.'NORTH$'n;run;

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Explanation:

http://www.gratisexam.com/