全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1643 2
2011-01-28
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;
in file' 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 "Sue"?

A. 30
B. 33
C. 40
D. . (missing numeric value)


为什么选C,求点拨?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-1-28 08:07:20
首先,这个题貌似有错吧,idnum和age后面的读取位置有误。
其次,这道题考的应该是:input读完employee_name后,指针会跳到下一个目录。
因为if为Sue,所以指针跳到下一个目录读入age,即为40.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-28 11:05:59
baoaibaobao 发表于 2011-1-28 08:07
首先,这个题貌似有错吧,idnum和age后面的读取位置有误。
其次,这道题考的应该是:input读完employee_name后,指针会跳到下一个目录。
因为if为Sue,所以指针跳到下一个目录读入age,即为40.
说的是,谢谢谢谢,我明白了!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群