欢迎来到天天文库
浏览记录
ID:48621107
大小:93.01 KB
页数:46页
时间:2020-01-30
《SAS 考题 123.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、SAS考题123BaseSAS1ThefollowingSASprogramissubmitted:datatest;setsasuser.employees;if2leyears_servicele10thenamount=1000;elseifyears_servicegt10thenamount=2000;elseamount=0;amount_per_year=years_service/amount;run;WhichoneofthefollowingvaluesdoesthevariableA
2、MOUNT_PER_YEARcontainifanemployeehasbeenwiththecompanyforoneyear?A.0B.1000C.2000D..(missingnumericvalue)AnswerisD.BaseSAS2ThefollowingSASprogramissubmitted:datatest;setsasuser.employees;if2leyears_servicele10thenamount=1000;elseifyears_servicegt10thenamou
3、nt=2000;elseamount=0;amount_per_year=years_service/46amount;run;WhichoneofthefollowingvaluesdoesthevariableAMOUNT_PER_YEARcontainifanemployeehasbeenwiththecompanyforoneyear?A.0B.1000C.2000D..(missingnumericvalue)AnswerisB/D1ThefollowingSASprogramissubmitt
4、ed:datatest;setsasuser.employees;if2leyears_servicele10thenamount=1000;elseifyears_servicegt10thenamount=2000;elseamount=0;amount_per_year=years_service/amount;run;WhichoneofthefollowingvaluesdoesthevariableAMOUNT_PER_YEARcontainifanemployeehasbeenwiththe
5、companyforoneyear?A.0B.1000C.2000D..(missingnumericvalue)2ThecontentsoftherawdatafileAMOUNTarelistedbelow:--------10-------20-------30$1,234ThefollowingSASprogramissubmitted:datatest;infile'amount';input@1salary6.;if_error_thendescription='Problems';elsed
6、escription='NoProblems';run;WhichoneofthefollowingisthevalueoftheDESCRIPTIONvariable?A.ProblemsB.No46ProblemsC.''(missingcharactervalue)D.Thevaluecannotbedeterminedastheprogramfailstoexecuteduetoerrors.3ThecontentsoftherawdatafileNAMENUMarelistedbelow:---
7、-----10-------20-------30JoexxThefollowingSASprogramissubmitted:datatest;infile'namenum';inputname$number;run;WhichoneofthefollowingisthevalueoftheNUMBERvariable?A.xxB.JoeC..(missingnumericvalue)D.Thevaluecannotbedeterminedastheprogramfailstoexecuteduetoe
8、rrors.4ThecontentsoftherawdatafileNAMENUMarelistedbelow:--------10-------20-------30JoexxThefollowingSASprogramissubmitted:datatest;infile'namenum';inputname$number;run;WhichoneofthefollowingisthevalueoftheNUMBERvar
此文档下载收益归作者所有