楼主: Yvonnej1987
2423 8

[原创博文] 求指点!谢谢! [推广有奖]

  • 0关注
  • 0粉丝

初中生

76%

还不是VIP/贵宾

-

威望
0
论坛币
8 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
116 点
帖子
18
精华
0
在线时间
4 小时
注册时间
2012-8-30
最后登录
2012-10-12

楼主
Yvonnej1987 发表于 2012-9-13 01:49:30 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

QUESTION 29

The following SAS program is submitted:?


libnametemp 'SAS-data-library';


data work.new;


set temp.jobs;


format newdate mmddyy10.;


qdate= qtr(newdate);


ddate= weekday(newdate);


run;


proc print data = work.new;


run;


The variable NEWDATE contains the SAS date value forApril 15, 2000. What output is produced if April 15, 2000 falls on a Saturday?

A. Obs newdate qdate ddate 1 APR152000 2 6


B. Obs newdate qdate ddate 1 04/15/2000 2 6

C. Obs newdate qdate ddate 1 APR152000 2 7


D. Obs newdate qdate ddate 1 04/15/2000 2 7

Answer: D

为什么不是B呢?

二维码

扫码加我 拉你入群

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

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

关键词:求指点 following Saturday Variable produced following produced

沙发
Yvonnej1987 发表于 2012-9-13 01:51:40
QUESTION 38
The SASDATA.BANKS data set has five observations when the following SAS
program is submitted:

libnamesasdata 'SAS-date-library';

data allobs;

set sasdata.banks;

capital=0;

do year = 2000 to 2020 by 5;

capital + ((capital+2000) * rate);

output;

end;

How many observations will the ALLOBS data set contain?
A. 5 B. 15 C. 20 D. 25
Answer: D
do year = 2000 to 2020 by 5;
不就是2000,2005,2010,2015,2020共5个obersvations吗?

藤椅
Yvonnej1987 发表于 2012-9-13 01:54:32
???QUESTION 39
A raw data file is listed below:

----|----10---|----20---|----30

John McCloskey 35 71

June Rosesette 10 43

TinekeJones 9 37

The following SAS program is submitted using the raw data file as input:
data work.homework;

infile 'file-specification';

input name $ age height;

if age LE 10;

run;

How many observations will the WORK.HOMEWORK data set contain?
A. 0

B. 2

C. 3

D. No data set is created as the program fails to execute due to errors.
Answer: C
row data里后面两列数字是第一列是age,后一列是height吗?如果是这样的话,不应该是B吗?

板凳
Yvonnej1987 发表于 2012-9-13 01:56:14
QUESTION 59
The following SAS program is submitted:

data work.staff;

JobCategory= 'FA';

JobLevel= '1';

jobCategory= JobCategory || JobLevel;

run;

Which one of the following is the value of the variable JOBCATEGORY in the output data set?
A. FA

B. FA1

C. FA 1

D. ' ' (missing character value)
Answer: A
对正确答案无疑问。只是想弄清楚jobCategory= JobCategory || JobLevel;
到底是什么意思?“||”代表什么啊?

报纸
pobel 在职认证  发表于 2012-9-13 08:17:40
SAS Help: The WEEKDAY function produces an integer that represents the day of the week, where 1=Sunday, 2=Monday, ..., 7=Saturday
和谐拯救危机

地板
pobel 在职认证  发表于 2012-9-13 08:19:26
Yvonnej1987 发表于 2012-9-13 01:51
QUESTION 38
The SASDATA.BANKS data set has five observations when the following SAS
program i ...
set SASDATA.BANKS;会读入5条记录,每条记录执行do循环会有5个output。因此会有5*5=25条
和谐拯救危机

7
pobel 在职认证  发表于 2012-9-13 08:26:09
Yvonnej1987 发表于 2012-9-13 01:54
???QUESTION 39
A raw data file is listed below:

----|----10---|----20---|----30

input name $ age height;

list input中每一行的第一个词会赋值给变量name,也就是John, June, 和TinekeJones;而且根据name的长度有的值会被截断。
每一行的接下来读入的值会赋给age,即McCloskey, Rosesette, 和9. 因此前两行age的值会是空值(字符到数值的自动转换。)
height的值分别为35,10,和37
和谐拯救危机

8
Yvonnej1987 发表于 2012-9-13 10:43:02
pobel 发表于 2012-9-13 08:26
input name $ age height;

list input中每一行的第一个词会赋值给变量name,也就是John, June, 和 ...
谢谢哦!请问能解答下第59题吗?

9
pobel 在职认证  发表于 2012-9-13 10:55:15
Yvonnej1987 发表于 2012-9-13 01:56
QUESTION 59
The following SAS program is submitted:

data work.staff;

JobCatego ...
||是连接符,将左右两个字符串连接起来。
这个题应该考察的是字符型变量的长度。字符型变量的长度在DATA步中第一次出现这个变量时决定。
此处jobcategory='FA'; 决定了这个变量长度是2。所以后边尝试将更长的字符串赋值给这个变量时,超出的部分就被截掉了。
和谐拯救危机

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 20:22