SAS 考题 123Word文件下载.docx

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

SAS 考题 123Word文件下载.docx

《SAS 考题 123Word文件下载.docx》由会员分享,可在线阅读,更多相关《SAS 考题 123Word文件下载.docx(73页珍藏版)》请在冰点文库上搜索。

SAS 考题 123Word文件下载.docx

1

2

ThecontentsoftherawdatafileAMOUNTarelistedbelow:

--------10-------20-------30

$1,234

infile'

amount'

;

input@1salary6.;

if_error_thendescription='

Problems'

elsedescription='

NoProblems'

WhichoneofthefollowingisthevalueoftheDESCRIPTIONvariable?

A.Problems

B.NoProblems

C.'

'

(missingcharactervalue)

D.Thevaluecannotbedeterminedastheprogramfailstoexecuteduetoerrors.

3

ThecontentsoftherawdatafileNAMENUMarelistedbelow:

Joexx

namenum'

inputname$number;

WhichoneofthefollowingisthevalueoftheNUMBERvariable?

A.xx

B.Joe

C..(missingnumericvalue)

4

5

WhichoneofthefollowingisthevalueoftheSALARYvariable?

A.1234

B.1,234

C.$1,234

6

WhichoneofthefollowingstatementsistrueregardingtheSASautomatic_ERROR_variable?

A.The_ERROR_variablecontainsthevalues'

ON'

or'

OFF'

.

B.The_ERROR_variablecontainsthevalues'

TRUE'

FALSE'

C.The_ERROR_variableisautomaticallystoredintheresultingSASdataset.

D.The_ERROR_variablecanbeusedinexpressionsorcalculationsintheDATAstep.

7

WhichoneofthefollowingistruewhenSASencountersadataerrorinaDATAstep?

A.TheDATAstepstopsexecutingatthepointoftheerror,andnoSASdatasetiscreated.

B.AnoteiswrittentotheSASlogexplainingtheerror,andtheDATAstepcontinuestoexecute.

C.AnoteappearsintheSASlogthattheincorrectdatarecordwassavedtoaseparateSASfileforfurtherexamination.

D.TheDATAstepstopsexecutingatthepointoftheerror,andtheresultingDATAsetcontainsobservationsuptothatpoint.

8

datawork.totalsales(keep=monthsales{12});

setwork.monthlysales(keep=yearproductsales);

arraymonthsales{12};

doi=1to12;

monthsales{i}=sales;

end;

ThedatasetnamedWORK.MONTHLYSALEShasoneobservationpermonthforeachoffiveyearsforatotalof60observations.

Whichoneofthefollowingistheresultoftheaboveprogram?

A.Theprogramfailsexecutionduetodataerrors.

B.Theprogramfailsexecutionduetosyntaxerrors.

C.TheprogramexecuteswithwarningsandcreatestheWORK.TOTALSALESdataset.

D.TheprogramexecuteswithouterrorsorwarningsandcreatestheWORK.TOTALSALESdataset.

9ThefollowingSASprogramissubmitted:

datawork.totalsales;

setwork.monthlysales(keep=yearproductsales);

retainmonthsales{12};

doi=1to12;

cnt+1;

monthsales{cnt}=sales;

C.TheprogramrunswithwarningsandcreatestheWORK.TOTALSALESdatasetwith60observations.

D.TheprogramrunswithouterrorsorwarningsandcreatestheWORK.TOTALSALESdatasetwith60observations.

10

datawork.january;

setwork.allmonths(keep=productmonthnum_soldcost);

ifmonth='

Jan'

thenoutputwork.january;

sales=cost*num_sold;

keep=productsales;

WhichvariablesdoestheWORK.JANUARYdatasetcontain?

A.PRODUCTandSALESonly

B.PRODUCT,MONTH,NUM_SOLDandCOSTonly

C.PRODUCT,SALES,MONTH,NUM_SOLDandCOSTonly

D.Anincompleteoutputdatasetiscreatedduetosyntaxerrors.

11

ThecontentsoftherawdatafileCALENDARarelistedbelow:

01012000

calendar'

input@1datemmddyy10.;

ifdate='

01012000'

dthenevent='

January1st'

WhichoneofthefollowingisthevalueoftheEVENTvariable?

A.01012000

B.January1st

12

ASASprogramissubmittedandthefollowingSASlogisproduced:

2datagt100;

3setia.airplanes

4ifmpggt100thenoutput;

22202

ERROR:

FileWORK.IF.DATAdoesnotexist.

FileWORK.MPG.DATAdoesnotexist.

FileWORK.GT.DATAdoesnotexist.

FileWORK.THEN.DATAdoesnotexist.

FileWORK.OUTPUT.DATAdoesnotexist.

ERROR22-322:

Syntaxerror,expectingoneofthefollowing:

aname,

aquotedstring,(,;

END,KEY,KEYS,NOBS,OPEN,POINT,_DATA_,_LAST_,_NULL_.

ERROR202-322:

Theoptionorparameterisnotrecognizedandwillbeignored.

5run;

TheIAlibrefwaspreviouslyassignedinthisSASsession.

WhichoneofthefollowingcorrectstheerrorsintheLOG?

A.DeletethewordTHENontheIFstatement.

B.AddasemicolonattheendoftheSETstatement.

C.PlacequotesaroundthevalueontheIFstatement.

D.AddanENDstatementtoconcludetheIFstatement.

13

ThecontentsoftherawdatafileSIZEarelistedbelow:

7295

size'

input@1height2.@4weight2;

WhichoneofthefollowingisthevalueofthevariableWEIGHTintheoutputdataset?

A.2

B.72

C.95

14

ASASPRINTprocedureoutputoftheWORK.LEVELSdatasetislistedbelow:

Obsnamelevel

1Frank1

2Joan2

3Sui2

4Jose3

5Burt4

6Kelly.

7Juan1

datawork.expertise;

setwork.levels;

iflevel=.then

expertise='

Unknown'

elseiflevel=1then

Low'

elseiflevel=2or3then

Medium'

High'

WhichofthefollowingvaluesdoesthevariableEXPERTISEcontain?

A.Low,Medium,andHighonly

B.Low,Medium,andUnknownonly

C.Low,Medium,High,andUnknownonly

D.Low,Medium,High,Unknown,and'

15

ThecontentsoftherawdatafileEMPLOYEEarelistedbelow:

Ruth3911

Jose3222

Sue3033

John4044

employee'

inputemployee_name$1-4;

ifemployee_name='

Ruth'

theninputidnum10-11;

elseinputage7-8;

WhichoneofthefollowingvaluesdoesthevariableIDNUMcontainwhenthenameoftheemployeeis"

Ruth"

?

A.11

B.22

C.32

16

Sue'

theninputage7-8;

elseinputidnum10-11;

WhichoneofthefollowingvaluesdoesthevariableAGEcontainwhenthenameoftheemployeeis"

Sue"

A.30

B.33

C.40

17

libnamesasdata'

SAS-data-library'

setsasdata.chemists;

ifjobcode='

Chem2'

thendescription='

SeniorChemist'

AvalueforthevariableJOBCODEislistedbelow:

JOBCODE

chem2

WhichoneofthefollowingvaluesdoesthevariableDESCRIPTIONcontain?

A.Chem2

B.Unknown

C.SeniorChemist

D.'

18

chem3'

CHEM3

A.chem3

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

当前位置:首页 > 工程科技 > 能源化工

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

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