140k views
2 votes
Does this comment contain syntax errors?

/*
Report created for budget
presentation; revised October 15.
*/
proc print data=work.newloan;
run;

a. No. The comment is correctly specified.
b. Yes. Every comment line must end with a semicolon.
c. Yes. The comment is on more than one line.
d. Yes. There is a semicolon in the middle of the comment.

User Mbtamuli
by
8.7k points

1 Answer

6 votes

Final answer:

The comment in question does not contain any syntax errors. Option a. No. The comment is correctly specified is the correct answer.

Step-by-step explanation:

The comment in question does not contain any syntax errors. In SAS programming language, comments are specified using the /* */ notation. The comment can span multiple lines and does not require a semicolon at the end. It is used to provide descriptive information about the code and is ignored by the compiler.

In this case, the comment "Report created for budgetpresentation; revised October 15." is correctly specified as a single-line comment and does not contain any syntax errors. Therefore, option a. No. The comment is correctly specified is the correct answer.

User Juan Ramos
by
7.9k points