Chapter Quiz

Select the best answer for each question. After completing the quiz, you can check your answers using the answer key in the appendix.
  1. If you submit the following program, which variables appear in the new data set?
    data work.cardiac(drop=age group); 
       set clinic.fitness(keep=age weight group); 
       if group=2 and age>40; 
    run;
    
    1. none
    2. Weight
    3. Age, Group
    4. Age, Weight, Group
  2. Which of the following programs correctly reads the data set Orders and creates the data set FastOrdr?
    1. data catalog.fastordr(drop=ordrtime); 
         set july.orders(keep=product units price); 
         if ordrtime<4; 
         Total=units*price; 
      run;
      
    2.  data catalog.orders(drop=ordrtime); set july.fastordr(keep=product units price); if ordrtime<4; Total=units*price; ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third 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.