SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Quiz: Setting Up Your SAS Session

Select the best answer for each question and click Score My Quiz.

  1. If you submit the following program, how does the output look?
       options pagesize=55 nonumber;
       proc tabulate data=clinic.admit;
          class actlevel;
          var age height weight;
          table actlevel,(age height weight)*mean;
       run;
       options linesize=80;
       proc means data=clinic.heart min max maxdec=1;
          var arterial heart cardiac urinary;
          class survive sex;
       run;

     a.   The PROC MEANS output has a print line width of 80 characters, but the PROC TABULATE output has no print line width.
     b.   The PROC TABULATE output has no page numbers, but the PROC MEANS output has page numbers.
     c.   Each page of output from both PROC steps is 55 lines long and has no page numbers, and the PROC MEANS output has a print line width of 80 characters.
     d.   The date does not appear on output from either PROC step.

  2. How can you create SAS output in HTML format?

     a.   You can specify system options to create HTML output, but not all system options apply to HTML output.
     b.   You can create HTML output using programming statements on any SAS platform.
     c.   You can create HTML output using programming statements on only some SAS platforms. On other platforms, you can create HTML output using SAS windows.
     d.   You can create HTML output on only some SAS platforms. On these platforms, you use SAS windows to specify the results format.

  3. For the date values 05May1955 and 04Mar2046 to be read correctly using the DATE9. informat (ddmmmyyyy), what value must the YEARCUTOFF= option have?

     a.   a value between 1947 and 1954, inclusive
     b.   1955 or higher
     c.   1946 or higher
     d.   any value

  4. When you specify an engine for a library, you are specifying

     a.   the file format for files stored in the library.
     b.   the version of SAS software that you are using.
     c.   access to other vendors' files.
     d.   instructions for creating temporary SAS files.

  5. What types of data can you access using the LIBNAME statement?

     a.   relational databases including ORACLE, SYBASE, and DB2
     b.   ADABAS and SYSTEM 2000 files
     c.   Excel, Lotus, DBF, and DIF files
     d.   all of the above

  6. The following PROC PRINT output was created immediately after PROC TABULATE output. Which system options were specified when the report was created?

                                         1
              10:03 Friday, March 19, 1999

    Obs ID Height  Weight  Act
     Level
      Fee
               
       1  2458   72    168   HIGH    85.20
       2  2462   66    152   HIGH   124.80
       3  2501   61    123   LOW    149.75
       4  2523   63    137   MOD    149.75
       5  2539   71    158   LOW    124.80
       6  2544   76    193   HIGH   124.80
       7  2552   67    151   MOD    149.75
       8  2555   70    173   MOD    149.75
       9  2563   73    154   LOW    124.80

     a.   OBS=, DATE, and NONUMBER
     b.   NUMBER, PAGENO=1, and DATE
     c.   NUMBER and DATE only
     d.   none of the above

  7. Which of the following programs correctly references a SAS data set named SalesAnalysis stored in a permanent SAS library?

     a.   data saleslibrary.salesanalysis;
       set mydata.quarter1sales;
       if sales>100000;
    run;
     b.   data mysales.totals;
       set sales_99.salesanalysis;
       if totalsales>50000;
    run;
     c.   proc print data=salesanalysis.quarter1;
       var sales salesrep month;
    run;
     d.   proc freq data=1999data.salesanalysis;
       tables quarter*sales;
    run;

  8. When reading the dates 05/22/55, 03/04/46, and 12/12/03, how would SAS software interpret them if the YEARCUTOFF= value were 1950?

     a.   May 22, 1905; March 4, 1904; and December 12, 1900
     b.   May 22, 2055; March 4, 2046; and December 12, 1903
     c.   May 22, 1955; March 4, 1946; and December 12, 2003
     d.   it depends on the informat you use

  9. What's the difference between using the LIBNAME statement and using the Explorer window when defining a library?

     a.   Libraries created using the Explorer window last indefinitely; libraries created using the LIBNAME statement last only the duration of the SAS session.
     b.   You can specify that a LIBNAME statement be submitted automatically when you begin your SAS session.
     c.   You can store the LIBNAME statement with a SAS program to reference the SAS library automatically when you submit the program.
     d.   You can access other vendors' files only by submitting a LIBNAME statement.

  10. What does the following statement do?
         libname osiris spss 'c:\myfiles\sasdata\data';

     a.   defines a library called Spss using the OSIRIS engine
     b.   defines a library called Osiris using the SPSS engine
     c.   defines two libraries called Osiris and Spss using the default engine
     d.   defines the default library using the OSIRIS and SPSS engines



back||next

Terms of Use & Legal Information | Privacy Statement