Chapter Quiz

Select the best answer for each question. Check your answers using the answer key in the appendix.
  1. How many observations and variables does the data set below contain?
    Data Set
    1. 3 observations, 4 variables
    2. 3 observations, 3 variables
    3. 4 observations, 3 variables
    4. cannot tell because some values are missing
  2. How many program steps are executed when the program below is processed?
    data user.tables; 
      set work.jobs;run;  
    proc sort data=user.tables;  
      by name;  run;  
    proc print data=user.tables;  
    run;
    1. three
    2. four
    3. five
    4. six
  3. What type of variable is the variable AcctNum in the data set below?
    Variable AcctNum
    1. numeric
    2. character
    3. can be either character or numeric
    4. cannot tell from the data shown
  4. What type of variable is the variable Wear in the data set below?
    Variable Wear
    1. numeric
    2. character
    3. can be either character or numeric
    4. cannot tell from the data shown
  5. With the system option VALIDVARNAME=ANY, which of the following variable names is valid?
    1. 4BirthDate
    2. $Cost
    3. _Items_
    4. Tax-Rate
    5. All of the above
  6. Which of the following files is a permanent SAS file?
    1. Work.PrdSale
    2. Cert.MySales
    3. Certxl.Quarter1
    4. only b and c above
    5. all of the above
  7. In a DATA step, how can you reference a temporary SAS data set named Forecast?
    1. Forecast
    2. Work.Forecast
    3. Sales.Forecast (after assigning the libref Sales)
    4. only a and b above
  8. What is the default length for the numeric variable Balance?
    Variable Balance
    1. 5
    2. 6
    3. 7
    4. 8
  9. How many statements does the following SAS program contain?
    proc print data=cert.admit  
                    label double;  
       var ID Name Sex Age; where Sex=F;  
       label Sex='Gender'; run;
    1. three
    2. four
    3. five
    4. six
  10. What is a SAS library?
    1. a collection of SAS files, such as SAS data sets and catalogs
    2. in some operating environments, a physical collection of SAS files
    3. a group of SAS files in the same folder or directory
    4. all of the above
Last updated: August 23, 2018
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.205.205