ImageVerifierCode 换一换
格式:DOC , 页数:36 ,大小:136.51KB ,
资源ID:2669061      下载积分:12 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/2669061.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(SASAdv12月真题-63题.doc)为本站上传会员【w****g】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

SASAdv12月真题-63题.doc

1、1. When attempting to minimize memory usage, the most efficient way to do group processing when using the MEANS procedure is to use: A. the BY statement. B. GROUPBY with the NOTSORTED specification. C. the CLASS statement. D. multiple WHERE statements. (The question is

2、 pretty clear-cut, IMO. It alludes to the "standard" long- > bearded practical trick used in the situation when MEANS/SUMMARY with CLASS > uses too much memory. It does not ask what is more efficient in general > (which would be to use something else instead of MEANS if possible), just > what le

3、ads to the minimal memory footprint, and the answer is A. (Answer B > is just a distraction - a common device in computer-adaptive tests). The > reason is that without BY, MEANS creates and builds its AVL tree for the > entire file and all categorical values crossings found in CLASS. With BY, >

4、the proc builds the tree for the current BY group only, computes the stats, > then erases the tree before the next BY group starts, creates and builds it > again, and so on. The erase/create process is not a zero cost one, so the > smaller the more numerous the BY groups are, the more it slows do

5、es the > processing; however, the smaller is the largest BY group, the smaller is the > memory footprint.) 2. The SAS data set WORK.CHECK has a variable named Id_Code in it. Which SQL statement would create an index on this variable? A. create index Id_Code on WORK.CHECK; B. create i

6、ndex(Id_Code) on WORK.CHECK; C. make index=Id_Code from WORK.CHECK; D.define index(Id_Code) in WORK.CHECK; 3. Given the SAS data sets: WORK.EMPLOYEE WORK.NEWEMPLOYEE Name Dept Names Salary -------- ----- -------- ---

7、 Alan Sales Michelle 50000 Michelle Sales Paresh 60000 A SAS program is submitted and the following is written to the SAS log: 101 proc sql; 102 select dept, name 103 from WORK.EMPLOYEE 104 where name=

8、select names from newemployee where salary > 40000) ERROR: Subquery evaluated to more than one row. 105 ; 106 quit; What would allow the program to successfully execute without errors? A. Replace the where clause w

9、ith: where EMPLOYEE.Name=(select Names delimited with ',' from WORK.NEWEMPLOYEE where Salary > 40000); B. Replace line 104 with: where EMPLOYEE.Name =ANY (select Names separated with ',' from WORK.NEWE

10、MPLOYEE where Salary > 40000); (any表示要有多个值,而=只能要求一个值。) C. Replace the equal sign with the IN operator. D. Qualify the column names with the table names. 4. Given the SAS data set SASUSER.HIGHWAY: Steering Seatbelt Speed Status Count ----

11、 -------- ----- ------- ----- absent No 0-29 serious 31 absent No 0-29 not 1419 absent No 30-49 serious 191 absent no 30-49 not 2004 absent no 50+ serious 216 The fol

12、lowing SAS program is submitted: proc sql noprint; select distinct Speed [_insert_SQL_clause_] from SASUSER.HIGHWAY ; quit; title1 "Speed values represented are: &GROUPS"; proc print data=SASUSER.HIGHWAY; run; Whic

13、h SQL clause stores the text 0-29, 30-49, 50+ in the macro variable GROUPS? A. into &GROUPS B. into :GROUPS C. into :GROUPS separated by ',' D. into &GROUPS separated by ',' (2012/11/17日考题中选项有改动,但是答案没有变。) 5. The SAS data set WORK.CHECK has an index on the variable Code and

14、the following SAS program is submitted. proc sort data=WORK.CHECK; by Code; run; Which describes the result of submitting the SAS program? A. The index on Code is deleted. B. The index on Code is updated. C. The index on Code is uneffected. D. The sort does no

15、t execute. (在于有了index的variable,不能再用by来SORT了。) 6. The table WORK.PILOTS contains the following data: WORK.PILOTS Id Name Jobcode Salary --- ------ ------- ------ 001 Albert PT1 50000 002 Brenda PT1 70000 003 Carl PT1 60000

16、004 Donna PT2 80000 005 Edward PT2 90000 006 Flora PT3 100000 The data set was summarized to include average salary based on jobcode: Jobcode Salary Avg ------- ------ ----- PT1 50000 60000 PT1

17、 70000 60000 PT1 60000 60000 PT2 80000 85000 PT2 90000 85000 PT3 100000 100000 Which SQL statement could NOT generate this result? A. select Jobcode, Salary, avg(Salary) label='Avg' from WOR

18、K.PILOTS group by Jobcode order by Id ; B. select Jobcode, Salary, (select avg(Salary) from WORK.PILOTS as P1 where P1.Jobcode=P2.Jobcode) as Avg from WORK.PILOTS as P2 order by Id ; (这里利用的是自身的数据集,分别设置不同的别名,可以当做两个数据集来使用。不过这里WHERE

19、语句很值得学习,我个人对这里的WHERE语句这样理解的:(select avg(Salary) from WORK.PILOTS as P1 where P1.Jobcode=P2.Jobcode)启示执行之后返回的是三个AVG均值,但是因为这三个AVG均值都是与JOBCODE匹配的,那么前面的select Jobcode, Salary,所以当执行到(select avg(Salary) from WORK.PILOTS as P1 where P1.Jobcode=P2.Jobcode)这里时,实际上是选择了select jobcode 中jobcode对应的avg均值。) C. sel

20、ect Jobcode, Salary, (select avg(Salary) from WORK.PILOTS group by Jobcode) as Avg from WORK.PILOTS order by Id ; (子查询涉及不止一项。) D. select Jobcode, Salary, Avg from WORK.PILOTS, (select Jobcode as Jc,

21、 avg(Salary) as Avg from WORK.PILOTS group by 1) where Jobcode=Jc order by Id ; 7. A quick rule of thumb for the space required to run PROC SORT is: A. two times the size of the SAS data set being sorted. B. three times the size of the SAS data set being

22、sorted. C. four times the size of the SAS data set being sorted. D. five times the size of the SAS data set being sorted. (140-2010: Dear Miss SASAnswers: A Guide to Sorting Your Data 中的描述是这样的: If you want the sort to complete entirely in memory, a simple rule of thumb is four times

23、 the size of the data set. In releases prior to SAS 9, the required workspace is approximately three to four times the size of the data file. Beginning with SAS 9, the required workspace is approximately twice the size of the data file. The workspace can be allocated in memory and/or on disk as a

24、 utility file, depending on which sort utility and options are specified. Dear MissSASAnswers, Can you please give me some guidance on how much memory it takes to sort a 2GB table Signed, Memory Deprived Dear Memory Deprived, If you want the sort to complete entirely in memory, a simple

25、 rule of thumb is four times the size of the data set. And I'm assuming the data set is not compressed or being subset with a DROP=/KEEP= data set option or a WHERE statement. A better estimate would be to use this formula to predict the amount of memory: ((length of observation+sum of lengths

26、 of BY variables)*number of observations)* 1.10 The amount of space that the SAS sort needs depends on the following conditions: • whether the sort can be done with threading • the length of the observations • the number of variables in the BY statement and their storage lengths • the oper

27、ating environment in which PROC SORT executes • whether the LINGUISTIC= option is being used (that takes more memory) Use the SORTSIZE= option in the PROC SORT statement to do the following: • specify the amount of memory that is available to the SORT procedure • improve the sort performanc

28、e by restricting the swapping of memory to disk that is controlled by the operating system ) 8. Multi-threaded processing for PROC SORT will effect which of these system resources? A. CPU time will decrease, wall clock time will decrease B. CPU time will increase, wall clock time will d

29、ecrease C. CPU time will decrease, wall clock time will increase D. CPU time will increase, wall clock time will increase 9. Given the SAS data set WORK.TRANSACT: Rep Cost Ship ----- ----- ----- SMITH 200 50 SM

30、ITH 400 20 JONES 100 10 SMITH 600 100 JONES 100 5 The following output is desired: Rep ----- ---- JONES 105 SMITH 250 Which SQL statement was

31、used? A. select rep, min(Cost+Ship) from WORK.TRANSACT order by Rep ; B. select Rep, min(Cost,Ship) as Min from WORK.TRANSACT summary by Rep order by Rep ; C. select Rep, min(Cost,Ship) from WORK.TRANSACT group by R

32、ep order by Rep ; (改成min(sum(cost,ship))才对) D. select Rep, min(Cost+Ship) from WORK.TRANSACT group by Rep order by Rep ; 10. The following SAS program is submitted: %let Value=9; %let Add=5; %let Newval=%eval(&Value/&Add); %put &Ne

33、wval; What is the value of the macro variable Newval when the %PUT statement executes? A. 0.555 B. 2 C. 1.8 D. 1 11. The following SAS code is submitted: data WORK.TEMP WORK.ERRORS / view=WORK.TEMP; infile RAWDATA; input Xa Xb Xc; if Xa=. then o

34、utput WORK.ERRORS; else output WORK.TEMP; run; Which of the following is true of the WORK.ERRORS data set? A. The data set is created when the DATA step is submitted. B. The data set is created when the view TEMP is used in another SAS step. C. The data set is not created because the

35、 DATA statement contains a syntax error. D. The descriptor portion of WORK.ERRORS is created when the DATA step is submitted. (A DATA step view cannot contain global statements, host-specific data set options, or most host-specific FILE and INFILE statements. Also, a DATA step view cannot be i

36、ndexed or compressed. 假设在d盘建SAS文件夹下有view.txt文件: . 10 11 10 11 12 . 10 12 21 22 23 在SAS编程如下: filename rawdata 'd:\sas\view.txt'; data WORK.TEMP WORK.ERRORS / view=WORK.TEMP; infile rawdata; input Xa Xb Xc; if Xa=. then output WORK.ERRORS; else output WORK.TEMP; run; proc

37、print data=temp; run;这道题很有味道。 如果rawdata是在SAS安装系统的默认地址下,那么加上分号就可以了。 ) 12. Which title statement would always display the current date? A. title "Today is: &sysdate."; B. title "Today is: &sysdate9."; C. title "Today is: &today."; D. title "Today is: %sysfunc(today(),word

38、date.)"; 13. Given the SAS data sets: WORK.ONE WORK.TWO Id Name Id Salary --- ------ --- ------ 112 Smith 243 150000 243 Wei 355 45000 457 Jones 523 75000

39、 The following SAS program is submitted: data WORK.COMBINE; merge WORK.ONE WORK.TWO; by Id; run; ( like horizontal full join ) Which SQL procedure statement produces the same results? A. create table WORK.COMBINE as select Id, Name,

40、 Salary from WORK.ONE full join WORK.TWO on ONE.Id=TWO.Id ; B.create table WORK.COMBINE as select coalesce(ONE.Id, TWO.Id) as Id, Name, Salary from WORK.ONE, WORK.TWO where ONE.Id=TWO.Id ;

41、 C. create table WORK.COMBINE as select coalesce(ONE.Id, TWO.Id) as Id, Name, Salary from WORK.ONE full join WORK.TWO on ONE.Id=TWO.Id order by Id ; D. create table WORK.COMBINE as select coalesce(ONE.Id, TWO.Id) as I

42、d, Name, Salary from WORK.ONE, WORK.TWO where ONE.Id=TWO.Id order by ONE.Id ; 14. The following SAS program is submitted: proc contents data=TESTDATA.ONE; run; Which SQL procedure step produces similar information about

43、 the column attributes of TESTDATA.ONE? A. proc sql; contents from TESTDATA.ONE; quit; B. proc sql; describe from TESTDATA.ONE; quit; C. proc sql; contents table TESTDATA.ONE; quit; D. proc sql; describe table TESTDATA.ONE; quit; 15

44、 Given the SAS data set WORK.ONE: Rep Cost ----- ---- SMITH 200 SMITH 400 JONES 100 SMITH 600 JONES 100 The following SAS program is submitted; proc sql; select

45、 Rep, avg(Cost) from WORK.ONE order by Rep ; quit; Which result set would be generated? A. JONES 280 JONES 280 SMITH 280 SMITH 280 SMITH 280 B. JONES 600 SMITH 100 C. JONES 280 SMITH 280 D.

46、 JONES 100 JONES 100 SMITH 600 SMITH 600 SMITH 600 16. Given the SAS data sets: WORK.MATH1A WORK.MATH1B Name Fi Name Fi ------- -- ------ -- Lauren L Smith M Patel A Lauren

47、L Chang Z Patel A Hillier R The following SAS program is submitted: proc sql; select * from WORK.MATH1A [_insert_set_operator_] select * from WORK.MATH1B ; quit; The following output is desired:

48、 Name Fi ------- -- Lauren L Patel A Chang Z Hillier R Smith M Lauren L Patel A Which SQL set operator completes the program and generates the

49、desired output? A. append corr B. union corr (select unique rows) C. outer union corr (using corr to overlay by the same names) D. intersect corr 17. Which of the following is an advantage of SAS views? A. SAS views can access the most current data in files that are freque

50、ntly updated. B. SAS views can avoid storing a SAS copy of a large data file. C. SAS views can decrease programming time. D. both A and B are true 18. In what order does SAS search for format definitions by default? A. 1. WORK.FORMATS 2. LIBRARY.FORMATS B. 1. LIBRARY.FORMATS 2. WO

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服