SAS_Institute
A00-211 · Question #80
A raw data file is listed below: --------10-------20-------30 squash 1.10 apples 2.25 juice 1.69 The following SAS program is submitted using the raw data file above: data groceries; infile…
The correct answer is C. retain grandtot 0. See the full explanation below for the reasoning.
Question
A raw data file is listed below:
--------10-------20-------30 squash 1.10 apples 2.25 juice 1.69 The following SAS program is submitted using the raw data file above:
data groceries; infile 'file-specification'; input item $ cost; run; Which one of the following completes the program and produces a grand total for all COST values?
Options
- Agrandtot = sum cost;
- Bgrandtot = sum(grandtot,cost);
- Cretain grandtot 0;
- Dgrandtot = sum(grandtot,cost);
How the community answered
(35 responses)- A6% (2)
- B17% (6)
- C74% (26)
- D3% (1)
Community Discussion
No community discussion yet for this question.