由买买提看人间百态

topics

全部话题 - 话题: mlgrams1
(共0页)
t*****s
发帖数: 49
1
来自主题: Statistics版 - SAS Base 50题中的30和33题疑问
路过的牛人请分析一下。我下周考base。多谢先。
Q30 我的疑问---关于auto conversion of character-to-numeric variable:
当character variable和一个numeric value比较时,auto conversion will happen,
为什么这里不行?
when a character variable compared to a numeric value, the character
variable will be auto-converted to numberic variable --- from SAS base Prep
Guide P402
以下程序我在sas上试过了,的确是d,但不明白为什么这里不自动转换。
Q30.The descriptor and data portions of the Work.Salaries data set are shown
below.
Variable Type Len Posname Char 8 0
salary status ... 阅读全帖
j******e
发帖数: 180
2
准备考base,今天看了50题,有些感觉好像不对啊
请大家能给我讲讲为啥吗?
32.Which TITLE statement would display JANE'S DOG as the text of the title?
a. title "JANE"S DOG";
b. title 'JANE"S DOG';
c. title "JANE'S DOG";
d. title 'JANE' ' 'S DOG';
这个我看online tutor 的时候记得有讲B也对啊,C也可以。答案却是C
那为啥B不对啊,我在网上查也有这样的写法
The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the
outp... 阅读全帖
w*********a
发帖数: 3
3
来自主题: Statistics版 - 问一道SAS BASE的题
33.The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the
output data set?
a. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000
b. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000.87
c. animal1 animal2 mlgrams1 mlgrams2
hummingbird ostrich 54000.39 90800000
答案选的是b,但我怎么感觉不对啊?ch
p***a
发帖数: 78
4
来自主题: Statistics版 - 请教下这个sas题目。。。
The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the
output data set?
a. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000
b. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000.87
c. animal1 animal2 mlgrams1 mlgrams2
hummingbird ostrich 54000.39 90800000
正确答案是B。 为什么A不对呢? numeric default leng... 阅读全帖
l****g
发帖数: 304
5
来自主题: Statistics版 - 请教, base 50 一个题目,
The default length for the variable is 8. , so why the answer is b, not a?
Is the length of '90800000.87' greater than 8?
Thanks!
33.The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the
output data set?
a. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000
b. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich
m*******r
发帖数: 16
6
来自主题: Statistics版 - 【求助】SAS Base 一道题
33.The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the
output data set?
a. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000
b. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000.39 90800000.87
为什么选b 不选 a?
numeric variable default 不是8位么?
A*********u
发帖数: 8976
7
来自主题: Statistics版 - 请教, base 50 一个题目,
http://www.caspur.it/risorse/softappl/doc/sas_docs/win/numvar.htm

The default length for the variable is 8. , so why the answer is b, not a?
Is the length of '90800000.87' greater than 8?
Thanks!
33.The following SAS program is submitted:
data test;
input animal1 $ animal2 $
mlgrams1 mlgrams2;
cards;
hummingbird ostrich 54000.39 90800000.87
;
run;
Which one of the following represents the values of each variable in the
output data set?
a. animal1 animal2 mlgrams1 mlgrams2
hummingb ostrich 54000
d******9
发帖数: 404
8
来自主题: Statistics版 - SAS Base 50题中的30和33题疑问
Q33.
mlgrams1 mlgrams2, they are numeric values. Numeric values are totally
different in storage from character variables.
The default length is N8, so the maximum value can be 2**64-1.
(共0页)