Escolar Documentos
Profissional Documentos
Cultura Documentos
QUESTION NO: 1
The SAS data set SASUSER.HOUSES contains a variable PRICE which has been assigned a
permanent label of Asking Price. Which SAS program temporarily replaces the label Asking
Price with the label Sale Price in the output?
Answer: C
Explanation:
QUESTION NO: 2
data work.empsalary;
run;
The SAS data set WORKPEOPLE has 5 observations, and the data set WORKMONEY has 7
observations. How many observations will the data set WORK.EMPSALARY contain?
A. 0
B. 5
C. 7
D. 12
Answer: A
Explanation:
www.braindumps.com 2
SAS Institute A00-211 Exam
QUESTION NO: 3
data work.accounting;
jobcode = FA1;
length jobcode $ 8;
run;
A. 3
B. 5
C. 7
D. 8
Answer: B
Explanation:
QUESTION NO: 4
SASDATA TWO
XY
----
52
31
56
www.braindumps.com 3
SAS Institute A00-211 Exam
data sasuser.one two sasdata.three;
run;
Answer: A
Explanation:
QUESTION NO: 5
run;
www.braindumps.com 4
SAS Institute A00-211 Exam
Which footnote(s) is/are displayed in the report?
A. All Products
B. Sales Report for Last Month All Products
C. All Products All Regions All Figures in Thousands of Dollars
D. Sales Report for Last Month All Products All Regions All Figures in Thousands of Dollars
Answer: B
Explanation:
QUESTION NO: 6
----|----10---|----20---|----30
Printing 750
data bonus;
infile dept;
run;
Which SAS statement completes the program and results in a value of Printing750 for the
DEPARTMENT variable?
Answer: D
Explanation:
www.braindumps.com 5
SAS Institute A00-211 Exam
QUESTION NO: 7
data one;
run;
data one;
set one;
Answer: D
Explanation:
QUESTION NO: 8
data work.sets;
prod + 1;
end;
run;
What is the value of the variable PROD in the output data set?
A. 6
B. 7
www.braindumps.com 6
SAS Institute A00-211 Exam
C. 8
D. (missing numeric)
Answer: B
Explanation:
QUESTION NO: 9
The SAS data sets WORK.EMPLOYEE and WORK.SALARY are shown below:
WORK.EMPLOYEE WORK.SALARY
Dan 25000
data work.empdata;
by fname;
totsal + salary;
run;
Which one of the following statements completes the merge of the two data sets by the FNAME
variable?
A. merge work.employee
work.salary (fname = name);
B. merge work.employee
work.salary (name = fname);
C. merge work.employee
work.salary (rename = (fname = name));
D. merge work.employee
work.salary (rename = (name = fname));
Answer: D
Explanation:
www.braindumps.com 7
SAS Institute A00-211 Exam
QUESTION NO: 10
Which program displays a listing of all data sets in the SASUSER library?
Answer: D
Explanation:
QUESTION NO: 11
by descending fname;
by descending fname;
data work.empdata;
merge work.employee
work.salary;
by fname;
run;
www.braindumps.com 8
SAS Institute A00-211 Exam
Answer: D
Explanation:
QUESTION NO: 12
data work.sales;
do year = 1 to 5;
do month=1 to 12;
x+1;
output
end;
end;
run;
How many observations are written the WORK SALES data set?
A. 0
B. 1
C. 5
D. 60
Answer: D
Explanation:
QUESTION NO: 13
----I----10---I----20---I----30
son Travis,
www.braindumps.com 9
SAS Institute A00-211 Exam
Obs relation firstname
1 son Travis
A. data family ( dIm = ,); infile tile specification; input relation $ firstname $; run;
B. options dIm = ,; data family; infile file specification; input relation $ firstname $; run;
C. data family; infile file specification dIm = ,; input relation $ firstname $; run;
D. data family; infile file specification; input relation $ firstname $ / dim = ,; run;
Answer: C
Explanation:
QUESTION NO: 14
AGES
AGE
---------
The variable AGE contains character values. The following SAS program is submitted:
data subset;
set ages;
run;
How many observations are written out to the data set SUBSET?
A. 0
B. 1
C. 2
D. 3
Answer: A
Explanation:
www.braindumps.com 10
SAS Institute A00-211 Exam
QUESTION NO: 15
PRICES
prodid price
K12S5.10producttype
NETWORKsales
15returns
B132S 2.34HARDWARE30010
R18KY21.29SOFTWARE255
3KL8BY 6.37HARDWARE12515
DY65DW 5.60HARDWARE455
DGTY23 4.55HARDWARE672
if price le 5.00;
run;
www.braindumps.com 11
SAS Institute A00-211 Exam
A. 0
B. 2
C. 3
D. 4
Answer: B
Explanation:
QUESTION NO: 16
data work.accounting;
set work.department;
jobcode=FAl;
run;
The WORK.DEPARTMENT data set contains a character variable named JOBCODE with a length
of 5. What is the result?
Answer: B
Explanation:
QUESTION NO: 17
Which ODS statement option terminates output being written to an HTML rile?
A. END
B. QUIT
C. STOP
D. CLOSE
www.braindumps.com 12
SAS Institute A00-211 Exam
Answer: D
Explanation:
QUESTION NO: 18
The SAS data set PETS is sorted by the variables TYPE and BREED.
sum number;
run;
Answer: A
Explanation:
QUESTION NO: 19
data work.passengers;
if OrigPassengers = . then'
OrigPassengers = 100;
TransPassengers = 100;
OrigPassengers = .;
www.braindumps.com 13
SAS Institute A00-211 Exam
TotalPassengers = sum (OrigPassengers, TransPassengers) +0;
run;
What is the value of the TOTALPASSENGERS variable in the output data set?
A. 0
B. 100
C. 200
D. (missing numeric value)
Answer: B
Explanation:
QUESTION NO: 20
PRICES
Prodid priceproducttypesalesreturns
K1255.10NETWORK152
B132S 2.34HARDWARE30010
R18KY2 1.29SOFTWARE255
3KL8BY 6.37HARDWARE12515
DY65DW 5.60HARDWARE455
DGTY23 4.55HARDWARE672
run;
www.braindumps.com 14
SAS Institute A00-211 Exam
if producttype = HARDWARE then output hware; else if producttype = NETWORK then output
run;
A. 0
B. 2
C. 3
D. 4
Answer: D
Explanation:
QUESTION NO: 21
A. 0
B. 1
C. 5
D. 60
Answer: B
Explanation:
QUESTION NO: 22
www.braindumps.com 15
SAS Institute A00-211 Exam
The program fails execution due to syntax errors. What is the cause of the syntax error?
Answer: B
Explanation:
QUESTION NO: 23
EMPLOYEES
NAME SALARY
-------- ------------
Innis60000
Jolli50000
Ellis55000
Liu45000
run;
www.braindumps.com 16
SAS Institute A00-211 Exam
A. Liu only
B. Innis and Ellis only
C. Innis, Ellis, and Liu only
D. Innis, Jolli, Ellis, and Liu
Answer: A
Explanation:
QUESTION NO: 24
ONE
ObsDte
-------------
109JAN2005
212JAN2005
data two;
set one;
run;
TWO
ObsDteDay
109JAN20051
12JAN20054
Which expression successfully completed the program and created the variable DAY?
www.braindumps.com 17
SAS Institute A00-211 Exam
A. day(dte)
B. weekday(dte)
C. dayofweek(dte)
D. datdif(dte,01jan2005d,act/act)
Answer: B
Explanation:
QUESTION NO: 25
Obsstylebedroomsbathspricesqteetstreet
1CONDO21.5800501200MAIN
2CONDO32.5793501300ELM
3CONDO42.51271501400OAK
4CONDO22.01107001100FIFTH
5TWOSTORY43.01072502100SECOND
6TWOSTORY21.0556501600WEST
7TWOSTORY21.0692501450NORTH
6TWOSTORY42.5102950 2000SOUTH
www.braindumps.com 18
SAS Institute A00-211 Exam
The following SAS program is submitted:
title;
run;
styleprice
-------------
CONDO$79,700
TWOSTORY$62550
Which DEFINE statement completes the program and produces the desired output?
Answer: C
Explanation:
QUESTION NO: 26
WORK.AWARDS
FNAMEPOINTSMONTH
----------------------------------
www.braindumps.com 19
SAS Institute A00-211 Exam
Amy24
Amy17
Gerard33
Wang33
Wang112
Wang18
run;
www.braindumps.com 20
SAS Institute A00-211 Exam
Gerard33
Amy17
Amy24
Answer: D
Explanation:
QUESTION NO: 27
data work.new;
set temp.jobs;
mdate = month(newdate);
ddate = weekday(newdate);
run;
The variable NEWDATE contains the SAS date value for April 15. 2005. What output is produced
if April 15, 2005 falls on a Friday?
Answer: B
Explanation:
www.braindumps.com 21
SAS Institute A00-211 Exam
QUESTION NO: 28
The contents of the raw data file PRODUCT are listed below:
--------10-------20-------30
24613 $25.31
data inventory;
infile 'product';
run;
A. 25.31
B. $25.31
C. . (missing numeric value)
D. No value is stored as the program fails to execute due to errors.
Answer: C
Explanation:
QUESTION NO: 29
Answer: D
Explanation:
www.braindumps.com 22
SAS Institute A00-211 Exam
QUESTION NO: 30
data test;
set chemists;
jobcode = Chem2
run;
JOBCODE
-------------
chem2
A. chem2
B. Unknown
C. Senior Chemist
D. (missing character value)
Answer: B
Explanation:
QUESTION NO: 31
AlRPLANES
TYPE MPG
www.braindumps.com 23
SAS Institute A00-211 Exam
-------- ------
F-18 105
C-130 25
Harrier 75
A-6 110
data gt100;
run;
Answer: C
Explanation:
QUESTION NO: 32
----I----1 0---I----20---I----30
Ruth 39 11
Jose 32 22
Sue 30 33
www.braindumps.com 24
SAS Institute A00-211 Exam
John 40 44
data test;
infile employee;
run;
What value does the variable IDNUM contain when the name of the employee is Ruth?
A. 11
B. 22
C. 33
D. (missing numeric value)
Answer: B
Explanation:
QUESTION NO: 33
data temp.x;
set sasuser.y;
run;
What must be submitted prior to this SAS program for the program to execute successfully?
www.braindumps.com 25
SAS Institute A00-211 Exam
Answer: A
Explanation:
QUESTION NO: 34
The data set RALESTATE has the variable LOCALFEE with a format or 9. and a variable
data history;
set realestate;
run;
What are the formats of the variables LOCALFEE and COUNTRYFEE in the output dataset?
Answer: C
Explanation:
QUESTION NO: 35
run;
www.braindumps.com 26
SAS Institute A00-211 Exam
The following report is created:
Row Column
F11110.0020.0050.00
12220.0040.0040.00
13220.0040.0066.67
Total550.00100.00
M11110.0020.0050.00
12330.0060.0060,00
13110.0020.0033.33
Total550.00100.00
Total11220.00100.00
12550.00100.00
13330.00100.00
Total10100.00
Which option correctly completes the program and creates the report?
A. LIST
B. NOCOLS
C. CROSSLIST
D. NOCROSSTAB
Answer: C
Explanation:
www.braindumps.com 27
SAS Institute A00-211 Exam
QUESTION NO: 36
Answer: C
Explanation:
QUESTION NO: 37
----|---10---|---20---|----30
1901 2
1905 1
1910 6
1925 .
1941 1
data coins;
infile yearamt;
run;
Which statement(s) completed the program and produced a non-missing value for the variable
www.braindumps.com 28
SAS Institute A00-211 Exam
A. totquantity + quantity;
B. totquantity = sum(totquantity + quantity);
C. retain totquantity; totquantity = totquantity + quantity;
D. retain totquantity0; totquantity = totquantity + quantity;
Answer: A
Explanation:
QUESTION NO: 38
EMPLOYEE_INFO
IDNumber
Expenses
2542
100.00
3612
133.15
2198
234.34
2198
111.12
run;
Which BY statement completes the program and sorts the data sequentially by ascending
expense values within each ascending IDNUMBER value?
www.braindumps.com 29
SAS Institute A00-211 Exam
A. by Expenses IDNumber;
B. by IDNumber Expenses;
C. by ascending Expenses IDNumber;
D. by ascending IDNumber ascending Expenses;
Answer: B
Explanation:
QUESTION NO: 39
proc format
51 - 100 = Pass;
run;
column exam;
run;
How will the EXAM variable value be displayed in the REPORT procedure output?
A. Fail
B. Pass
C. 50.5
D. . (missing numeric value)
Answer: C
Explanation:
QUESTION NO: 40
www.braindumps.com 30
SAS Institute A00-211 Exam
What is the purpose or the MISSOVER option on the INFILE statement?
A. It prevents SAS from loading a new record when the end of the current record is reached.
B. It enables SAS to scan the input data records until the character string that is specified in the
@character-string expression is round.
C. It enables SAS to continue to read the next input data record if it does not find values in the
current input tine for all the variables in the statement.
D. It causes the DATA step to stop processing if an INPUT statement reaches the end of the
current record without finding values for all variables in the statement.
Answer: A
Explanation:
QUESTION NO: 41
data work.test;
run;
Answer: C
Explanation:
QUESTION NO: 42
www.braindumps.com 31
SAS Institute A00-211 Exam
A. The _ERROR_ variable contains the values TRUE or FALSE.
B. The _ERROR variable maintains a count of the number of data errors.
C. The _ERROR_ variable can be used in expressions or calculations in the DATA step.
D. The ERROR_variable contains the number or the observation that caused the error.
Answer: C
Explanation:
QUESTION NO: 43
07Jan2005
Which INFORMAT reads this raw data and stores it as a SAS date value?
A. dmy9.
B. date9.
C. ddMMMyy9.
D. ddmmmyyyy9.
Answer: B
Explanation:
QUESTION NO: 44
Answer: C
Explanation:
QUESTION NO: 45
www.braindumps.com 32
SAS Institute A00-211 Exam
The following SAS program is submitted:
data temp.sales;
merge temp.sales
work.receipt;
by names;
run;
A. The program executes successfully and a temporary SAS data set is created.
B. The program executes successfully and a permanent SAS data set is created.
C. The program fails execution because the same SAS data set is referenced for both read and
write operations.
D. The program fails execution because the SAS data sets on the MERGE statement are in two
different libraries.
Answer: B
Explanation:
QUESTION NO: 46
----I----10---I----20---I----30
Daisyyellow
data flowers;
infile typecolor;
run;
www.braindumps.com 33
SAS Institute A00-211 Exam
What are the values of the variables TYPE and COLOR?
A. type color
daisygreen
B. type color
daisy ellow
C. type color
daisyyellow (missing character value)
D. No values are stored for the TYPE and COLOR variables.
Answer: B
Explanation:
QUESTION NO: 47
A user-defined format has been created using the FORMAT procedure. Where is it stored?
A. in a SAS catalog
B. in an external binary file
C. in a SAS dataset in the WORK library
D. in a SAS dataset in a permanent SAS data library
Answer: A
Explanation:
QUESTION NO: 48
data work.flights;
destination = cph;
select(destination);
end;
www.braindumps.com 34
SAS Institute A00-211 Exam
run;
A. Other
B. Copenh
C. Copenhagen
D. (missing character value)
Answer: A
Explanation:
QUESTION NO: 49
data work.new;
amount = 4;
else if amount = 7
amount = 7;
run;
What are the values of the AMOUNT and WORD variables in SAS dataset work.new?
A. amount word
4 FOUR
B. amount word
4 NONE!!!
C. amount word
7 FOUR
D. amount word
7 SEVEN
www.braindumps.com 35
SAS Institute A00-211 Exam
Answer: C
Explanation:
QUESTION NO: 50
The following SAS program is submitted, creating the SAS data set ONE:
data one;
run;
ONE
NUMCHAR
----------------
123
323
177
run;
What is output?
A. NUM CHAR
1 77
2
B. NUM CHAR
1 23
3 23
C. NUM CHAR
www.braindumps.com 36
SAS Institute A00-211 Exam
1 23
3 23
1 77
D. No output is generated.
Answer: D
Explanation:
QUESTION NO: 51
data work.retail;
cost = 20000;
run;
A. The value of the variable TOTAL in the output data set is 2000. No messages are written to the
SAS log.
B. The value of the variable TOTAL 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 TOTAL in the output data set is missing. An error message is written
to the SAS log.
D. The variable TOTAL in the output data set has no value. The program fails to execute due to a
syntax error.
Answer: B
Explanation:
QUESTION NO: 52
Data_null_;
set old;
www.braindumps.com 37
SAS Institute A00-211 Exam
put sales 1 sales2;
run;
Answer: A
Explanation:
QUESTION NO: 53
data work.test;
run;
What are the names of the variable(s) in the WORKTEST data set?
A. ITEMS
B. ITEMS1, ITEMS2, ITEMS3
C. No variables are created because it is a temporary array.
D. The program fails to execute because there are no variables listed on the ARRAY statement.
Answer: C
Explanation:
QUESTION NO: 54
www.braindumps.com 38
SAS Institute A00-211 Exam
run;
www.braindumps.com 39
SAS Institute A00-211 Exam
Which TABLES statement(s) completed the program and produced the output?
Answer: B
Explanation:
QUESTION NO: 55
data one;
date = 04juI2005d;
www.braindumps.com 40
SAS Institute A00-211 Exam
A. Obs date
1 Monday, July 4, 2005
B. Obs date
1 July4, 2005
C. Obs date
1 04Jul2005
D. Obs date
1 Monday, 07/04/2005
Answer: A
Explanation:
QUESTION NO: 56
data test;
set sasuser.employees;
if 2 le years_service le 10 then
amount = 1000;
else amount = 0;
run;
What is the value of the variable AMOUNT_PER_YEAR if an employee has been with the
company for one year?
A. 0
B. 0.001
C. 1
D. . (missing numeric value)
Answer: D
Explanation:
QUESTION NO: 57
www.braindumps.com 41
SAS Institute A00-211 Exam
Given the SAS data set PERM.STUDENTS:
PERM.STUDENTS NAMEAGE
---------------- Alfred14
Alice13
Barbara13
Carol14
data students;
set perm.students;
run;
Alfred 14
Alice 13
Barbara 13
Carol 14
Which statement completes the program and creates the desired file?
A. put
B. put/;
C. double;
D. put _null_;
Answer: A
Explanation:
www.braindumps.com 42
SAS Institute A00-211 Exam
QUESTION NO: 58
data work.total;
by department;
if first.department
then payroll = 0;
payroll + wagerate;
if last.department;
run;
The SAS data set named WORKSALARY contains 10 observations for each department, and is
currently ordered by DEPARTMENT.
Answer: C
Explanation:
QUESTION NO: 59
----|----10----|----20----|----30
www.braindumps.com 43
SAS Institute A00-211 Exam
Alan
19/2/2004
ACCT
Rob
22/5/2004
MKTG
MaryJane
14/3/2004
EDUC
data emps;
infile employee;
input@1 name$
@25 department$;
run;
A. date9.
B. ddmmyyyy9.
C. ddmmyy10.
D. ddmmyyyy10.
Answer: C
Explanation:
QUESTION NO: 60
www.braindumps.com 44
SAS Institute A00-211 Exam
data test;
run;
Answer: C
Explanation:
QUESTION NO: 61
destinationrevenue
YYZ53634
FRA62129
FRA75962
RDU76254
YYZ82174
A. destination revenue
www.braindumps.com 45
SAS Institute A00-211 Exam
FRA 62129
B. destination revenue
FRA 75962
C. destination revenue
YYZ 53634
D. destination revenue
YYZ 82174
Answer: B
Explanation:
QUESTION NO: 62
data numrecords;
relative$ 16-26@;
clinic $ 44-53
input age;
run;
How many raw data records are read during each iteration of the DATA step execution?
A. 1
B. 2
C. 3
D. 4
www.braindumps.com 46
SAS Institute A00-211 Exam
Answer: B
Explanation:
QUESTION NO: 63
www.braindumps.com 47
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
Answer: B
Explanation:
QUESTION NO: 64
After a SAS program is submitted, the following is written to the SAS log:
www.braindumps.com 48
SAS Institute A00-211 Exam
105 data january;
------
22
AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,
NOTIN, OR,^=,|,II,
110 run;
What changes should be made to the KEEP statement to correct the errors in the LOG?
Answer: A
Explanation:
QUESTION NO: 65
data combine;
prefix=505;
middle=6465 ;
end=09090;
www.braindumps.com 49
SAS Institute A00-211 Exam
run;
Which statement successfully completes the program so that TOTAL has a value of 505-6465-
09090?
Answer: B
Explanation:
QUESTION NO: 66
run;
Which ODS statements complete the program and send the report to an HTML file?
Answer: D
Explanation:
QUESTION NO: 67
www.braindumps.com 50
SAS Institute A00-211 Exam
----I---- 10---I----20---I----30
$1,234
data test;
infile amount;
run;
Answer: B
Explanation:
QUESTION NO: 68
Alice13
Barbara13
Carol14
data students;
www.braindumps.com 51
SAS Institute A00-211 Exam
set perm.students;
run;
A. ----I----10---I----20---I----30
Alfred 14
Alice 13
Barbara 13
Carol 14
B. ----I----10---I----20---I----30
Alfr14
Alic13
Barb13a
Carol 4
C. ----I----10---I----20---I----30
Alfr14ed
Alic130
Barb13ara
Caro141
D. ----I----10---I----20---I----30
Alfred14
Alice13
Barbara13
Carol14
Answer: B
Explanation:
QUESTION NO: 69
data work.total;
by department;
www.braindumps.com 52
SAS Institute A00-211 Exam
if first.department
then payroll = 0;
payroll + wagerate;
if last.department
run;
The SAS data set WORK.SALARY, currently ordered by DEPARTMENT, contains 100
observations for each of 5 departments.
Answer: A
Explanation:
QUESTION NO: 70
data combine;
run;
What is the value of the variable FOUND in the output data set?
A. 1
B. 12
C. Italy
D. Russia
Answer: B
Explanation:
www.braindumps.com 53
SAS Institute A00-211 Exam
QUESTION NO: 71
where Sex='M';
run;
A. 11
B. 15
C. 10 or fewer
D. 11 or fewer
Answer: D
Explanation:
QUESTION NO: 72
The SAS data set named WORK.SALARY contains 10 observations for each department, and is
currently ordered by Department. The following SAS program is submitted:
www.braindumps.com 54
SAS Institute A00-211 Exam
WORK.SALARY data set.
Answer: C
Explanation:
QUESTION NO: 73
A. Type=daisy, Color=yellow
B. Type=daisy, Color=w
C. Type=daisy, Color=daisyyellow
D. Type=daisy, Color=
Answer: D
Explanation:
QUESTION NO: 74
www.braindumps.com 55
SAS Institute A00-211 Exam
Answer: A
Explanation:
QUESTION NO: 75
Which SAS statement completes the program and results in a value of "James Stevens" for the
variableFullName?
A. FullName=CATX(' ',EmpFName,EmpLName);
B. FullName=CAT(' ',EmpFName,EmpLName);
C. FullName=EmpFName!!EmpLName;
D. FullName=EmpFName + EmpLName;
Answer: A
Explanation:
www.braindumps.com 56
SAS Institute A00-211 Exam
QUESTION NO: 76
Which statement specifies that records 1 through 10 are to be read from the raw data file
customer.txt?
Answer: C
Explanation:
QUESTION NO: 77
data WORK.ONE;
Pos=find(Text,US,i,5);
run;
A. 0
B. 1
C. 2
D. 12
Answer: D
Explanation:
QUESTION NO: 78
www.braindumps.com 57
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
www.braindumps.com 58
SAS Institute A00-211 Exam
Answer: C
Explanation:
QUESTION NO: 79
The SAS data set WORK.ONE contains a numeric variable named Num ana character variable
named Char:
WORK.ONE
Num Char
------ ------
1 23
3 23
1 77
where Num='1';
run;
What is output?
A. Num Char
--- ----
1 23
B. Num Char
--- ----
1 23
1 77
C. Num Char
--- ----
1 23
3 23
1 77
D. No output is generated.
Answer: D
www.braindumps.com 59
SAS Institute A00-211 Exam
Explanation:
QUESTION NO: 80
Which TABLES statement was used to completed the following program that produced the output?
<_insert_code_>
run;
www.braindumps.com 60
SAS Institute A00-211 Exam
Answer: D
Explanation:
QUESTION NO: 81
<_insert_ods_code_>
run;
<_insert_ods_code_>
Which ODS statements inserted, respectively, in the two location above creates a report stored in
an html file?
Answer: C
Explanation:
QUESTION NO: 82
www.braindumps.com 61
SAS Institute A00-211 Exam
After data step execution, what will data set WORK.GEO contain?
www.braindumps.com 62
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Explanation:
QUESTION NO: 83
Which of the following choices is an unacceptable ODS destination for producing output that can
be viewed in Microsoft Excel?
A. MSOFFICE2K
B. EXCELXP
C. CSVALL
D. WINXP
Answer: D
Explanation:
QUESTION NO: 84
A. The _ERROR_ variable maintains a count of the number of data errors in a DATA step.
B. The _ERROR_ variable is added to the program data vector and becomes part of the data set
being created.
C. The _ERROR_ variable can be used in expressions in the DATA step.
D. The _ERROR_ variable contains the number of the observation that caused the data error.
Answer: C
Explanation:
QUESTION NO: 85
www.braindumps.com 63
SAS Institute A00-211 Exam
EAST
WEST
NORTH
SOUTH
Answer: D
Explanation:
QUESTION NO: 86
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';
www.braindumps.com 64
SAS Institute A00-211 Exam
C. where Job_Title='% Manager ';
D. where Job_Title like '%Manager%';
Answer: D
Explanation:
QUESTION NO: 87
data WORK.DATE_INFO;
X="01Jan1960" D;
run;
Answer: A
Explanation:
QUESTION NO: 88
www.braindumps.com 65
SAS Institute A00-211 Exam
How many observations are in data set WORK.ALL after submitting the program?
A. 1
B. 2
C. 3
D. 5
Answer: B
Explanation:
QUESTION NO: 89
run;
Which statement best describes the output from the submitted program?
A. The output contains only a list of the SAS data sets that are contained in the WORK library.
B. The output displays only the contents of the SAS data sets that are contained in the WORK
library.
C. The output displays only the variables in the SAS data sets that are contained in the WORK
library.
D. The output contains a list of the SAS data sets that are contained in the WORK library and
www.braindumps.com 66
SAS Institute A00-211 Exam
displays the contents of those data sets.
Answer: D
Explanation:
QUESTION NO: 90
How will the Exam variable value be displayed in the FREQ procedure output?
A. Fail
B. Pass
C. 50.5
D. . (missing numeric value)
Answer: C
Explanation:
QUESTION NO: 91
run;
www.braindumps.com 67
SAS Institute A00-211 Exam
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.
Answer: B
Explanation:
QUESTION NO: 92
The following code was modified to generate the results further below:
proc format;
value agegrp
low-12 ='Pre-Teen'
13-high = 'Teen';
run;
var Height;
run;
The following results were generated to display only specific statistics and limit the decimals with
the modification: Which statement below was modified or added to generate the results above:
Answer: C
Explanation:
QUESTION NO: 93
Answer: B
Explanation:
QUESTION NO: 94
set SASUSER.ONE;
run;
Assuming that SASUSER.ONE exists, how many temporary and permanent SAS data sets are
created?
www.braindumps.com 69
SAS Institute A00-211 Exam
A. 2 temporary and 1 permanent SAS data sets are created
B. 3 temporary and 2 permanent SAS data sets are created
C. 2 temporary and 2 permanent SAS data sets are created
D. there is an error and no new data sets are created
Answer: D
Explanation:
QUESTION NO: 95
Answer: D
Explanation:
QUESTION NO: 96
www.braindumps.com 70
SAS Institute A00-211 Exam
Which output is correct?
A. Option A
B. Option B
C. Option C
D. Option D
www.braindumps.com 71
SAS Institute A00-211 Exam
Answer: C
Explanation:
QUESTION NO: 97
data WORK.ACCOUNTING;
set WORK.DEPARTMENT;
run;
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. The program fails to execute due to errors. Labels must be defined in a PROC step.
Answer: C
Explanation:
QUESTION NO: 98
A. libname "_SAS_data_library_location_";
B. sasdata libname "_SAS_data_library_location_";
C. libname sasdata "_SAS_data_library_location_";
D. libname sasdata sas "_SAS_data_library_location_";
Answer: C
Explanation:
www.braindumps.com 72
SAS Institute A00-211 Exam
QUESTION NO: 99
Which TABLES option(s) would be used to eliminate the row and column counts and just see the
frequencies and percents?
A. norowcount nocolcount
B. freq percent
C. norow nocol
D. nocounts
Answer: C
Explanation:
JAN
www.braindumps.com 73
SAS Institute A00-211 Exam
FEB
MAR
Answer: A
Explanation:
Topic 2, Volume B
Answer: B
Explanation:
You're attempting to read a raw data file and you see the following messages displayed in the
SAS Log:
www.braindumps.com 74
SAS Institute A00-211 Exam
Answer: B
Explanation:
www.braindumps.com 75
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Explanation:
www.braindumps.com 76
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation:
www.braindumps.com 77
SAS Institute A00-211 Exam
data WORK.DATE_INFO;
Day="01" ;
Yr=1960 ;
X=mdy(Day,01,Yr) ;
run;
Answer: A
Explanation:
data WORK.AUTHORS;
run;
A. Hemingway
B. Hemingwa
C. ' ' (a missing value)
www.braindumps.com 78
SAS Institute A00-211 Exam
D. The program contains errors. No variables are created.
Answer: B
Explanation:
The SAS data set Fed.Banks contains a variable Open_Date which has been assigned a
permanent label of "Open Date". Which SAS program temporarily replaces the label "Open Date"
with the label "Starting Date" in the output?
Answer: B
Explanation:
In filtering the values of the variable X in data set WORK.OLD, what value new value would be
assigned to X if its original value was a missing value?
www.braindumps.com 79
SAS Institute A00-211 Exam
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.
Answer: A
Explanation:
Answer: C
Explanation:
www.braindumps.com 80
SAS Institute A00-211 Exam
A. 1
B. 2
C. 3
D. 6
Answer: B
Explanation:
www.braindumps.com 81
SAS Institute A00-211 Exam
Which SAS program correctly produces the desired output?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation:
www.braindumps.com 82
SAS Institute A00-211 Exam
A. 2
B. 3
C. 4
D. 6
Answer: A
Explanation:
What is the initial value of the variable Total in the following program?
A. 0
B. Missing
C. The value of the first observations Wagerate
D. Cannot be determined from the information given
www.braindumps.com 83
SAS Institute A00-211 Exam
Answer: B
Explanation:
data WORK.NEW;
set WORK.OLD;
Count+1;
run;
The varaible Count is created using a sum statement. Which statement regarding this variable is
true?
Answer: C
Explanation:
The data set WORK.REALESTATE has the variable LocalFee with a format of 9. and a variable
www.braindumps.com 84
SAS Institute A00-211 Exam
What are the formats of the variables LOCALFEE and COUNTRYFEE in the output dataset?
Answer: C
Explanation:
www.braindumps.com 85
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Explanation:
Which of the following programs correctly invokes the DATA Step Debugger?
www.braindumps.com 86
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation:
Which step sorts the observations of a permanent SAS data set by two variables and stores the
sorted observations in a temporary SAS data set?
www.braindumps.com 87
SAS Institute A00-211 Exam
run;
B. proc sort data=SASUSER.EMPLOYEES out=EMPSORT;
by Lname Fname;
run;
C. proc sort out=SASUSER.EMPLOYEES data=WORK.EMPSORT;
by Lname Fname;
run;
D. proc sort data=SASUSER.EMPLOYEES out=SASUSER.EMPSORT;
by Lname and Fname;
run;
Answer: B
Explanation:
Which of the following assignment statements for variable group are functionally equivalent to the
original statement used in the above data step?
Answer: A
Explanation:
data WORK.ACCOUNTING;
www.braindumps.com 88
SAS Institute A00-211 Exam
set WORK.DEPARTMENT;
CharEmpid=EmpId;
run;
If data set WORK.DEPARTMENT has a numeric variable EmpId. Which statement is true about
the output dataset?
Answer: D
Explanation:
data WORK.OUTDS;
do until(Prod GT 6);
Prod + 1;
end;
run;
What is the value of the variable Prod in the output data set?
A. . (missing)
B. 6
C. 7
D. Undetermined, infinite loop.
Answer: C
Explanation:
www.braindumps.com 89
SAS Institute A00-211 Exam
The SAS data set WORK.SALARY is currently ordered by Gender within Department. Which
inserted code will accumulate subtotals for each Gender within Department?
A. Gender
B. Department
C. Gender Department
D. Department Gender
Answer: A
Explanation:
Which step displays a listing of all the data sets in the WORK library?
Answer: C
Explanation:
www.braindumps.com 90
SAS Institute A00-211 Exam
QUESTION NO: 124
The variable order_id is numeric; customer is character; and shipped is numeric, contains a SAS
date value, and is shown with the DATE9. format. A programmer would like to create a new
variable, ship_note, that shows a character value with the order_id, shipped date, and customer
name. For example, given the first observation ship_note would have the value "Order 9341
shipped on 02FEB2009 to Josh Martin".
Which of the following statement will correctly create the value and assign it to ship_note?
Answer: D
Explanation:
After a SAS program is submitted, the following is written to the SAS log:
-----
www.braindumps.com 91
SAS Institute A00-211 Exam
22
!!, , *, **, +, -,
AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,
110 run;
What data set option could be attached to WORK.JANUARY to replace the DROP statement that
generated the error in the log?
Answer: D
Explanation:
The computed variables City and State have their values assigned using two different methods, a
RETAIN statement and an Assignment statement. Which statement regarding this program is
true?
A. The RETAIN statement is fine, but the value of City will be truncated to 8 bytes as the
LENGTH statement has been omitted.
B. Both the RETAIN and assignment statement are being used to initialize new variables and are
equally efficient. Method used is a matter of programmer preference.
www.braindumps.com 92
SAS Institute A00-211 Exam
C. The assignment statement is fine, but the value of City will be truncated to 8 bytes as the
LENGTH statement has been omitted.
D. City's value will be assigned one time, State's value 5 times.
Answer: D
Explanation:
A. 3
B. 1.6
C. 4.8
D. The program fails to execute due to errors.
Answer: B
Explanation:
2 data gt100;
3 set ia.airplanes
www.braindumps.com 93
SAS Institute A00-211 Exam
22 202
a quoted string, (, ;, END, KEY, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
5 run;
Answer: B
Explanation:
The contents of the raw data file SIZE are listed below:
--------10-------20-------30
72 95
data test;
infile 'size';
www.braindumps.com 94
SAS Institute A00-211 Exam
input @1 height 2. @4 weight 2;
run;
Which one of the following is the value of the variable WEIGHT in the output data set?
A. 2
B. 72
C. 95
D. . (missing numeric value)
Answer: A
Explanation:
A SAS PRINT procedure output of the WORK.LEVELS data set is listed below:
1 Frank 1
2 Joan 2
3 Sui 2
4 Jose 3
5 Burt 4
6 Kelly .
7 Juan 1
data work.expertise;
set work.levels;
if level = . then
expertise = 'Unknown';
expertise = 'Low';
www.braindumps.com 95
SAS Institute A00-211 Exam
else if level = 2 or 3 then
expertise = 'Medium';
else
expertise = 'High';
run;
Answer: B
Explanation:
The contents of the raw data file EMPLOYEE are listed below:
--------10-------20-------30
Ruth 39 11
Jose 32 22
Sue 30 33
John 40 44
data test;
infile 'employee';
run;
www.braindumps.com 96
SAS Institute A00-211 Exam
Which one of the following values does the variable AGE contain when the name of the employee
is "Sue"?
A. 30
B. 33
C. 40
D. . (missing numeric value)
Answer: C
Explanation:
data test;
set sasdata.chemists;
if jobcode = 'chem3'
run;
JOBCODE
CHEM3
Which one of the following values does the variable DESCRIPTION contain?
A. chem3
B. Unknown
C. Senior Chemist
D. ' ' (missing character value)
Answer: B
www.braindumps.com 97
SAS Institute A00-211 Exam
Explanation:
options pageno = 1;
run;
run;
The report created by the PRINT procedure step generates 5 pages of output.
What is the page number on the first page of the report generated by the MEANS procedure step?
A. 1
B. 2
C. 5
D. 6
Answer: D
Explanation:
Which one of the following SAS system options displays the time on a report?
A. TIME
B. DATE
C. TODAY
D. DATETIME
Answer: B
Explanation:
www.braindumps.com 98
SAS Institute A00-211 Exam
QUESTION NO: 135
Which one of the following SAS system options prevents the page number from appearing on a
report?
A. NONUM
B. NOPAGE
C. NONUMBER
D. NOPAGENUM
Answer: C
Explanation:
data work.new;
amount = 7;
amount = 5;
run;
Which one of the following represents the values of the AMOUNT and WORD variables?
A. amount word
5 DOG
B. amount word
5 CAT
C. amount word
7 DOG
D. amount word
7 ' ' (missing character value)
www.braindumps.com 99
SAS Institute A00-211 Exam
Answer: A
Explanation:
var sqfeet;
run;
Which one of the following is needed to display the standard deviation with only two decimal
places?
Answer: A
Explanation:
Unless specified, which variables and data values are used to calculate statistics in the MEANS
procedure?
Answer: A
Explanation:
www.braindumps.com 100
SAS Institute A00-211 Exam
by style;
run;
run;
3 2.5 79350
4 2.5 127150
2 2.0 110700
3 3.0 86650
3 1.0 89100
1 1.0 34550
4 3.0 94450
3 1.5 73650
2 1.0 55850
2 1.0 69250
4 2.5 102950
www.braindumps.com 101
SAS Institute A00-211 Exam
A. id style;
B. id style;
var style bedrooms baths price;
C. id style;
by style;
var bedrooms baths price;
D. id style;
by style;
var style bedrooms baths price;
Answer: C
Explanation:
A realtor has two customers. One customer wants to view a list of homes selling for less than
$60,000. The other customer wants to view a list of homes selling for greater than $100,000.
Assuming the PRICE variable is numeric, which one of the following PRINT procedure steps will
select all desired observations?
Answer: B
Explanation:
www.braindumps.com 102
SAS Institute A00-211 Exam
BANKS
name rate
FirstCapital 0.0718
DirectBank 0.0721
VirtualDirect 0.0728
data newbank;
do year = 1 to 3;
set banks;
capital + 5000;
end;
run;
Which one of the following represents how many observations and variables will exist in the SAS
data set NEWBANK?
Answer: B
Explanation:
data work.clients;
calls = 6;
calls + 1;
www.braindumps.com 103
SAS Institute A00-211 Exam
end;
run;
Which one of the following is the value of the variable CALLS in the output data set?
A. 4
B. 5
C. 6
D. 7
Answer: D
Explanation:
data work.pieces;
do while (n lt 6);
n + 1;
end;
run;
Which one of the following is the value of the variable N in the output data set?
A. 4
B. 5
C. 6
D. 7
Answer: C
Explanation:
www.braindumps.com 104
SAS Institute A00-211 Exam
--------10-------20-------30
1999/10/25
data projectduration;
infile 'file-specification';
run;
Which one of the following statements completes the program above and computes the duration of
the project in days as of today's date?
Answer: D
Explanation:
data work.month;
date = put('13mar2000'd,ddmmyy10.);
run;
Which one of the following represents the type and length of the variable DATE in the output data
set?
A. numeric, 8 bytes
B. numeric, 10 bytes
C. character, 8 bytes
D. character, 10 bytes
Answer: D
www.braindumps.com 105
SAS Institute A00-211 Exam
Explanation:
data work.month;
date = input('13mar2000',date9.);
run;
Which one of the following represents the type and length of the variable DATE in the output data
set?
A. numeric, 8 bytes
B. numeric, 9 bytes
C. character, 8 bytes
D. character, 9 bytes
Answer: A
Explanation:
data work.products;
Product_Number = 5461;
Item = '1001';
Item_Reference = Item'/'Product_Number;
run;
Which one of the following is the value of the variable ITEM_REFERENCE in the output data set?
A. 1001/5461
www.braindumps.com 106
SAS Institute A00-211 Exam
B. 1001/ 5461
C. . (missing numeric value)
D. The value can not be determined as the program fails to execute due to errors.
Answer: D
Explanation:
data work.retail;
cost = '20000';
run;
Which one of the following is the value of the variable TOTAL in the output data set?
A. 2000
B. '2000'
C. . (missing numeric value)
D. ' ' (missing character value)
Answer: A
Explanation:
data work.test;
run;
www.braindumps.com 107
SAS Institute A00-211 Exam
Which one of the following is the length of the variable FIRST in the output data set?
A. 1
B. 6
C. 15
D. 200
Answer: D
Explanation:
data work.test;
run;
Which one of the following is the value of the variable FIRST in the output data set?
A. A
B. C
C. Agatha
D. ' ' (missing character value)
Answer: A
Explanation:
data work.test;
www.braindumps.com 108
SAS Institute A00-211 Exam
run;
Which one of the following is the value of the variable WORD in the output data set?
A. T
B. of
C. Dickens
D. ' ' (missing character value)
Answer: D
Explanation:
data work.test;
run;
Which one of the following is the length of the variable CITY_COUNTRY in the output data set?
A. 6
B. 7
C. 17
D. 25
Answer: D
Explanation:
data work.test;
www.braindumps.com 109
SAS Institute A00-211 Exam
First = 'Ipswich, England';
City = substr(First,1,7);
run;
Which one of the following is the value of the variable CITY_COUNTRY in the output data set?
A. Ipswich!!
B. Ipswich, England
C. Ipswich, 'England'
D. Ipswic h, England
Answer: B
Explanation:
Which one of the following is true of the RETAIN statement in a SAS DATA step program?
Answer: C
Explanation:
--------10-------20-------30
squash 1.10
apples 2.25
juice 1.69
www.braindumps.com 110
SAS Institute A00-211 Exam
The following SAS program is submitted using the raw data file above:
data groceries;
infile 'file-specification';
run;
Which one of the following completes the program and produces a grand total for all COST
values?
Answer: C
Explanation:
data test;
if job_code = 'chem3'
run;
Which one of the following is the length of the variable DESCRIPTION in the output data set?
A. 6 bytes
www.braindumps.com 111
SAS Institute A00-211 Exam
B. 8 bytes
C. 14 bytes
D. 200 bytes
Answer: C
Explanation:
data work.accounting;
set work.department;
run;
The WORK.DEPARTMENT SAS data set contains a character variable named JOBCODE with a
length of 5. Which one of the following is the length of the variable JOBCODE in the output data
set?
A. 5
B. 8
C. 12
D. The length can not be determined as the program fails to execute due to errors.
Answer: A
Explanation:
A. set work.dept1
work.dept2(rename = (jcode = jobcode)
(sal = salary));
B. set work.dept1
work.dept2(rename = (jcode = jobcode
sal = salary));
www.braindumps.com 112
SAS Institute A00-211 Exam
C. set work.dept1
work.dept2(rename = jcode = jobcode
sal = salary);
D. set work.dept1
work.dept2(rename = (jcode jobcode)
(sal salary));
Answer: B
Explanation:
data work.company;
run;
Answer: B
Explanation:
data work.staff;
JobCategory = 'FA';
JobLevel = '1';
www.braindumps.com 113
SAS Institute A00-211 Exam
JobCategory = JobCategory || JobLevel;
run;
Which one of the following is the value of the variable JOBCATEGORY in the output data set?
A. FA
B. FA1
C. FA 1
D. ' ' (missing character value)
Answer: A
Explanation:
data work.one;
x = 3;
y = 2;
z = x ** y;
run;
Which one of the following is the value of the variable Z in the output data set?
A. 6
B. 9
C. . (missing numeric value)
D. The program fails to execute due to errors.
Answer: B
Explanation:
www.braindumps.com 114
SAS Institute A00-211 Exam
capacity airplanetype staff
150 Large 10
Which one of the following SAS programs created this data set?
A. data work.test;
capacity = 150;
if 100 le capacity le 200 then
airplanetype = 'Large' and staff = 10;
else airplanetype = 'Small' and staff = 5;
run;
B. data work.test;
capacity = 150;
if 100 le capacity le 200 then
do;
airplanetype = 'Large';
staff = 10;
end;
else
do;
airplanetype = 'Small';
staff = 5;
end;
run;
C. data work.test;
capacity = 150;
if 100 le capacity le 200 then
do;
airplanetype = 'Large';
staff = 10;
else
do;
airplanetype = 'Small';
staff = 5;
end;
run;
D. data work.test;
capacity = 150;
if 100 le capacity le 200 then;
airplanetype = 'Small';
staff = 5;
else;
airplanetype = 'Large';
staff = 10;
run;
www.braindumps.com 115
SAS Institute A00-211 Exam
Answer: B
Explanation:
IDNumber Expenses
2542 100.00
3612 133.15
2198 234.34
2198 111.12
run;
Which one of the following BY statements completes the program and sorts the data sequentially
by descending expense values within each descending IDNUMBER value?
Answer: D
Explanation:
www.braindumps.com 116
SAS Institute A00-211 Exam
by EmployeeIDNumber;
run;
Which one of the following represents how the observations are sorted?
Answer: A
Explanation:
fname points
Amy 2
Amy 1
Gerard 3
Wang 3
Wang 1
Wang 2
run;
www.braindumps.com 117
SAS Institute A00-211 Exam
Which one of the following represents how the observations are sorted?
A. Wang 3
Gerard 3
Wang 2
Amy 2
Wang 1
Amy 1
B. Wang 3
Wang 2
Wang 1
Gerard 3
Amy 2
Amy 1
C. Wang 3
Wang 1
Wang 2
Gerard 3
Amy 2
Amy 1
D. Wang 1
Wang 2
Wang 3
Gerard 3
Amy 1
Amy 2
Answer: D
Explanation:
The observations in the SAS data set WORK.TEST are ordered by the values of the variable
SALARY. The following SAS program is submitted:
by name;
run;
www.braindumps.com 118
SAS Institute A00-211 Exam
A. The data set WORK.TEST is stored in ascending order by values of the NAME variable.
B. The data set WORK.TEST is stored in descending order by values of the NAME variable.
C. The data set WORK.TESTSORTED is stored in ascending order by values of the NAME
variable.
D. The data set WORK.TESTSORTED is stored in descending order by values of the NAME
variable.
Answer: C
Explanation:
Which one of the following statements is true regarding the name of a SAS array?
Answer: C
Explanation:
data stats;
set revenue;
output;
end;
run;
Which one of the following DO statements completes the program and processes the elements of
www.braindumps.com 119
SAS Institute A00-211 Exam
the WEEKLY array?
A. do i = 1 to 5;
B. do weekly{i} = 1 to 5;
C. do i = mon tue wed thu fri;
D. A DO loop cannot be used because the variables referenced do not end in a digit.
Answer: A
Explanation:
data work.test;
run;
Which one of the following represents the variables that are contained in the output data set?
Answer: A
Explanation:
On which portion(s) of a SAS data set does the PRINT procedure report?
www.braindumps.com 120
SAS Institute A00-211 Exam
Answer: A
Explanation:
Which one of the following SAS procedures displays the data portion of a SAS data set?
A. PRINT
B. FSLIST
C. CONTENTS
D. DATASETS
Answer: A
Explanation:
run;
Answer: D
Explanation:
www.braindumps.com 121
SAS Institute A00-211 Exam
--------10-------20-------30
John McCloskey 35 71
June Rosesette 10 43
Tineke Jones 9 37
The following SAS program is submitted using the raw data file as input:
data work.homework;
infile 'file-specification';
if age LE 10;
run;
A. 0
B. 2
C. 3
D. No data set is created as the program fails to execute due to errors.
Answer: C
Explanation:
The SASDATA.BANKS data set has five observations when the following SAS program is
submitted:
data allobs;
set sasdata.banks;
capital=0;
www.braindumps.com 122
SAS Institute A00-211 Exam
capital + ((capital+2000) * rate);
output;
end;
run;
A. 5
B. 15
C. 20
D. 25
Answer: D
Explanation:
data allobs;
run;
A. 424
B. 425
C. 499
D. 1000
Answer: B
Explanation:
www.braindumps.com 123
SAS Institute A00-211 Exam
The following SAS program is submitted:
data _null_;
file 'file-specification';
run;
Which one of the following default delimiters separates the fields in the raw data file created?
A. : (colon)
B. (space)
C. , (comma)
D. ; (semicolon)
Answer: B
Explanation:
The contents of the raw data file TEAM are listed below:
--------10-------20-------30
Janice 10
Henri 11
Michael 11
Susan 12
data group;
infile 'team';
file 'file-specification';
www.braindumps.com 124
SAS Institute A00-211 Exam
put name $15. +5 age 2.;
run;
Answer: C
Explanation:
The contents of the SAS data set PERM.JAN_SALES are listed below:
A comma delimited raw data file needs to be created from the PERM.JAN_SALES data set. The
SALES_DATE values need to be in a MMDDYY10 form.
Which one of the following SAS DATA steps correctly creates this raw data file?
www.braindumps.com 125
SAS Institute A00-211 Exam
set perm.jan_sales;
file 'file-specification';
put idnum sales_date : mmddyy10. dlm = ',';
run;
D. libname perm 'SAS-data-library';
data _null_;
set perm.jan_sales;
file 'file-specification';
put idnum sales_date : mmddyy10. dsd = ',';
run;
Answer: B
Explanation:
data work.new;
set temp.jobs;
qdate = qtr(newdate);
ddate = weekday(newdate);
run;
run;
The variable NEWDATE contains the SAS date value for April 15, 2000.
www.braindumps.com 126
SAS Institute A00-211 Exam
1 APR152000 2 7
D. Obs newdate qdate ddate
1 04/15/2000 2 7
Answer: D
Explanation:
data work.report;
set work.sales_info;
if qtr(sales_date) ge 3;
run;
The SAS data set WORK.SALES_INFO has one observation for each month in the year 2000 and
the variable SALES_DATE which contains a SAS date value for each of the twelve months.
How many of the original twelve observations in WORK.SALES_INFO are written to the
WORK.REPORT data set?
A. 2
B. 3
C. 6
D. 9
Answer: C
Explanation:
data revenue;
set year_1;
www.braindumps.com 127
SAS Institute A00-211 Exam
var1 = mdy(1,15,1960);
run;
Which one of the following values does the variable named VAR1 contain?
A. 14
B. 15
C. 1151960
D. '1/15/1960'
Answer: A
Explanation:
data work.new;
mon = 3;
day = 23;
year = 2000;
date = mdy(mon,day,year);
run;
Answer: C
Explanation:
www.braindumps.com 128
SAS Institute A00-211 Exam
The following SAS DATA step executes on Monday, April 25, 2000:
data newstaff;
set staff;
start_date = today();
run;
Which one of the following is the value of the variable START_DATE in the output data set?
Answer: C
Explanation:
data sasdata.atlanta
sasdata.boston
work.portland
work.phoenix;
set company.prdsales;
run;
Which one of the following is true regarding the output data sets?
www.braindumps.com 129
SAS Institute A00-211 Exam
A. No library references are required.
B. The data sets listed on all the IF statements require a library reference.
C. The data sets listed in the last two IF statements require a library reference.
D. The data sets listed in the first two IF statements require a library reference.
Answer: D
Explanation:
Which one of the following SAS DATA steps saves the temporary data set named MYDATA as a
permanent data set?
Answer: D
Explanation:
data temp.report;
www.braindumps.com 130
SAS Institute A00-211 Exam
set sasuser.houses;
run;
Which one of the following statements is true regarding the program above?
A. The program is reading from a temporary data set and writing to a temporary data set.
B. The program is reading from a temporary data set and writing to a permanent data set.
C. The program is reading from a permanent data set and writing to a temporary data set.
D. The program is reading from a permanent data set and writing to a permanent data set.
Answer: D
Explanation:
The following SAS SORT procedure step generates an output data set:
by style;
run;
A. WORK
B. REPORT.
C. HOUSES
D. SASUSER
Answer: A
Explanation:
The SAS data sets WORK.EMPLOYEE and WORK.SALARY are listed below:
www.braindumps.com 131
SAS Institute A00-211 Exam
WORK.EMPLOYEE WORK.SALARY
Dan 25000
data work.empdata;
merge work.employee
work.salary;
by fname;
totsal + salary;
run;
A. 3
B. 4
C. 5
D. No variables are output to the data set as the program fails to execute due to errors
Answer: B
Explanation:
The contents of two SAS data sets named EMPLOYEE and SALARY are listed below:
EMPLOYEE SALARY
Dan 37000
www.braindumps.com 132
SAS Institute A00-211 Exam
Dan .
data work.empsalary;
by name;
run;
A. 2
B. 4
C. 5
D. 6
Answer: B
Explanation:
RANCH,1250,2,1,Sheppard Avenue,"$64,000"
SPLIT,1190,1,1,Rand Street,"$65,850"
CONDO,1400,2,1.5,Market Street,"80,050"
TWOSTORY,1810,4,3,Garris Street,"$107,250"
RANCH,1500,3,3,Kemble Avenue,"$86,650"
SPLIT,1615,4,3,West Drive,"94,450"
SPLIT,1305,3,1.5,Graham Avenue,"$73,650"
The following SAS program is submitted using the raw data file as input:
data work.condo_ranch;
www.braindumps.com 133
SAS Institute A00-211 Exam
infile 'file-specification' dsd;
input style $ @;
run;
A. 0
B. 3
C. 5
D. 7
Answer: B
Explanation:
RANCH,1250,2,1,Sheppard Avenue,"$64,000"
SPLIT,1190,1,1,Rand Street,"$65,850"
CONDO,1400,2,1.5,Market Street,"80,050"
TWOSTORY,1810,4,3,Garris Street,"$107,250"
RANCH,1500,3,3,Kemble Avenue,"$86,650"
SPLIT,1615,4,3,West Drive,"94,450"
SPLIT,1305,3,1.5,Graham Avenue,"$73,650"
The following SAS program is submitted using the raw data file as input:
data work.condo_ranch;
input style $ @;
www.braindumps.com 134
SAS Institute A00-211 Exam
input sqfeet bedrooms baths street $ price : dollar10.;
run;
A. 0
B. 3
C. 5
D. 7
Answer: D
Explanation:
The contents of the raw data file FURNITURE are listed below:
--------10-------20-------30
chair,,table
chair,couch,table
data stock;
run;
Which one of the following is the value of the variable named ITEM2 in the first observation of the
output data set?
A. table
B. ,table
C. . (missing numeric value)
D. ' ' (missing character value)
Answer: D
Explanation:
www.braindumps.com 135
SAS Institute A00-211 Exam
The following SAS program is submitted and reads 100 records from a raw data file:
data work.total;
totsal + salary;
run;
Which one of the following IF statements writes the last observation to the output data set?
A. if end = 0;
B. if eof = 0;
C. if end = 1;
D. if eof = 1;
Answer: D
Explanation:
data work.testdata;
infile
run;
www.braindumps.com 136
SAS Institute A00-211 Exam
A. rawdata1
B. rawdata2
C. 'rawdata1'
D. 'rawdata2'
Answer: B
Explanation:
run;
run;
Which one of the following OPTIONS statements resets the page number to 1 for the second
report?
A. options pageno = 1;
B. options pagenum = 1;
C. options reset pageno = 1;
D. options reset pagenum = 1;
Answer: A
Explanation:
Which one of the following is true of the SUM statement in a SAS DATA step program?
www.braindumps.com 137
SAS Institute A00-211 Exam
Answer: C
Explanation:
When the following SAS program is submitted, the data set SASDATA.PRDSALES contains 5000
observations:
run;
run;
Answer: B
Explanation:
The contents of the raw data file AMOUNT are listed below:
--------10-------20-------30
www.braindumps.com 138
SAS Institute A00-211 Exam
$1,234
data test;
infile 'amount';
run;
A. Problems
B. No Problems
C. ' ' (missing character value)
D. The value can not be determined as the program fails to execute due to errors.
Answer: A
Explanation:
The contents of the raw data file NAMENUM are listed below:
--------10-------20-------30
Joe xx
data test;
infile 'namenum';
run;
www.braindumps.com 139
SAS Institute A00-211 Exam
A. xx
B. Joe
C. . (missing numeric value)
D. The value can not be determined as the program fails to execute due to errors.
Answer: C
Explanation:
Which one of the following is true when SAS encounters a data error in a DATA step?
A. The DATA step stops executing at the point of the error, and no SAS data set is created.
B. A note is written to the SAS log explaining the error, and the DATA step continues to execute.
C. A note appears in the SAS log that the incorrect data record was saved to a separate SAS file
for further examination.
D. The DATA step stops executing at the point of the error, and the resulting DATA set contains
observations up to that point.
Answer: B
Explanation:
do i=1 to 12;
monthsales{i} = sales;
end;
run;
The data set named WORK.MONTHLYSALES has one observation per month for each of five
years for a total of 60 observations.
www.braindumps.com 140
SAS Institute A00-211 Exam
Which one of the following is the result of the above program?
Answer: B
Explanation:
data work.totalsales;
do i = 1 to 12;
monthsales{i} = sales;
end;
cnt + 1;
monthsales{cnt} = sales;
run;
The data set named WORK.MONTHLYSALES has one observation per month for each of five
years for a total of 60 observations.
www.braindumps.com 141
SAS Institute A00-211 Exam
with 60 observations
Answer: B
Explanation:
data work.january;
run;
Answer: D
Explanation:
The contents of the raw data file CALENDAR are listed below:
--------10-------20-------30
01012000
data test;
www.braindumps.com 142
SAS Institute A00-211 Exam
infile 'calendar';
run;
A. 01012000
B. January 1st
C. . (missing numeric value)
D. The value can not be determined as the program fails to execute due to errors
Answer: D
Explanation:
New Questions
If the value for the variable Jobcode is: PILOT2, what is the value of the variable Description?
Answer: B
Explanation:
www.braindumps.com 143
SAS Institute A00-211 Exam
QUESTION NO: 206
A. date9
B. mmddyy10
C. ddmmyy10
D. mondayyr10
Answer: B
Explanation:
www.braindumps.com 144
SAS Institute A00-211 Exam
www.braindumps.com 145
SAS Institute A00-211 Exam
A. Option A
B. Option B
C. Option C
D. Option D
Answer: C
Explanation:
www.braindumps.com 146
SAS Institute A00-211 Exam
What is the value of the second variable in the data set WORK.AUTHORS?
A. Hemingway
B. Hemingwa
C. ' ' (a missing value)
D. The program contains errors. No variables are created.
Answer: B
Explanation:
After a SAS program is submitted, the following is written to the SAS log:
What changes should be made to the KEEP statement to correct the errors in the LOG?
A. keep=(Product Sales);
B. keep Product, Sales;
C. keep=Product, Sales;
D. keep Product Sales;
Answer: D
Explanation:
www.braindumps.com 147
SAS Institute A00-211 Exam
The following SAS program is submitted:
Answer: D
Explanation:
What is the value of the variable Prod in the output data set?
A. 6
B. 7
C. 8
D. . (missing numeric)
Answer: B
Explanation:
www.braindumps.com 148
SAS Institute A00-211 Exam
The following SAS program is submitted:
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.
Answer: C
Explanation:
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 execute due to errors and the
data set is not created.
Answer: C
Explanation:
www.braindumps.com 149
SAS Institute A00-211 Exam
How many raw data records are read during each iteration of the DATA step?
A. 1
B. 2
C. 3
D. 4
Answer: B
Explanation:
www.braindumps.com 150
SAS Institute A00-211 Exam
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())
Answer: B
Explanation:
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 the first 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?
www.braindumps.com 151
SAS Institute A00-211 Exam
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.));
Answer: D
Explanation:
Which statement best describes the output from the submitted program?
A. The output displays only a list of the SAS data sets that are contained in the WORK library.
B. The output displays only the contents of the SAS data sets that are contained in the WORK
library.
C. The output displays only the variables in the SAS data sets that are contained in the WORK
library.
D. The output displays a list of the SAS data sets that are contained in the WORK library and
displays their contents.
Answer: D
Explanation:
The SAS data set WORK.ONE contains a numeric variable named Num and a character variable
named Char:
www.braindumps.com 152
SAS Institute A00-211 Exam
The following SAS program is submitted:
What is output?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Explanation:
www.braindumps.com 153