没有合适的资源?快使用搜索试试~ 我知道了~
首页跟crackman做sas base认证试题(70题)
资源详情
资源评论
资源推荐
1.
1
The following SAS program is submitted:
data WORK.TOTAL;
set WORK.SALARY;
by Department Gender;
if First.<_insert_code_> then Payroll=0;
Payroll+Wagerate;
if Last.<_insert_code_>;
run;
The SAS data set WORK.SALARY is currently ordered by Gender within Department.
Which inserted code will accumulate subtotals for each Gender within Department?
A. Gender
B. Department
C. Gender Department
D. Department Gender
2.
2
Given the following raw data records in TEXTFILE.TXT:
—-|—-10—|—-20—|—-30
John,FEB,13,25,14,27,Final
John,MAR,26,17,29,11,23,Current
Tina,FEB,15,18,12,13,Final
Tina,MAR,29,14,19,27,20,Current
The following output is desired:
Obs Name Month Status Week1 Week2 Week3 Week4 Week5
1 John FEB Final $13 $25 $14 $27 .
2 John MAR Current $26 $17 $29 $11 $23
3 Tina FEB Final $15 $18 $12 $13 .
4 Tina MAR Current $29 $14 $19 $27 $20
Which SAS program correctly produces the desired output?
A.
data WORK.NUMBERS;
length Name $ 4 Month $ 3 Status $ 7;
infile ‘TEXTFILE.TXT’ dsd;
input Name $ Month $;
if Month=‘FEB’ then input Week1 Week2 Week3 Week4 Status $;
else if Month=‘MAR’ then input Week1 Week2 Week3 Week4 Week5 Status $;
format Week1-Week5 dollar6.;
run;
proc print data=WORK.NUMBERS;
run;
B.
data WORK.NUMBERS;
length Name $ 4 Month $ 3 Status $ 7;
infile ‘TEXTFILE.TXT’ dlm=‘,’ missover;
input Name $ Month $;
if Month=‘FEB’ then input Week1 Week2 Week3 Week4 Status $;
else if Month=‘MAR’ then input Week1 Week2 Week3 Week4 Week5 Status $;
format Week1-Week5 dollar6.;
run;
proc print data=WORK.NUMBERS;
run;
C.
data WORK.NUMBERS;
length Name $ 4 Month $ 3 Status $ 7;
infile ‘TEXTFILE.TXT’ dlm=‘,’;
input Name $ Month $ @;
if Month=‘FEB’ then input Week1 Week2 Week3 Week4 Status $;
else if Month=‘MAR’ then input Week1 Week2 Week3 Week4 Week5 Status $;
format Week1-Week5 dollar6.;
run;
proc print data=WORK.NUMBERS;
run;
D.
data WORK.NUMBERS;
length Name $ 4 Month $ 3 Status $ 7;
infile ‘TEXTFILE.TXT’ dsd @;
input Name $ Month $;
if Month=‘FEB’ then input Week1 Week2 Week3 Week4 Status $;
else if Month=‘MAR’ then input Week1 Week2 Week3 Week4 Week5 Status $;
format Week1-Week5 dollar6.;
run;
proc print data=WORK.NUMBERS;
run;
3.
3
The Excel workbook REGIONS.XLS contains the following four worksheets:
EAST
WEST
NORTH
SOUTH
The following program is submitted:
libname MYXLS ‘regions.xls’;
Which PROC PRINT step correctly displays the NORTH worksheet?
A. proc print data=MYXLS.NORTH;run;
B. proc print data=MYXLS.NORTH$;run;
C. proc print data=MYXLS.’NORTH’e;run;
D. proc print data=MYXLS.’NORTH$’n;run;
4.
4
The following SAS program is submitted:
data WORK.DATE_INFO;
Day=”01” ;
Yr=1960 ;
X=mdy(Day,01,Yr) ;
run;
What is the value of the variable X?
A. the numeric value 0
B. the character value ”01011960”
C. a missing value due to syntax errors
D. the step will not compile because of the character argument in the mdy function.
5.
5
Which statement specifies that records 1 through 10 are to be read from the raw data file
customer.txt?
A. infile ‘customer.txt’ 1-10;
B. input ‘customer.txt’ stop@10;
C. infile ‘customer.txt’ obs=10;
D. input ‘customer.txt’ stop=10;
6.
6
After a SAS program is submitted, the following is written to the SAS log:
101 data WORK.JANUARY;
102 set WORK.ALLYEAR(keep=product month num_Sold Cost);
103 if Month=‘Jan’ then output WORK.JANUARY;
104 Sales=Cost * Num_Sold;
105 keep=Product Sales;
—–
22
ERROR 22-322: Syntax error, expecting one of the following: !,!!, &, *, **, +, -, , <=, <>, =,
>, >=,
AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL,NOTIN, OR, ^=, |, ||, ~=.
106 run;
What changes should be made to the KEEP statement to correct the errors in the LOG?
A. keep=(Product Sales);
B. keep Product, Sales;
C. keep=Product, Sales;
D. keep Product Sales;
7.
7
Which of the following choices is an unacceptable ODS destination for producing output that can
be viewed in Microsoft Excel?
A. MSOFFICE2K
B. EXCELXP
C. CSVALL
D. WINXP
8.
8
The SAS data set named WORK.SALARY contains 10 observations for each department,and is currently
ordered by Department. The following SAS program is submitted:
data WORK.TOTAL;
set WORK.SALARY(keep=Department MonthlyWageRate);
by Department;
if First.Department=1 then Payroll=0;
Payroll+(MonthlyWageRate*12);
if Last.Department=1;
run;
Which statement is true?
A. The by statement in the DATA step causes a syntax error.
B. The statement Payroll+(MonthlyWageRate*12); in the data step causes a syntax error.
C. The values of the variable Payroll represent the monthly total for each department in
the WORK.SALARY data set.
D. The values of the variable Payroll represent a monthly total for all values of WAGERATE
in the WORK.SALARY data set.
9.
9
data course;
input exam;
datalines;
50.1
;
run;
proc format;
value score 1 – 50 = ‘Fail’
51 – 100 = ‘Pass’;
run;
proc report data =course nowd;
column exam;
define exam / display format=score.;
run;
What is the value for exam?
A. Fail
B. Pass
C. 50.1
D. No output
10.
10
The following SAS program is submitted:
data WORK.RETAIL;
Cost=‘$20.000’;
Discount=.10*Cost;
run;
What is the result?
A. The value of the variable Discount in the output data set is 2000.No messages are
written to the SAS log.
B. The value of the variable Discount in the output data set is 2000.A note that conversion
has taken place is written to the SAS log.
C. The value of the variable Discount in the output data set is missing.A note in the SAS
log refers to invalid numeric data.
D. The variable Discount in the output data set is set to zero.No messages are written to
the SAS log.
11.
11
Given the existing SAS program:
剩余50页未读,继续阅读
student-jz
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0