SAS_Institute
A00-201 · Question #61
A00-201 Question #61: Real Exam Question with Answer & Explanation
Sign in or unlock A00-201 to reveal the answer and full explanation for question #61. The question stem and answer options stay visible for context.
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;
<insert statement(s) here>
run;
Which one of the following completes the program and produces a grand total for all COST values?
Options
- A.grandtot = sum cost;
- B.grandtot = sum(grandtot,cost);
- C.retain grandtot 0; grandtot = sum(grandtot,cost);
- D.grandtot = sum(grandtot,cost);
Unlock A00-201 to see the answer
You've previewed enough free A00-201 questions. Unlock A00-201 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.