A00-211 practice questions, page 11 of 11, with answer review and explanations.
Question 51
The following SAS program is submitted: data work.retail; cost = 20000; total= .10* cost run; What is the result?
The value of the variable TOTAL in the output data set is 2000. No messages are written to the SAS log.
The value of the variable TOTAL in the output data set is 2000. A note that conversion has taken place is written to the SAS log.
The value of the variable TOTAL in the output data set is missing. An error message is written to the SAS log.
The variable TOTAL in the output data set has no value. The program fails to execute due to a syntax error.
Question 52
The following SAS program is submitted: Data_null_; set old; put sales 1 sales2; run; Where is the output written?
to the SAS log
to the SAS data set _NULL_
to the SAS output window or to an output file
to the raw data file that was most recently opened
Question 53
The following SAS program is submitted: data work.test; array items{3} _temporary_; run; What are the names of the variable(s) in the WORKTEST data set?
ITEMS
ITEMS1, ITEMS2, ITEMS3
No variables are created because it is a temporary array.
The program fails to execute because there are no variables listed on the ARRAY statement.
Question 54
Read the table - The following SAS program is submitted: proc freq data = sales; run; The following output is created by the FREQUENCY procedure: Which TABLES statement(s) completed the program and produced the output?