nerdexam
SAS_Institute

A00-201 · Question #73

A00-201 Question #73: Real Exam Question with Answer & Explanation

The correct answer is A. totquantity = sum(totquantity + quantity);. See the full explanation below for the reasoning.

Question

A raw data file is listed below: -----10----|----20----|----30 1901 2 1905 1 1910 6 1925 . 1941 1 The following SAS program is submitted and references the raw data file above: data coins; infile 'file-specification'; input year quantity; totquantity + quantity; <insert statement(s) here> run; Which one of the following completes the program and produces a non-missing value for the variable TOTQUANTITY in the last observation of the output data set?

Options

  • Atotquantity = sum(totquantity + quantity);
  • Btotquantity + sum(totquantity, quantity);
  • Ctotquantity 0;
  • Dretain totquantity 0; totquantity = totquantity + quantity;

Community Discussion

No community discussion yet for this question.

Full A00-201 Practice