Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Sas Base Quiz Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Page 1 of 3

Quiz: Producing H:TMLOutput


Select the best answer for each question and click Score My Quiz.
1. ODs creates links to your output in the Results window and uses icons to identify output objects. If you create both listing output and HTML output for the same procedure, ...

c a. you get only the Listing output icon. c, b. you get only the HTML output icon. c, c. you get both Listing and HTML output icons.
C d. you get an error message in the SAS log.
2. When you direct output fi-om multiple procedures to the same HTML file, ...
C a. the Results window displays a link for a single output object, which contains the

(---I

output from all the procedures. f b. the Results window displays links for multiple output objects.
f c. procedure output is overwritten, so that only the last output is contained in the

HTML file. d. you get an error message in the SAS log.

3. What is the purpose of closing the Listing destination in the code shown below?
ods l i s t i n g c l o s e ; ods html ;

...

f a. It conserves system resources.

c b. It simplifies your program. c c. It makes your program compatible with other hardware, platforms.
f d. It makes your program compatible with previous versions of SAS software.

4. When the code shown below is run, what will the file D:\Output\body.html contain?
ods html body='d:\output~body.htm1'; p r o c p r i n t data=work.a l p h a ;

run;

p r o c pri::t

d a t a = w c r k . beta;

run:
ods html c l o s e ;

Quiz

Page

a. The PROC PRINT output for Work.Alpha.

C b. The PROC PRINT output for Work-Beta.

C c. The PROC PRJNT output for both Work.Alpha and Work.Beta.

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


5. When the code shown below is run, what file will the links in D:\Output\contents.html point to?
ods html body='d:\output\body.html' coritents='d:\output\cor1ter1ts. htd' frame='d: \output\fra~ne. ht~nl' ;

b. D:\Output\contents.html

C c. D:\Output\frame.html

C d. There are no links from the file D:\Output\contents.htmi.

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

C a. each procedure.
(S.

b, each procedure that creates output.

C c. each procedure and DATA step.

c d. each HTML file that is created by your program.


7. When the code shown below is run,what will the file D:\Output\frame.html contain?

..

odS html body='d:\output\body.htmlT contents='d:\output\contents.html' frame='d:\output\frame.html';

. ..,

c : a. The file D:\Output\contents.html.


C b. The file D:\Output\frame.html.
C c. The files D:\Output\contents.html and D:\Output\body.html.

r d. The file D:\Output\body.htm.


8. What is the purpose of the URL= suboptions shown below?
ods html body='d: \output\body.htnlr (url='body.htmlr ) corli ?nts= ' d : \ou:pu~\cont~~its. hCrrill (url='contents .htmlr) +rame='d: \outpur\fraXe.ntm1 I ;
A

Page 3 of 3

c a.
r

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

c b. To create relative link addresses for loading the files from a server.
c. To enable HTML files to be loaded from a local drive.

c d. To send HTML output to two locations.


9. Which ODs HTML option was used in creating the following table?

C, a. format-brown

c--

10. What is the purpose of the PATH= option?


ods html path='d: \output1 ( u r l . = = n o n e ) body='body.htmll content~=~contents.html' frame='frame.html';

r
r

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 c. It enables HTML files to be loaded from a local drive.


C, d.

It specifies the location of HTML file output.


. .

Score byQuiz

,ciear ~ n s w e r s

Terms of Use & Leqal Information

Privacy Statement

You might also like