Chapter Quiz

Select the best answer for each question. Check your answers using the answer key in the appendix.
  1. Within the data set Cert.Temp, PayRate is a character variable and Hours is a numeric variable. What happens when the following program is run?
    data work.temp; 
       set cert.temp; 
       Salary=payrate*hours; 
    run;
    1. SAS converts the values of PayRate to numeric values. No message is written to the log.
    2. SAS converts the values of PayRate to numeric values. A message is written to the log.
    3. SAS converts the values of Hours to character values. No message is written to the log.
    4. SAS converts the values of Hours to character values. A message is written to the log.
  2. A typical value for the character variable Target is ...

Get SAS Certification Prep Guide, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.