小菜小谋,这两个题怎么得出这答案呢?
1)The contents of the raw data file SIZE are listed below:
----|----10---|----20---|----30
72 95
The following SAS program is submitted:
data test;
infile 'size';
input@ 1 height 2. @ 4 weight 2;
run;
Which one of the following is the value of the variable WEIGHT in the output data set?
A. 2
B. 72
C. 95
D. . (missing numeric value)
answer:A
************************
2)The following SAS program is submitted:
data work.january;
set work.allmonths (keep=product month num_sold cost);
if month='jan'then output work.january;
sales=cost*num_sold;
keep=product sales;
run;
Which variables does the WORK.JANUARY data set contain?
A. PRODUCT and SALES only
B. PRODUCT, MONTH, NUM_SOLD and COST only
C. PRODUCT, SALES, MONTH, NUM_SOLD and COST only
D. An incomplete output data set is created due to syntax errors.
answer: D
