z*******e 发帖数: 32 | 1 42. The following SAS program is submitted:
data temp;
array points{3,2} _temporary_ (10,20,30,40,50,60);
score = points{2,1};
run;
What is the value of the variable SCORE in the data set TEMP?
A.20
B.30
C.40
D.. (missing numeric)
我是这么理解的:
VALUE POSITION VALUE POSITION
10 (1,1) 40(1,2)
20 (2,1) 50(2,2)
30 (3,1) 60(3,2)
那么(2,1)不就是20吗?怎么答案是30呢? | Z********6 发帖数: 10 | 2 "SAS places variables into a two-dimensional array by filling all rows in
order, beginning at the upper-left corner of the array (known as row-major
order)."
The dimension {3,2}是指3行2列,按行从左往右,所以第2行第1列对应是第三个数--30. |
|