SAS Chapter 10 Producing HTML Output

10 Questions | Total Attempts: 111

SettingsSettingsSettings
SAS Chapter 10 Producing HTML Output

Practice for the SAS basic certification exam


Questions and Answers
  • 1. 
    Using the ODS statements, how many types of output can you generate at once?
    • A. 

      1(only listing output)

    • B. 

      2

    • C. 

      3

    • D. 

      As many as you want

  • 2. 
    If ODS is set to its default settings, what types of output are created by the code below? ods html file='c:\myhtml.htm'; ods pdf file='c:\mypdf.pdf';
    • A. 

      HTML and PDF

    • B. 

      PDF only

    • C. 

      HTML, PDF, and listing

    • D. 

      No output is created because ODS is closed by default.

  • 3. 
    What is the purpose of closing the Listing destination in the code shown below? ods listing close; ods html ... ;
    • A. 

      It conserves system resources

    • B. 

      It simplifies your program.

    • C. 

      It makes your program compatible with other hardware platforms.

    • D. 

      It makes your program compatible with previous versions of SAS.

  • 4. 
    When the code shown below is run, what will your file D:\Output\body.html contain? ods html body='d:\output\body.html'; proc print data=work.alpha; run; proc print data=work.beta; run; ods html close;
    • A. 

      The PROC PRINT output for Work.Alpha.

    • B. 

      The PROC PRINT output for Work.Beta.

    • C. 

      The PROC PRINT output for both Work.Alpha and Work.Beta.

    • D. 

      Nothing. No output will be written to D:\Output\body.html

  • 5. 
    When the code shown below is run, what file will be loaded by the links in D:\Output\contents.html? ods html body='d:\output\body.html'          contents='d:\output\contents.html'          frame='d:\output\frame.html';
    • A. 

      D:\Output\body.html

    • B. 

      D:\Output\contents.html

    • C. 

      D:\Output\frame.html

    • D. 

      There are no links from the file D:\Output\contents.html.

  • 6. 
    The table of contents created by the CONTENTS= option contains a numbered heading for
    • A. 

      Each procedure.

    • B. 

      Each procedure that creates output.

    • C. 

      Each procedure and DATA step.

    • D. 

      Each HTML file created by your program.

  • 7. 
    When the code shown below is run, what will the file D:\Output\frame.html display? ods html body='d:\output\body.html'          contents='d:\output\contents.html'          frame='d:\output\frame.html';
    • A. 

      The file D:\Output\contents.html.

    • B. 

      The file D:\Output\frame.html.

    • C. 

      The files D:\Output\frame.html and D:\Output\contents.html.

    • D. 

      It displays no other files.

  • 8. 
    What is the purpose of the URL= suboptions shown below? ods html body='d:\output\body.html' (url='body.html')          contents='d:\output\contents.html'          (url='contents.html')          frame='d:\output\frame.html';
    • A. 

      To create absolute link addresses fro loading the files from a server.

    • B. 

      To create relative link addresses for loading the files from a server.

    • C. 

      To allow HTML files to be loaded from a local drive.

    • D. 

      To send HTML output to two locations.

  • 9. 
    Which ODS HTML option was used in creating the following table?
    • A. 

      Format=brown

    • B. 

      Format='brown'

    • C. 

      Style=brown

    • D. 

      Style='brown'

  • 10. 
    What is the purpose of the PATH= option? ods html path='d:output' (url=none)          body='body.html'          contents='contents.html'          frame='frame.html';
    • A. 

      It creates absolute link addresses for loading HTML files from a server.

    • B. 

      It creates relative link addresses for loading HTML files from a server.

    • C. 

      It allows HTML files to be loaded from a local drive.

    • D. 

      It specifies the location of HTML file output.

Related Topics
Back to Top Back to top