Chapter 1: Base Programming

  1. How many observations and variables does the data set below contain?
    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 $;  
    proc sort data=user.tables;  
       by name;  
    proc print data=user.tables;  
    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.