A00-211 Exam QuestionsBrowse all questions from this exam

A00-211 Exam - Question 19


The following SAS program is submitted:

data work.retail;

cost = 20000;

total= .10* cost

run;

What is the result?

Show Answer
Correct Answer: BD

In the given SAS code, there is a syntax error because a semicolon is missing after the assignment of the variable 'total' ('.10 * cost'). This prevents the program from executing successfully. As a result, the variable 'TOTAL' in the output data set will not have a value, and the program will fail to execute. The correct answer is that the program fails to execute due to a syntax error.

Discussion

3 comments
Sign in to comment
KleinstoneOption: D
Dec 21, 2020

the answer for this question should be D? I run the code. there is no output if the semiconlon is missed before run.

KleinstoneOption: B
Jan 3, 2021

quotation mark of 20000 is missed if it is B.

Kleinstone
Jan 3, 2021

also, a semicolon is missed after the assignment of total.