Chapter Quiz

Select the best answer for each question. Check your answers using the answer key in the appendix.
  1. What kind of data does the raw data file that is referenced by the fileref Students contain?
    Raw data file Students.
    1. arranged in fixed fields
    2. free-format
    3. mixed-format
    4. arranged in columns
  2. Which input style should be used to read the values in the raw data file that is referenced by the fileref Students?
    Raw data file Students.
    1. column
    2. formatted
    3. list
    4. mixed
  3. Which SAS program was used to create the raw data file Teamdat from the SAS data set Work.Scores?
    SAS data set Students and raw data file Teamdat.
    1. data _null_;
         set work.scores; 
         file 'c:data	eamdat' dlm=','; 
         put name highscore team; 
      run;
    2. data _null_; 
         set work.scores; 
         file 'c:data	eamdat' dlm=' '; 
         put name highscore team; 
      run;
    3. data _null_;  
         set work.scores; 
         file 'c:data	eamdat' dsd; 
         put name highscore team; 
      run;
    4. data _null_;
         set work.scores; 
         file 'c:data	eamdat'; 
         put name highscore team; 
      run;
  4. Which SAS statement reads the raw data values in order and assigns them to the variables that are shown below?
    Variables: FirstName (character), LastName (character), Age (numeric), School (character), Class (numeric)
    Raw data file Students.
    1. input FirstName $ LastName $ Age School $ Class;
    2. input FirstName LastName Age School Class;
    3. input FirstName $ 1-4 LastName $ 6-12 Age 14-15 
            School $ 17-19 Class 21;
    4. input FirstName 1-4 LastName 6-12 Age 14-15
            School 17-19 Class 21;
  5. Which SAS statement should be used to read the raw data file that is referenced by the fileref Salesrep?
    Raw data file Salesrep.
    1. infile salesrep;
    2. infile salesrep ':';
    3. infile salesrep dlm;
    4. infile salesrep dlm=':';
  6. Which of the following raw data files can be read by using the MISSOVER option in the INFILE statement? Spaces for missing values are highlighted with shaded blocks.
    1. Raw data file with blank spaces at the end of line three.
    2. Raw data file with blank spaces in the middle of line three.
    3. Raw data file with blank spaces in the middle of line three.
    4. Raw data file with blank spaces at the beginning of line three.
  7. Which SAS program correctly reads the data in the raw data file that is referenced by the fileref Volunteer?
    Raw data file Volunteer.
    1. data sasuser.contest;
         infile volunteer;  
         input FirstName $ LastName $ Age  
               School $ Class;  
      run;
    2. data sasuser.contest;  
         infile volunteer;  
         length LastName $ 11;  
         input FirstName $ lastname $ Age  
               School $ Class;  
      run;
    3. data sasuser.contest;  
         infile volunteer;  
         input FirstName $ lastname $ Age  
               School $ Class;  length LastName $ 11;  
      run;
    4. data sasuser.contest;  
         infile volunteer;  
         input FirstName $ LastName $ 11. Age  
               School $ Class;  
      run;
  8. Which type of input should be used to read the values in the raw data file that is referenced by the fileref University?
    Raw data file University.
    1. column
    2. formatted
    3. list
    4. modified list
  9. Which SAS statement correctly reads the values for Flavor and Quantity? Make sure the length of each variable can accommodate the values that are shown.
    Raw data file Cookies.
    1. input Flavor & $9. Quantity : comma.;
    2. input Flavor & $14. Quantity : comma.;
    3. input Flavor : $14. Quantity & comma.;
    4. input Flavor $14. Quantity : comma.;
  10. Which SAS statement correctly reads the raw data values in order and assigns them to these corresponding variables: Year (numeric), School (character), Enrolled (numeric)?
    Raw data file Founding.
    1. input Year School & $27.  
            Enrolled : comma.;
    2. input Year 1-4 School & $27.  
            Enrolled : comma.;
    3. input @1 Year 4. +1 School & $27.  
            Enrolled : comma.;
    4. all of the above
Last updated: January 10, 2018
..................Content has been hidden....................

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