A00-211

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?

  1. The value of the variable TOTAL in the output data set is 2000. No messages are written to the SAS log.
  2. 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.
  3. The value of the variable TOTAL in the output data set is missing. An error message is written to the SAS log.
  4. 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?

  1. to the SAS log
  2. to the SAS data set _NULL_
  3. to the SAS output window or to an output file
  4. 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?

  1. ITEMS
  2. ITEMS1, ITEMS2, ITEMS3
  3. No variables are created because it is a temporary array.
  4. 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?

  1. tables region product;
  2. tables region * product;
  3. tables product * region;
  4. tables product; tables region;