Chapter 15: Processing Variables with Arrays

  1. Which statement is false regarding an ARRAY statement?
    1. It is an executable statement.
    2. It can be used to create variables.
    3. It must contain either all numeric or all character elements.
    4. It must be used to define an array before the array name can be referenced.
    Correct answer: a
    An ARRAY statement is not an executable statement; it merely defines an array.
  2. What belongs within the braces of this ARRAY statement?
    array contrib{?} qtr1-qtr4;
    
    1. quarter
      
    2. quarter*
      
    3. 1-4
      
    4. 4 
      
    Correct answer: d
    The value in parentheses indicates the number of elements in the array. In this case, there are four elements.
  3. For the program below, select an iterative ...

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.