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 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.