




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 Item 1 of 63 Mark item for review 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. Item 2 of 63 Ma
2、rk item for review 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 index(Id_Code) on WORK.CHECK; C. make index=Id_Code from WORK.CHECK; D. define index(Id_Code) in WORK.CHECK;
3、 Item 3 of 63 Mark item for review Given the SAS data sets: WORK.EMPLOYEE WORK.NEWEMPLOYEE Name Dept Names Salary - - - - 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.EM
4、PLOYEE 104 where name=(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 with: where EMPLOYEE.Name=(select Names delimited with ',
5、' from WORK.NEWEMPLOYEE where Salary > 40000); B. Replace line 104 with: where EMPLOYEE.Name =ANY (select Names separated with ',' from WORK.NEWEMPLOYEE where Salary > 40000); C. Replace the equal sign with the IN operator. D. Qualify the column names with the table names. Item 4 o
6、f 63 Mark item for review Given the SAS data set SASUSER.HIGHWAY: Steering Seatbelt Speed Status Count - - - - - 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 following SAS program is submitted: proc sql noprint;
7、select distinct Speed _insert_SQL_clause_ from SASUSER.HIGHWAY ; quit; title1 "Speed values represented are: &GROUPS" proc print data=SASUSER.HIGHWAY; run; Which SQL clause stores the text 0-29,30-49,50+ in the macro variable GROUPS? A. into &GROUPS B. into :GROUPS C. into :GROUPS
8、separated by ',' D. into &GROUPS separated by ',' Item 5 of 63 Mark item for review The SAS data set WORK.CHECK has an index on the variable Code and the following SAS program is submitted. proc sort data=WORK.CHECK; by Code; run; Which describes the result of submitting the SAS
9、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 not execute. Item 6 of 63 Mark item for review The table WORK.PILOTS contains the following data: WORK.PILOTS Id Name Jobcode Salary - - - - 001 Albert PT1 50000 002 Brenda
10、 PT1 70000 003 Carl PT1 60000 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 70000 60000 PT1 60000 60000 PT2 80000 85000 PT2 90000 85000 PT3 100000 100000 Which SQL sta
11、tement could NOT generate this result? A. select Jobcode, Salary, avg(Salary) label='Avg' from WORK.PILOTSgroup by Jobcodeorder 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 ; C. select Job
12、code, Salary, (select avg(Salary) from WORK.PILOTS group by Jobcode) as Avg from WORK.PILOTSorder by Id ; D. select Jobcode, Salary, Avg from WORK.PILOTS, (select Jobcode as Jc, avg(Salary) as Avg from WORK.PILOTS group by 1)where Jobcode=Jcorder by Id ; Item 7 of 63 Mark item for review A quick rul
13、e 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 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. Item 8 of 63 Mark
14、 item for review 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 decrease C. CPU time will decrease, wall clock time will increase D. CPU time will increase,
15、wall clock time will increase Item 9 of 63 Mark item for review Given the SAS data set WORK.TRANSACT: Rep Cost Ship - - - SMITH 200 50 SMITH 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 used? A. select rep, min(Cos
16、t+Ship)from WORK.TRANSACT order by Rep ; B. select Rep, min(Cost,Ship) as Minfrom WORK.TRANSACT summary by Reporder by Rep ; C. select Rep, min(Cost,Ship)from WORK.TRANSACT group by Rep order by Rep ; D. select Rep, min(Cost+Ship)from WORK.TRANSACT group by Rep order by Rep ; Item 10 of 63 Mark item
17、 for review The following SAS program is submitted: %let Value=9; %let Add=5; %let Newval=%eval(&Value/&Add); %put &Newval; What is the value of the macro variable Newval when the %PUT statement executes? A. 0.555 B. 2 C. 1.8 D. 1 Item 11 of 63 Mark item for review The following SAS code
18、 is submitted: 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; 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
19、when the view TEMP is used in another SAS step. C. The data set is not created because the DATA statement contains a syntax error. D. The descriptor portion of WORK.ERRORS is created when the DATA step is submitted. Item 12 of 63 Mark item for review Which title statement would always display the cu
20、rrent date? A. title "Today is: &sysdate." B. title "Today is: &sysdate9." C. title "Today is: &today." D. title "Today is: %sysfunc(today(),worddate.)" Item 13 of 63 Mark item for review Given the SAS data sets: WORK.ONE WORK.TWO Id Name Id Salary
21、 - - - - 112 Smith 243 150000 243 Wei 355 45000 457 Jones 523 75000 The following SAS program is submitted: data WORK.COMBINE; merge WORK.ONE WORK.TWO; by Id; run; Which SQL procedure statement produces the same results? A. create table WORK.COMBINE as select Id, Name, Salary from WORK.ONE full join
22、 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 ; 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.Idorder by
23、Id ; D. 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 order by ONE.Id ; Item 14 of 63 Mark item for review The following SAS program is submitted: proc contents data=TESTDATA.ONE; run; Which SQL procedure step produces si
24、milar information about 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; Item 15 of 63 Mark item for review Given the SA
25、S 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 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
26、100 C. JONES 280 SMITH 280 D. JONES 100 JONES 100 SMITH 600 SMITH 600 SMITH 600 Item 16 of 63 Mark item for review Given the SAS data sets: WORK.MATH1A WORK.MATH1B Name Fi Name Fi - - - - Lauren L Smith M Patel A Lauren L Chang Z Patel A Hillier R The following SAS program is submitted: proc sql; se
27、lect * from WORK.MATH1A _insert_set_operator_ select * from WORK.MATH1B ; quit; The following output is desired: 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 desired output? A. append corr B. union corr C. oute
28、r union corr D. intersect corr Item 17 of 63 Mark item for review Which of the following is an advantage of SAS views? A. SAS views can access the most current data in files that are frequently updated. B. SAS views can avoid storing a SAS copy of a large data file. C. SAS views can decrease program
29、ming time. D. both A and B are true Item 18 of 63 Mark item for review In what order does SAS search for format definitions by default? A. 1. WORK.FORMATS 2. LIBRARY.FORMATS B. 1. LIBRARY.FORMATS 2. WORK.FORMATS C. There is no default order, it must be defined by the user. D. All user defined librar
30、ies that have a catalog named FORMATS, in alphabetic order. Item 19 of 63 Mark item for review Given the dataset WORK.STUDENTS: Name Age - - Mary 15 Philip 16 Robert 12 Ronald 15 The following SAS program is submitted: %let Value=Philip; proc print data=WORK.STUDENTS; _insert_WHERE_statement_ run; W
31、hich WHERE statement successfully completes the program and produces a report? A. where upcase(Name)=upcase(&Value); B. where upcase(Name)=%upcase(&Value); C. where upcase(Name)="upcase(&Value)" D. where upcase(Name)="%upcase(&Value)" Item 20 of 63 Mark item for r
32、eview The following SAS program is submitted: data WORK.TEMP; length A B 3 X; infile RAWDATA; input A B X; run; What is the length of variable A? A. 3 B. 8 C. WORK.TEMP is not created - X has an invalid length. D. Unknown. Item 21 of 63 Mark item for review The following SAS program is submitted: da
33、ta WORK.NEW; do i=1, 2, 3; Next=cats('March' | i ); infile XYZ filevar=Next end=Eof; do until (Eof); input Dept $ Sales; end; end; run; The purpose of the FILEVAR=option on the INFILE statement is to name the variable Next, whose value: A. points to a new input file. B. is output to the SAS
34、data set WORK.NEW. C. is an input SAS data set reference. D. points to an aggregate storage location. Item 22 of 63 Mark item for review Given the following partial SAS log: NOTE: SQL table SASHELP.CLASS was created like: create table SASHELP.CLASS( bufsize=4096 ) ( Name char(8), Sex char(1), Age nu
35、m, Height num, Weight num ); Which SQL procedure statement generated this output? A. CONTENTS FROM SASHELP.CLASS; B. CREATE FROM SASHELP.CLASS INTO LOG; C. DESCRIBE TABLE SASHELP.CLASS; D. VALIDATE SELECT * FROM SASHELP.CLASS; Item 23 of 63 Mark item for review Given the SAS data set SASUSER.HIGHWAY
36、: Steering Seatbelt Speed Status Count - - - - - 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 following SAS program is submitted: %macro SPLIT; proc sort data=SASUSER.HIGHWAY out=WORK.UNIQUES(keep=Status) nodupke
37、y; by Status; run; data _null_; set uniques end=Lastobs; call symputx('Status'|left(_n_),Status); if Lastobs then call symputx('Count',_n_); run; %local i; data %do i=1 %to &count; _insert_reference_ %end; ; set SASUSER.HIGHWAY; select(Status); %do i=1 %to &Count; when("
38、_insert_reference_") output _insert_reference_; %end; otherwise; end; run; %mend; %SPLIT What macro variable reference completes the program to create the WORK.NOT and WORK.SERIOUS data sets? A. &Status&i B. &&Status&i C. &Status&Count D. &&Status&Count I
39、tem 24 of 63 Mark item for review The following SAS program is submitted: %let Num1=7; %let Num2=3; %let Result=%eval(&Num1/&Num2); %put &Result; What is the value of the macro variable Result when the %PUT statement executes? A. 2.3 B. 2 C. . (missing value) D. 2.33333333333333 Item 25 of 63 Mark item for review Given the SAS data set SASUSER.HIGHWAY: Steering Seatbelt Speed Status Count - - - - - 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 21
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2019-2025年消防設(shè)施操作員之消防設(shè)備高級(jí)技能題庫(kù)練習(xí)試卷B卷附答案
- 2025年度主管護(hù)師考試專項(xiàng)復(fù)習(xí)試題庫(kù)50題及答案(四)
- 生物熒光知識(shí)培訓(xùn)課件
- 紀(jì)錄片美麗的自然教學(xué)教案設(shè)計(jì)
- 工廠生產(chǎn)線產(chǎn)量進(jìn)度表
- 解決方案推廣計(jì)劃
- 西游記唐僧取經(jīng)之旅解讀
- 企業(yè)內(nèi)部信息安全技術(shù)保障服務(wù)合同
- 小紅帽新編故事讀后感
- 技術(shù)創(chuàng)新成果統(tǒng)計(jì)表
- 臨時(shí)工雇傭合同范本2025年度
- (二調(diào))武漢市2025屆高中畢業(yè)生二月調(diào)研考試 地理試卷
- “艾梅乙”感染者消除醫(yī)療歧視制度-
- 2024-2025學(xué)年八年級(jí)地理下冊(cè)第七章《南方地區(qū)》檢測(cè)卷(人教版)
- 森林防火知識(shí)
- 2025年黑龍江林業(yè)職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試題庫(kù)帶答案
- 第二單元第1課《精彩瞬間》第2課時(shí) 課件-七年級(jí)美術(shù)下冊(cè)(人教版2024)
- 2025年公共營(yíng)養(yǎng)師三級(jí)理論試題及答案
- 煤礦防治水安全質(zhì)量標(biāo)準(zhǔn)化評(píng)分表
- 2025電動(dòng)自行車安全技術(shù)規(guī)范培訓(xùn)課件
- 小學(xué)語(yǔ)文常見(jiàn)的說(shuō)明方法(四年級(jí)下冊(cè)第二單元)
評(píng)論
0/150
提交評(píng)論