Sunteți pe pagina 1din 10

PassGuide A00-211

SAS A00-211

SAS Base Programming for SAS (r) 9

Q&A Demo

www.PassGuide.com

(C) Copyright 2006-2010 CertBible Tech LTD,All Rights Reserved.

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211
Important Note
Please Read Carefully

Study Tips

This product will provide you questions and answers carefully compiled and written by our
experts. Try to understand the concepts behind the questions instead of cramming the
questions.

Go through the entire document at least twice so that you make sure that you are not missing
anything.

Latest Version

We are constantly reviewing our products. New material is added and old material is revised.
Free updates are available for 120 days after the purchase. You should check your member
zone at PassGuide an update 3-4 days before the scheduled exam date.

Feedback

If you spot a possible improvement then please let us know. We always interested in
improving product quality.
Feedback should be send to feedback@passguide.com. You should include the following:
Exam number, version, page number, question number, and your login ID.
Our experts will answer your mail promptly.

Be Prepared. Be Confident. Get Certified.


-------------------------------------------------------------------------------------------------------------------------
Sales and Support Manager
Sales Team: sales@passguide.com Support Team: support@passguide.com
---------------------------------------------------------------------------------------------------------------------

Copyright

Each pdf file contains a unique serial number associated with your particular name and
contact information for security purposes. So if we find out that a particular pdf file is being
distributed by you, CertBible reserves the right to take legal action against you according to
the International Copyright Laws.

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211
Question: 1
The SAS data set PETS is sorted by the variables TYPE and BREED.
The following SAS program is submitted:
proc print data = pets;
run;
Which statement(s) successfully completed the program and created page breaks when the
value of TYPE changed?

A. by type;
B. pageby type;
C. pageby type;
by type;
D. pageby type breed;
by breed;

Answer: C

Question: 2
The following SAS program is submitted:
data date;
dte = 12312007; /* date of December 31, 2007 */
convert = ;
run;
The numeric variable DTE contains the value 12312007, which represents December 31,
2007 (12/31/2007).
Which expression completed the program and successfully converted the value 12312007 to
a SAS date?

A. mmddyy(dte)
B. date(dte, mmddyy10.)
C. input(put(dte, 8.), mmddyy10.)
D. put(input(dte, 8.), mmddyy10.)

Answer: C

Question: 3
Given the SAS data set INPUT:
INPUT
ID COLORPRICE
123 Blue 283
345 Blue 500
234 Red 250
The following SAS program is submitted:
data products;

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211
set input;
if price > 250;
increase = price * 10;
run;
How many observations are written out to the data set PRODUCTS?

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

Answer: C

Question: 4
Given the raw data file DEPT:
DEPT
Alan 19/2/04
Kathy 24/5/04 MKTG
The following SAS program is submitted:
data employees;
infile 'dept' ;
input name $
date $
department $ ;
run;
The following output is desired:
Obsname datedepartment
1Alan 19/2/04
2Kathy 24/5/04MKTG
Which INFILE statement option correctly completes the program?

A.DSD
B.PAD
C.MISSOVER
D.STOPOVER

Answer: C

Question: 5
The following report has been created by the FREQUENCY procedure:
The FREQ Procedure
Which SAS program produced the report?

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211

A. proc freq data = sasuser.houses;


B. proc freq data = sasuser.houses;
C. proc freq data = sasuser.houses;
D. proc freq data = sasuser.houses;

Answer: D

Question: 6
Given the raw data file HOMES:
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:
data work.condo_ranch;
infile 'homes' dsd;
input style $ @;
if style = 'CONDO' or style = 'RANCH';
input sqfeet bedrooms baths street $
price : dollar10.;
run;
How many observations will the output data set contain?

A.0
B.3
C.5
D.7

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211
Answer: B

Question: 7
The following SAS program is submitted:
data work.one;
x = 3;
y = 2;
z = x ** y;
run;
What is the result?

A. The value of the variable Z is 8. No error or warning messages are written to the SAS log.
B. The value of the variable Z is 9. No error or warning messages are written to the SAS log.
C. The value of the variable Z is 6. A warning message indicating that the second asterisk is
ignored is written to the SAS log.
D. The variable Z is not created. The program fails to execute due to errors.

Answer: B

Question: 8
Given the SAS data set SASUSER.HOUSES:

The following SAS program is submitted:


The following output is desired:
style price
CONDO $79,700
TWOSTORY $62,550
Which DEFINE statement completes the program and produces the desired output?

A. define style / width = 9;


B. define style / order width = 9;
C. define style / group width = 9;
D. define style / display width = 9;

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211
Answer: C

Question: 9
The following SAS program is submitted:
data WORK.ACCOUNTING;
set WORK.DEPARTMENT;
length EmpId $6;
CharEmpid=EmpId;
run;
If data set WORK.DEPARTMENT has a numeric variable EmpId. Which statement is true
about the output dataset?

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.

Answer: D

Question: 10
The following program is submitted:
proc format;
value salfmt.
0 -< 50000 = 'Less than 50K'
50000 - high = '50K or Greater';
options fmterr nodate pageno=1;
title 'Employee Report';
proc print data=work.employees noobs;
var fullname salary hiredate;
format
salary salfmt. hiredate date9.; label
fullname='Name of Employee'
salary='Annual Salary'
hiredate='Date of Hire';
run;
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.

Answer: C

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211
Question: 11
The following SAS program is submitted:
data WORK.TEST;
drop City;
infile datalines;
input
Name $ 1-14 /
Address $ 1-14 /
City $ 1-12 ;
if City='New York ' then input @1 State $2.;
else input;
datalines;
Joe Conley
123 Main St.
Janesville
WI
Jane Ngyuen
555 Alpha Ave.
New York
NY Jennifer Jason
666 Mt. Diablo
Eureka
CA ;
What will the data set WORK.TEST contain?

A. Name Address State


-------------- ---------------- ------
Joe Conley 123 Main St.
Jane Ngyuen 555 Alpha Ave. NY
Jennifer Jason 666 Mt. Diablo
B. Name Address City State
-------------- ---------------- ----------- ------
Joe Conley 123 Main St. Janesville
Jane Ngyuen 555 Alpha Ave. New York NY
Jennifer Jason 666 Mt. Diablo Eureka
C. Name Address State
-------------- ---------------- ------
Jane Ngyuen 555 Alpha Ave. NY
D. O observations,
there is a syntax error in the data step.

Answer: A

Question: 12

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211
The following SAS program is submitted:
data WORK.ACCOUNTING;
set WORK.DEPARTMENT;
label Jobcode='Job Description';
run;
Which statement is true about the output dataset?

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

Question: 13
The following code was modified to generate the results further below:
proc format;
value agegrp
low-12 ='Pre-Teen'
13-high = 'Teen';
run;
proc means data=SASHELP.CLASS;
var Height;
class Sex Age;
format Age agegrp.;
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:

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;

Answer: C

PassGuide.com - Make You Succeed To Pass IT Exams


PassGuide A00-211

Question: 14
The following SAS program is submitted:
data WORK.ONE;
Text='Australia, US, Denmark';
Pos=find(Text,'US','i',5);
run;
What value will SAS assign to Pos?

A. 0
B. 1
C. 2
D. 12

Answer: D

Question: 15
Given the following code:
proc print data=SASHELP.CLASS(firstobs=5 obs=15);
where Sex='M';
run;
How many observations will be displayed?

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

Answer: D

PassGuide.com - Make You Succeed To Pass IT Exams

S-ar putea să vă placă și