Chapter Quiz

Select the best answer for each question. Check your answers using the answer key in the appendix.
  1. Which function calculates the average of the variables Var1, Var2, Var3, and Var4?
    1. mean(var1,var4)
    2. mean(var1-var4)
    3. mean(of var1,var4)
    4. mean(of var1-var4)
  2. Within the data set Hrd.Temp, PayRate is a character variable and Hours is a numeric variable. What happens when the following program is run?
    data work.temp; 
       set hrd.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 ...

Get SAS Certification Prep Guide, 4th 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.