SASbase考试必备70真题附答案Word下载.docx

上传人:b****1 文档编号:5114456 上传时间:2023-05-04 格式:DOCX 页数:65 大小:28.96KB
下载 相关 举报
SASbase考试必备70真题附答案Word下载.docx_第1页
第1页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第2页
第2页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第3页
第3页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第4页
第4页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第5页
第5页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第6页
第6页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第7页
第7页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第8页
第8页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第9页
第9页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第10页
第10页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第11页
第11页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第12页
第12页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第13页
第13页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第14页
第14页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第15页
第15页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第16页
第16页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第17页
第17页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第18页
第18页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第19页
第19页 / 共65页
SASbase考试必备70真题附答案Word下载.docx_第20页
第20页 / 共65页
亲,该文档总共65页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

SASbase考试必备70真题附答案Word下载.docx

《SASbase考试必备70真题附答案Word下载.docx》由会员分享,可在线阅读,更多相关《SASbase考试必备70真题附答案Word下载.docx(65页珍藏版)》请在冰点文库上搜索。

SASbase考试必备70真题附答案Word下载.docx

Tina,FEB,15,18,12,13,Final

Tina,MAR,29,14,19,27,20,Current

Thefollowingoutputisdesired:

ObsNameMonthStatusWeek1Week2Week3Week4Week5

1JohnFEBFinal$13$25$14$27.

2JohnMARCurrent$26$17$29$11$23

3TinaFEBFinal$15$18$12$13.

4TinaMARCurrent$29$14$19$27$20

WhichSASprogramcorrectlyproducesthedesiredoutput?

A.

dataWORK.NUMBERS;

lengthName$4Month$3Status$7;

infile'

TEXTFILE.TXT'

dsd;

inputName$Month$;

ifMonth='

FEB'

theninputWeek1Week2Week3Week4Status$;

elseifMonth='

MAR'

theninputWeek1Week2Week3Week4Week5Status$;

formatWeek1-Week5dollar6.;

run;

procprintdata=WORK.NUMBERS;

B.

dlm='

'

missover;

C.

inputName$Month$@;

D.

dsd@;

C

3.TheExcelworkbookREGIONS.XLScontainsthefollowingfourworksheets:

EAST

WEST

NORTH

SOUTH

Thefollowingprogramissubmitted:

libnameMYXLS'

regions.xls'

WhichPROCPRINTstepcorrectlydisplaystheNORTHworksheet?

A.procprintdata=MYXLS.NORTH;

B.procprintdata=MYXLS.NORTH$;

C.procprintdata=MYXLS.'

NORTH'

e;

D.procprintdata=MYXLS.'

NORTH$'

n;

D

4.ThefollowingSASprogramissubmitted:

dataWORK.DATE_INFO;

Day="

01"

;

Yr=1960;

X=mdy(Day,01,Yr);

WhatisthevalueofthevariableX?

A.thenumericvalue0

B.thecharactervalue"

01011960"

C.amissingvalueduetosyntaxerrors

D.thestepwillnotcompilebecauseofthecharacterargumentinthemdyfunction.

5.Whichstatementspecifiesthatrecords1through10aretobereadfromtherawdatafilecustomer.txt?

A.infile'

customer.txt'

1-10;

B.input'

stop@10;

C.infile'

obs=10;

D.input'

stop=10;

6.AfteraSASprogramissubmitted,thefollowingiswrittentotheSASlog:

101dataWORK.JANUARY;

102setWORK.ALLYEAR(keep=productmonthnum_SoldCost);

103ifMonth='

Jan'

thenoutputWORK.JANUARY;

104Sales=Cost*Num_Sold;

105keep=ProductSales;

-----

22

ERROR22-322:

Syntaxerror,expectingoneofthefollowing:

!

!

!

&

*,**,+,-,,<

=,<

>

=,>

>

=,

AND,EQ,GE,GT,IN,LE,LT,MAX,MIN,NE,NG,NL,NOTIN,OR,^=,|,||,~=.

106run;

WhatchangesshouldbemadetotheKEEPstatementtocorrecttheerrorsintheLOG?

A.keep=(ProductSales);

B.keepProduct,Sales;

C.keep=Product,Sales;

D.keepProductSales;

-------------------------------------

7.WhichofthefollowingchoicesisanunacceptableODSdestinationforproducingoutputthatcanbeviewedinMicrosoftExcel?

A.MSOFFICE2K

B.EXCELXP

C.CSVALL

D.WINXP

8.TheSASdatasetnamedWORK.SALARYcontains10observationsforeachdepartment,andiscurrentlyorderedbyDepartment.ThefollowingSASprogramissubmitted:

setWORK.SALARY(keep=DepartmentMonthlyWageRate);

byDepartment;

ifFirst.Department=1thenPayroll=0;

Payroll+(MonthlyWageRate*12);

ifLast.Department=1;

Whichstatementistrue?

A.ThebystatementintheDATAstepcausesasyntaxerror.

B.ThestatementPayroll+(MonthlyWageRate*12);

inthedatastepcausesasyntaxerror.

C.ThevaluesofthevariablePayrollrepresentthemonthlytotalforeachdepartmentintheWORK.SALARYdataset.

D.ThevaluesofthevariablePayrollrepresentamonthlytotalforallvaluesofWAGERATEintheWORK.SALARYdataset.

10.ThefollowingSASprogramissubmitted:

dataWORK.RETAIL;

Cost='

$20,000'

Discount=.10*Cost;

Whatistheresult?

A.ThevalueofthevariableDiscountintheoutputdatasetis2000.NomessagesarewrittentotheSASlog.

B.ThevalueofthevariableDiscountintheoutputdatasetis2000.AnotethatconversionhastakenplaceiswrittentotheSASlog.

C.ThevalueofthevariableDiscountintheoutputdatasetismissing.AnoteintheSASlogreferstoinvalidnumericdata.

D.ThevariableDiscountintheoutputdatasetissettozero.NomessagesarewrittentotheSASlog.

C因为有一个$符号

11.GiventheexistingSASprogram:

procformat;

valueagegrp

low-12='

Pre-Teen'

13-high='

Teen'

procmeansdata=SASHELP.CLASS;

varHeight;

classSexAge;

formatAgeagegrp.;

Whichstatementintheprocmeansstepneedstobemodifiedoraddedtogeneratethefollowingresults:

AnalysisVariable:

Height

N

SexAgeObsMinimumMaximumMean

------------------------------------------------------------------

FPre-Teen351.359.855.8

Teen656.566.563.0

MPre-Teen457.364.859.7

Teen662.572.066.8

--------------------------------------------------------------------

 

A.varHeight/nobsminmaxmeanmaxdec=1;

B.procmeansdata=SASHELP.CLASSmaxdec=1;

C.procmeansdata=SASHELP.CLASSminmaxmeanmaxdec=1;

D.outputnobsminmaxmeanmaxdec=1;

12.TheExcelworkbookQTR1.XLScontainsthefollowingthreeworksheets:

JAN

FEB

MAR

WhichstatementcorrectlyassignsalibraryreferencetotheExcelworkbook?

A.libnameqtrdata'

qtr1.xls'

B.libname'

sheets=3;

C.libnamejanfebmar'

D.libnamemydata'

WORK.heets=(jan,feb,mar);

13.ThefollowingSASprogramissubmitted:

dataWORK.TEST;

setWORK.MEASLES(keep=JanptFebptMarpt);

arrayDiff{3}Difcount1-Difcount3;

arrayPatients{3}JanptFebptMarpt;

Whatnewvariablesarecreated?

A.Difcount1,Difcount2andDifcount3

B.Diff1,Diff2andDiff3

C.Janpt,Febpt,andMarpt

D.Patients1,Patients2andPatients3

14.WhichofthefollowingprogramscorrectlyinvokestheDATAStepDebugger:

dataWORK.TESTdebug;

setWORK.PILOTS;

State=scan(cityState,2,'

'

);

ifState='

NE'

thendescription='

Central'

dataWORK.TESTdebugger;

dataWORK.TEST/debug;

dataWORK.TEST/debugger;

c

15.WhichstatementistrueconcerningtheSASautomaticvariable_ERROR_?

A.Itcannotbeusedinanif/thencondition.

B.Itcannotbeusedinanassignmentstatement.

C.Itcanbeputintoakeepstatementorkeep=option.

D.Itisautomaticallydropped.

16.ThefollowingSASprogramissubmitted:

X='

04jul2005'

d;

DayOfMonth=day(x);

MonthOfYear=month(x);

Year=year(x);

WhattypesofvariablesareDayOfMonth,MonthOfYear,andYear?

A.DayOfMonth,Year,andMonthOfYeararecharacter.

B.DayOfMonth,Year,andMonthOfYeararenumeric.

C.DayOfMonthandYeararenumeric.MonthOfYearischaracter.

D.DayOfMonth,Year,andMonthOfYeararedatevalues.

B

17.Giventhefollowingdatastep:

dataWORK.GEO;

infiledatalines;

inputCity$20.;

ifCity='

Tulsa'

then

State='

OK'

Region='

LosAngeles'

CA'

Western'

datalines;

Tulsa

LosAngeles

Bangor

Afterdatastepexecution,whatwilldatasetWORK.GEOcontain?

CityStateRegion

-----------------------

TulsaOKWestern

LosAngelesCAWestern

BangorWestern

Bangor

TulsaOKCentral

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 总结汇报 > 学习总结

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2