SAS 考题 123(2)

2019-04-16 15:13

12

A SAS program is submitted and the following SAS log is produced: 2 data gt100; 3 set ia.airplanes

4 if mpg gt 100 then output; 22 202

ERROR: File WORK.IF.DATA does not exist. ERROR: File WORK.MPG.DATA does not exist. ERROR: File WORK.GT.DATA does not exist. ERROR: File WORK.THEN.DATA does not exist. ERROR: File WORK.OUTPUT.DATA does not exist.

ERROR 22-322: Syntax error, expecting one of the following: a name,

a quoted string, (, ;, END, KEY, KEYS, NOBS, OPEN, POINT, _DATA_, _LAST_, _NULL_. ERROR 202-322: The option or parameter is not recognized and will be ignored. 5 run;

The IA libref was previously assigned in this SAS session. Which one of the following corrects the errors in the LOG? A. Delete the word THEN on the IF statement.

B. Add a semicolon at the end of the SET statement. C. Place quotes around the value on the IF statement. D. Add an END statement to conclude the IF statement. 13

The contents of the raw data file SIZE are listed below: --------10-------20-------30 72 95

The following SAS program is submitted: data test; infile 'size';

input @1 height 2. @4 weight 2; run;

Which one of the following is the value of the variable WEIGHT in the output data set? A. 2 B. 72 C. 95

D. . (missing numeric value) 14

A SAS PRINT procedure output of the WORK.LEVELS data set is listed below: Obs name level 1 Frank 1 2 Joan 2 3 Sui 2

6

4 Jose 3 5 Burt 4 6 Kelly . 7 Juan 1

The following SAS program is submitted: data work.expertise; set work.levels; if level = . then

expertise = 'Unknown'; else if level = 1 then expertise = 'Low';

else if level = 2 or 3 then expertise = 'Medium'; else

expertise = 'High'; run;

Which of the following values does the variable EXPERTISE contain? A. Low, Medium, and High only B. Low, Medium, and Unknown only

C. Low, Medium, High, and Unknown only

D. Low, Medium, High, Unknown, and ' ' (missing character value) 15

The contents of the raw data file EMPLOYEE are listed below: --------10-------20-------30 Ruth 39 11 Jose 32 22 Sue 30 33 John 40 44

The following SAS program is submitted: data test;

infile 'employee';

input employee_name $ 1-4;

if employee_name = 'Ruth' then input idnum 10-11; else input age 7-8; run;

Which one of the following values does the variable IDNUM contain when the name of the employee is \A. 11 B. 22 C. 32

D. . (missing numeric value) 16

7

The contents of the raw data file EMPLOYEE are listed below: --------10-------20-------30 Ruth 39 11 Jose 32 22 Sue 30 33 John 40 44

The following SAS program is submitted: data test;

infile 'employee';

input employee_name $ 1-4;

if employee_name = 'Sue' then input age 7-8; else input idnum 10-11; run;

Which one of the following values does the variable AGE contain when the name of the employee is \A. 30 B. 33 C. 40

D. . (missing numeric value) 17

The following SAS program is submitted: libname sasdata 'SAS-data-library'; data test;

set sasdata.chemists; if jobcode = 'Chem2'

then description = 'Senior Chemist'; else description = 'Unknown'; run;

A value for the variable JOBCODE is listed below: JOBCODE chem2

Which one of the following values does the variable DESCRIPTION contain? A. Chem2 B. Unknown

C. Senior Chemist

D. ' ' (missing character value) 18

The following SAS program is submitted: libname sasdata 'SAS-data-library'; data test;

set sasdata.chemists; if jobcode = 'chem3'

8

then description = 'Senior Chemist'; else description = 'Unknown'; run;

A value for the variable JOBCODE is listed below: JOBCODE CHEM3

Which one of the following values does the variable DESCRIPTION contain? A. chem3 B. Unknown

C. Senior Chemist

D. ' ' (missing character value) 19

Which one of the following ODS statement options terminates output being written to an HTML file? A. END B. QUIT C. STOP D. CLOSE 20

The following SAS program is submitted:

proc means data = sasuser.shoes;

where product in ('Sandal' , 'Slipper' , 'Boot'); run;

Which one of the following ODS statements completes the program and sends the report to an HTML file?

A. ods html = 'sales.html'; B. ods file = 'sales.html';

C. ods file html = 'sales.html'; D. ods html file = 'sales.html'; 21

The following SAS program is submitted: proc format;

value score 1 - 50 = 'Fail' 51 - 100 = 'Pass'; run;

proc report data = work.courses nowd; column exam;

define exam / display format = score.; run;

The variable EXAM has a value of 50.5.

9

How will the EXAM variable value be displayed in the REPORT procedure output? A. Fail B. Pass C. 50.5

D. . (missing numeric value) 22

The following SAS program is submitted: options pageno = 1;

proc print data = sasuser.houses; run;

proc means data = sasuser.shoes; run;

The report created by the PRINT procedure step generates 5 pages of output.

What is the page number on the first page of the report generated by the MEANS procedure step? A. 1 B. 2 C. 5 D. 6 23

Which one of the following SAS system options displays the time on a report? A. TIME B. DATE C. TODAY D. DATETIME 24

Which one of the following SAS system options prevents the page number from appearing on a report?

A. NONUM B. NOPAGE C. NONUMBER D. NOPAGENUM

25 The following SAS program is submitted: footnote1 'Sales Report for Last Month'; footnote2 'Selected Products Only'; footnote3 'All Regions';

footnote4 'All Figures in Thousands of Dollars'; proc print data = sasuser.shoes; footnote2 'All Products'; run;

Which one of the following contains the footnote text that is displayed in the report?

10


SAS 考题 123(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:【精品】2018年四川省德阳市中考生物试卷及答案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: