⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m02 - editing and debugging sas programs quiz.mht

📁 sas的考试样题
💻 MHT
📖 第 1 页 / 共 5 页
字号:
InstanceEndEditable --></TD></TR></TBODY></TABLE>
        <P></P>
        <LI><!-- InstanceBeginEditable name=3D"q3text" -->What happens =
if you=20
        submit the following program? <PRE>     <FONT =
color=3D#003399>proc sort data=3Dclinic.stress out=3Dmaxrates;
        by maxhr;
     run;
     proc print data=3Dmaxrates label double noobs;
        label rechr=3D'Recovery Heart Rate;
        var resthr maxhr rechr date;
        where toler=3D'I' and resthr&gt;90;
        sum fee;
     run;</FONT></PRE><!-- InstanceEndEditable -->
        <P>
        <TABLE border=3D0>
          <TBODY>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Da name=3Dques3> </TD>
            <TD>&nbsp;<EM>a.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q3a" -->Log messages =
indicate=20
              that the program ran successfully.=20
          <!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Db name=3Dques3> </TD>
            <TD>&nbsp;<EM>b.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q3b" -->A "PROC SORT =
running"=20
              message appears at the top of the active window, and a log =
message=20
              may indicate an error in a statement that seems to be =
valid.<!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dc name=3Dques3> </TD>
            <TD>&nbsp;<EM>c.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q3c" -->A log message =

              indicates that an option is not valid or not =
recognized.<!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dd name=3Dques3> </TD>
            <TD>&nbsp;<EM>d.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q3d" -->A "PROC PRINT =

              running" message appears at the top of the active window, =
and a=20
              log message may indicate that a quoted string has become =
too long=20
              or that the statement is ambiguous.=20
          <!-- InstanceEndEditable --></TD></TR></TBODY></TABLE>
        <P></P>
        <LI><!-- InstanceBeginEditable name=3D"q4text" -->What generally =
happens=20
        when a syntax error is detected?<BR><!-- InstanceEndEditable -->
        <P>
        <TABLE border=3D0>
          <TBODY>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Da name=3Dques4> </TD>
            <TD>&nbsp;<EM>a.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q4a" -->SAS continues =

              processing the step.<!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Db name=3Dques4> </TD>
            <TD>&nbsp;<EM>b.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q4b" -->SAS continues =
to=20
              process the step, and the Log window displays messages =
about the=20
              error. <!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dc name=3Dques4> </TD>
            <TD>&nbsp;<EM>c.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q4c" -->SAS stops =
processing=20
              the step in which the error occurred, and the Log window =
displays=20
              messages about the error.<!-- InstanceEndEditable =
--></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dd name=3Dques4> </TD>
            <TD>&nbsp;<EM>d.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q4d" -->SAS stops =
processing=20
              the step in which the error occurred, and the Output =
window=20
              displays messages about the=20
          error.<!-- InstanceEndEditable --></TD></TR></TBODY></TABLE>
        <P></P>
        <LI><!-- InstanceBeginEditable name=3D"q5text" -->A syntax error =
occurs=20
        when<!-- InstanceEndEditable -->=20
        <P>
        <TABLE border=3D0>
          <TBODY>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Da name=3Dques5> </TD>
            <TD>&nbsp;<EM>a.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q5a" -->some data =
values are=20
              not appropriate for the SAS statements that are specified =
in a=20
              program.<BR><!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Db name=3Dques5> </TD>
            <TD>&nbsp;<EM>b.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q5b" -->the form of =
the=20
              elements in a SAS statement is correct, but the elements =
are not=20
              valid for that usage.<!-- InstanceEndEditable =
--></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dc name=3Dques5> </TD>
            <TD>&nbsp;<EM>c.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q5c" -->program =
statements do=20
              not conform to the rules of the SAS language. <BR><!-- =
InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dd name=3Dques5> </TD>
            <TD>&nbsp;<EM>d.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q5d" -->none of the =
above<!-- InstanceEndEditable --></TD></TR></TBODY></TABLE>
        <P></P>
        <LI><!-- InstanceBeginEditable name=3D"q6text" -->How can you =
tell whether=20
        you have specified an invalid option in a SAS program?<!-- =
InstanceEndEditable -->=20
        <P>
        <TABLE border=3D0>
          <TBODY>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Da name=3Dques6> </TD>
            <TD>&nbsp;<EM>a.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q6a" -->A log message =

              indicates an error in a statement that seems to be =
valid.<!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Db name=3Dques6> </TD>
            <TD>&nbsp;<EM>b.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q6b" -->A log message =

              indicates that an option is not valid or not =
recognized.<!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dc name=3Dques6> </TD>
            <TD>&nbsp;<EM>c.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q6c" -->The message =
"PROC=20
              running" or "DATA step running" appears at the top of the =
active=20
              window.<!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dd name=3Dques6> </TD>
            <TD>&nbsp;<EM>d.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q6d" -->You can't =
tell until=20
              you view the output from the=20
            program.<!-- InstanceEndEditable =
--></TD></TR></TBODY></TABLE>
        <P></P>
        <LI><!-- InstanceBeginEditable name=3D"q7text" -->Which of the =
following=20
        programs contains a syntax error?<!-- InstanceEndEditable -->=20
        <P>
        <TABLE border=3D0>
          <TBODY>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Da name=3Dques7> </TD>
            <TD>&nbsp;<EM>a.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q7a" --><CODE><FONT=20
              color=3D#003399>proc sort=20
              data=3Dsasuser.mysales;<BR>&nbsp;&nbsp;&nbsp;by =
region;<BR>run;=20
              </FONT></CODE><!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Db name=3Dques7> </TD>
            <TD>&nbsp;<EM>b.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q7b" --><CODE><FONT=20
              color=3D#003399>dat =
sasuser.mysales;<BR>&nbsp;&nbsp;&nbsp;set=20
              mydata.sales99;<BR>run;=20
            </FONT></CODE><!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dc name=3Dques7> </TD>
            <TD>&nbsp;<EM>c.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q7c" --><CODE><FONT=20
              color=3D#003399>proc print data=3Dsasuser.mysales=20
              label;<BR>&nbsp;&nbsp;&nbsp;label region=3D'Sales =
Region';<BR>run;=20
              </FONT></CODE><!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dd name=3Dques7> </TD>
            <TD>&nbsp;<EM>d.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q7d" -->none of the =
above<!-- InstanceEndEditable --></TD></TR></TBODY></TABLE>
        <P></P>
        <LI><!-- InstanceBeginEditable name=3D"q8text" -->What should =
you do after=20
        submitting the following program in the Windows or UNIX =
operating=20
        environment? <PRE><FONT color=3D#003399>     proc print =
data=3Dmysales;
</FONT>        <FONT color=3D#003399>where state=3D'NC;</FONT>
     <FONT color=3D#003399>run;</FONT></PRE><!-- InstanceEndEditable -->
        <P>
        <TABLE border=3D0>
          <TBODY>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Da name=3Dques8> </TD>
            <TD>&nbsp;<EM>a.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q8a" -->Submit a RUN=20
              statement to complete the PROC=20
          step.<!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Db name=3Dques8> </TD>
            <TD>&nbsp;<EM>b.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q8b" -->Recall the =
program.=20
              Then add a quotation mark and resubmit the corrected =
program. <!-- InstanceEndEditable --></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dc name=3Dques8> </TD>
            <TD>&nbsp;<EM>c.</EM>&nbsp;&nbsp;</TD>
            <TD><!-- InstanceBeginEditable name=3D"q8c" -->Cancel the =
submitted=20
              statements. Then recall the program, add a quotation mark, =
and=20
              resubmit the corrected program. <!-- InstanceEndEditable =
--></TD></TR>
          <TR vAlign=3Dtop>
            <TD><INPUT type=3Dradio value=3Dd name=3Dques8> </TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -