Quiz

Select the best answer for each question. After completing the quiz, check your answers using the answer key in the appendix.
  1. Which SAS system option is used to identify format catalogs to SAS?
    1. FMTERR
    2. FMTLIB
    3. NOFMTERR
    4. FMTSEARCH=
  2. Given the following PROC FORMAT step, how is the value 70 displayed when the AGEGRP. format is applied?
    proc format;
       picture agegrp
               1-<13='00 Youth'
               13-<20='00 Teen'
               20-<70='00 Adult'
               70-high='000 Senior';
    run; 
    1. 000 Senior
    2. 70 Adult
    3. 70 Senior
    4. 070 Senior
  3. When the NOFMTERR system option is in effect, what happens when SAS encounters a format that it cannot locate?
    1. Creates the format in the default Work.Formats directory and continues processing.
    2. Substitutes the $w. or w. format and continues processing.
    3. Stops processing and writes an error message to the log.
    4. Skips processing at that step and continues with the next step and writes a note to the log.
  4. Which of the following variables must be in the data set that is specified in the CNTLIN= option?
    1. End
    2. FmtName
    3. Value
    4. Description
  5. Given the following code, what option is missing?
    proc format;
       value times (?)
             '00:00't-'04:59't = 'Red Eye'
             '05:00't-'11:59't = 'Morning'
             '12:00't-'17:59't = 'Afternoon'
             '18:00't-'23:59't = 'Evening'
             '00:00't-'11:59't = 'AM'
             '12:00't-'23:59't = 'PM';
    run;
    1. MULTILABEL
    2. MULTIRANGE
    3. MLF
    4. MULTIFORMAT
  6. Which PROC FORMAT option is used to create a SAS data set from a format?
    1. CNTLIN=
    2. LIB=
    3. CNTLOUT=
    4. FMTLIB
  7. Given the following OPTIONS statement, in what order will SAS search to find a user-defined format?
    options fmtsearch=(work abc.newfmt sasuser);
    1. Work.Formats>Abc.Newfmt>Sasuser.Formats>Library.Formats
    2. Work.Formats>Library.Formats>Abc.Newfmt>Sasuser.Formats
    3. Work.Formats>Abc.Newfmt>Sasuser.Format
    4. the default search order
  8. What option is used with PROC FORMAT to document the formats in a particular format catalog?
    1. FMTSEARCH
    2. FMTERR
    3. CATALOG
    4. FMTLIB
  9. Which set of statements would you add to the PROC CATALOG code to copy the LEVELS. and $PICKS. formats from the Sasuser.Formats catalog to the Work.Formats catalog?
     proc catalog cat=sasuser.formats;
        ?
        ?
    run;
    1. copy out=sasuser.formats;
      select levels.format $picks.format;
    2. copy out=work.formats;
      select levels $picks;
    3. copy out=work.formats;
      select levels.format picks.formatc;
    4. copy out=work.formats;
      select levels.format $picks.format;
  10. Given the following PROC FORMAT step, how is the value 6.1 displayed when the SKICOND format is applied?
    proc format;
       value skicond
              0-3='Poor'
             3<-6='Fair'
             6<-9='Good'
             9<-high='Excellent';
    run;
    1. 6.1
    2. Fair
    3. Good
    4. .
..................Content has been hidden....................

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