SAS Chapter 2 Referencing Files And Setting Options

10 Questions | Total Attempts: 271

SettingsSettingsSettings
SAS Chapter 2 Referencing Files And Setting Options

Practice for the SAS basic certification exam


Questions and Answers
  • 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 on any SAS platform?
    • A. 

      By specifying system options

    • B. 

      By using programming statements

    • C. 

      By using SAS windows to specify the result format

    • D. 

      You can't create HTML output on all SAS platforms

  • 3. 
    In order for the date values 05May1955 and 04Mar2046 to be read correctly, 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 always specifying
    • A. 

      The file format for files that are stored in the library.

    • B. 

      The version of SAS that you are using.

    • C. 

      Access to other software vendors' files.

    • D. 

      Instructions for creating temporary SAS files.

  • 5. 
    Which statement prints a summary of all the files stored in the library named Area51?
    • A. 

      Proc contents data=area51._all_ nods;

    • B. 

      Proc contents data=area51 _all_ nods;

    • C. 

      Proc contents data=area51 _all_ nods;

    • D. 

      Proc contents data=area51 _all_.nods;

  • 6. 
    The following PROC Print output was created immediately after PROC TABULATE output.  Which system options were specified when the report was created?
    • 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 that is stored in a permanent SAS library?
    • A. 

      Data saleslibrary.salesanalysis; set mydata.quarter1sales; if sales>1000000; run;

    • B. 

      Data mysales.totals; set sales_99.salesanalysis; if totalsales>50000; run;

    • C. 

      Aproc print data=salesanalysis.quarter1; var sales salesrep month; run;

    • D. 

      Proc freq data=1999data.salesanalysis; tables quarter*sales; run;

  • 8. 
    Which time span is used to interpret the two-digit year values if the YEARCUTOFF= option is set to 1950?
    • A. 

      1950-2049

    • B. 

      1950-2050

    • C. 

      1949-2050

    • D. 

      1950-2000

  • 9. 
    Assuming you are using SAS code and not special SAS windows, which one of the following statements is false?
    • A. 

      LIBNAME statements can be stored with a SAS program to reference the SAS library automatically when you submit the program.

    • B. 

      When you delete a libref, SAS no longer has access to the files in the library. However, the contents of the library still exist on your operating system.

    • C. 

      Librefs can last from one SAS session to another.

    • D. 

      You can access files that were created with other vendors' software 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 OSIRIS and SPSS engines

Related Topics
Back to Top Back to top