SAS Base Programming for SAS 9 — Question 7

The following SAS program is submitted:
data work.retail;
cost = 20000;
total= .10* cost
run;
What is the result?

Answer options

Correct answer: B

Explanation

The correct answer is B because the calculation of total as .10 * cost correctly results in 2000, and SAS will log a note indicating a conversion. Option A is incorrect because it fails to mention the log note. Option C incorrectly states that TOTAL is missing, and option D suggests a syntax error, which does not occur in this code.