欢迎来到天天文库
浏览记录
ID:6823318
大小:103.50 KB
页数:13页
时间:2018-01-27
《sas base programming for sas》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、SASBaseProgrammingforSAS9Item1Thefollowingprogramissubmitted.datatest;inputname$age;cards;John+35;run;Whichvaluesarestoredintheoutputdataset?A.nameage---------------------John35B.nameage---------------------John(missingvalue)C.nameage---------------------(missingvalue)(missin
2、gvalue)D.TheDATAstepfailsexecutionduetodataerrors.correct_answer="A"Item2ThefollowingobservationisstoredinaSASdatasetnamedEMPLOYEES:LNAMEFNAMEJOBCODE---------------------------------WhitleySamna1IftheDATAstepbelowisexecuted,whatwillbethevalueofthevariableJOBDESCintheoutputSAS
3、datasetwhenthisobservationisprocessed:datanavigate;setemployees;ifjobcode='NA1'thenjobdesc='Navigator';run;A.navigatorB.NavigatorC.NAVIGATORD.amissingvaluecorrect_answer="D"Item3ThefollowingSASprogramissubmitted:procformat;valuescore1-50='Fail'51-100='Pass';run;Whichoneofthef
4、ollowingPRINTprocedurestepscorrectlyappliestheformat?A.procprintdata=sasuser.class;vartest;formattestscore;run;B.procprintdata=sasuser.class;vartest;formattestscore.;run;C.procprintdata=sasuser.classformat=score;vartest;run;D.procprintdata=sasuser.classformat=score.;vartest;r
5、un;correct_answer="B"Item4GiventhefollowingDATAstep:dataloop;x=0;doindex=1to5by2;x=index;end;run;Uponcompletionofexecution,whatarethevaluesofthevariablesXandINDEXintheSASdatasetnamedLOOP?A.x=3,index=3B.x=3,index=4C.x=5,index=5D.x=5,index=6E.x=5,index=7correct_answer="E"Item5G
6、iventhatthedatasetnamedONEcontains10observationsandthedatasetnamedTWOcontains10observations,howmanyobservationswillbecontainedinthedatasetnamedCOMBINEthatiscreatedinthefollowingDATAstep?datacombine;setonetwo;run;A.10B.20C.0,theDATAstepwillfailduetosyntaxerrorsD.10to20,dependi
7、ngonhowmanyobservationsmatchcorrect_answer="B"SASAdvancedProgrammingforSAS9Item1GiventhefollowingSASdatasetsONEandTWO:ThefollowingSASprogramissubmitted:procsql;selectone.*,salesfromonerightjointwoonone.year=two.year;quit;Whichoneofthefollowingreportsisgenerated?A.B.C.D.correc
8、t_answer="D"Item2GiventhefollowingSASdatasetsONEandTWO:ThefollowingS
此文档下载收益归作者所有