Chapter 1: Base Programming

  1. How many observations and variables does the data set below contain?
    image
    1. 3 observations, 4 variables
    2. 3 observations, 3 variables
    3. 4 observations, 3 variables
    4. can't tell because some values are missing
    Correct answer: c
    Rows in the data set are called observations, and columns are called variables. Missing values don't affect the structure of the data set.
  2. How many program steps are executed when the program below is processed?
    data user.tables; 
       infile jobs;  
       input date name $ job $;  
    run;  
    proc sort data=user.tables;  
       by name;  
    run;  
    proc print data=user.tables;  
    run;
    
    1. three
    2. four

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.