77范文网 - 专业文章范例文档资料分享平台

SAS ADVANCE(63题,无答案版,适合独立练习使用)(6)

来源:网络收集 时间:2020-06-03 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

set SASUSER.HIGHWAY; select(Status);

%do i=1 %to &Count;

when(\ %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

Item 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 216

The following SAS program is submitted:

%macro HIGHWAY(Belt=no);

proc print data=SASUSER.HIGHWAY; where Seatbelt=\ run; %mend;

%HIGHWAY(Belt=No)

How many observations appear in the generated report?

A. 0

B. 2

C. 3

D. 5

Item 26 of 63 Mark item for review

Given the following SAS data sets:

WORK.VISIT1 WORK.VISIT2

Id Expense Id Cost --- ------- --- ---- 001 500 001 300 001 400 002 600 003 350

The following result set was summarized and consolidated using the SQL procedure:

Id Cost --- ---- 001 300 001 900 002 600 003 350

Which of the following SQL statements was most likely used to generate this result?

A. select

Id,

sum(Expense) label='COST' from WORK.VISIT1 group by 1 union all select Id,

sum(Cost) from WORK.VISIT2 group by 1 order by 1,2 ;

B. select id,

sum(expense) as COST from

WORK.VISIT1(rename=(Expense=Cost)), WORK.VISIT2

where VISIT1.Id=VISIT2.Id group by Id order by Id, Cost ;

C. select

VISIT1.Id,

sum(Cost) as Cost from

WORK.VISIT1(rename=(Expense=Cost)), WORK.VISIT2

where VISIT1.Id=VISIT2.Id group by Id order by Id, Cost ;

D. select Id,

sum(Expense) as Cost from WORK.VISIT1 group by Id outer union corr select Id,

sum(Cost) from WORK.VISIT2 group by Id order by 1,2 ;

Item 27 of 63 Mark item for review

Given the SAS data sets:

WORK.FIRST WORK.SECOND

Common X Common Y ------ -- ------ -- A 10 A 1 A 13 A 3 A 14 B 4 B 9 B 2

The following SAS program is submitted:

data WORK.COMBINE; set WORK.FIRST; set WORK.SECOND; run;

What data values are stored in data set WORK.COMBINE?

A.

Common X Y ------ -- -- A 10 1

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库SAS ADVANCE(63题,无答案版,适合独立练习使用)(6)在线全文阅读。

SAS ADVANCE(63题,无答案版,适合独立练习使用)(6).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/jiaoyu/1085629.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: