SAS_Institute
A00-211 · Question #11
Given the raw data file YEARAMT: ----|---10---|---20---|----30 1901 2 1905 1 1910 6 1925 . 1941 1 The following SAS program is submitted: data coins; infile `yearamt'; input year quantity; <insert…
The correct answer is A. totquantity + quantity. See the full explanation below for the reasoning.
Question
Given the raw data file YEARAMT:
----|---10---|---20---|----30 1901 2 1905 1 1910 6 1925 . 1941 1 The following SAS program is submitted:
data coins; infile `yearamt'; input year quantity; <insert statement(s) here> run; Which statement(s) completed the program and produced a non-missing value for the variable TOTQUANTITY in the final observation of the output data set?
Options
- Atotquantity + quantity;
- Btotquantity = sum(totquantity + quantity);
- Cretain totquantity; totquantity = totquantity + quantity;
- Dretain totquantity0; totquantity = totquantity + quantity;
How the community answered
(43 responses)- A81% (35)
- B5% (2)
- C12% (5)
- D2% (1)
Community Discussion
No community discussion yet for this question.