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

SAS base 考试必备 70真题(附答案)

来源:用户分享 时间:2025/6/25 0:00:01 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

A. norowcount nocolcount B. freq percent C. norow nocol D. nocounts

Answer: C

------------------------------------------------------------------

48.The following SAS program is submitted:

data WORK.TEST; drop City;

infile datalines; input

Name $ 1-14 / Address $ 1-14 / City $ 1-12 ;

if City='New York ' then input @1 State $2.; else input; datalines; Joe Conley 123 Main St. Janesville WI

Jane Ngyuen 555 Alpha Ave. New York NY

Jennifer Jason 666 Mt. Diablo Eureka CA ;

What will the data set WORK.TEST contain?

A.

Name Address State -------------- ---------------- ------ Joe Conley 123 Main St.

Jane Ngyuen 555 Alpha Ave. NY Jennifer Jason 666 Mt. Diablo

B.

Name Address City State -------------- ---------------- ----------- ------ Joe Conley 123 Main St. Janesville

Jane Ngyuen 555 Alpha Ave. New York NY Jennifer Jason 666 Mt. Diablo Eureka

C.

Name Address State -------------- ---------------- ------

Jane Ngyuen 555 Alpha Ave. NY

D. O observations,there is a syntax error in the data step.

Answer: A

------------------------------------------------------------------

49.The following SAS program is submitted:

data WORK.TOTALSALES(keep=MonthSales{12});

set WORK.MONTHLYSALES(keep=Year Product Sales); array MonthSales{12}; do i=1 to 12;

MonthSales{i}=Sales; end; drop i; run;

The program fails execution due to syntax errors. What is the cause of the syntax error?

A. An array cannot be referenced on a keep= data set option. B. The keep= data set option should be (keep=MonthSales*).

C. The keep= data set option should be the statement KEEP MonthSales{12}. D. The variable MonthSales does not exist.

Answer: A

------------------------------------------------------------------

50.Given the SAS data set WORK.ONE:

Id Char1 --- ----- 111 A

158 B 329 C 644 D

and the SAS data set WORK.TWO:

Id Char2 --- ----- 111 E 538 F 644 G

The following program is submitted:

data WORK.BOTH;

set WORK.ONE WORK.TWO; by Id; run;

What is the first observation in SAS data set WORK.BOTH?

A. Id Char1 Char2 --- ----- ----- 111 A

B.

Id Char1 Char2 --- ----- ----- 111 E

C.

Id Char1 Char2 --- ----- ----- 111 A E

D.

Id Char1 Char2 --- ----- ----- 644 D G

Answer: A

------------------------------------------------------------------ 51.The following program is submitted:

proc contents data=_all_; run;

Which statement best describes the output from the submitted program?

A. The output contains only a list of the SAS data sets that are contained in the WORK library.

B. The output displays only the contents of the SAS data sets that are contained in the WORK library.

C. The output displays only the variables in the SAS data sets that are contained in the WORK library.

D. The output contains a list of the SAS data sets that are contained in the WORK library and displays the contents of those data sets.

Answer: D

------------------------------------------------------------------

52.Given the SAS data set WORK.EMP_NAME:

Name EmpID ---- ----- Jill 1864 Jack 2121 Joan 4698 John 5463

Given the SAS data set WORK.EMP_DEPT:

EmpID Department ----- ----------

2121 Accounting 3567 Finance 4698 Marketing 5463 Accounting

The following program is submitted:

data WORK.ALL;

merge WORK.EMP_NAME(in=Emp_N) WORK.EMP_DEPT(in=Emp_D); by Empid;

if (Emp_N and not Emp_D) or (Emp_D and not Emp_N); run;

搜索更多关于: SAS base 考试必备 70真题(附答案) 的文档
SAS base 考试必备 70真题(附答案).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c16j9q9odaa6ksx798r4y_8.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top