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

📄 19992.htm

📁 全国系统工程师(高级程序员)考试试题 包括了自1996年到2002年的全部试题
💻 HTM
📖 第 1 页 / 共 5 页
字号:
                </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 10.5pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">main()<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 10.5pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">{ int i, m, s[MAXN];<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">m = p(13, s);<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">for(i = 0; i &lt; m;                 i++)<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">printf(″%4d\t″, s[i]);<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">printf(″\n″);<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 10.5pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">}<O:P> </O:P></SPAN></P>              <P class=MsoNormal><SPAN             style="mso-hansi-font-family: Times New Roman">程序<SPAN             lang=EN-US>1.2的输出结果是<U>(2)</U> ;函数int p(int k, int a[])的功能是<U>(3)</U>                 。<O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal><SPAN             style="mso-hansi-font-family: Times New Roman">【程序<SPAN             lang=EN-US>1.3】<O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">#include &lt;stdio.h&gt;<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">void s(int a[], int                 n)<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">{ int i, j, t;<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 47.25pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">for(i = 0; i &lt; n;                 i++) {<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 63pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">for(t = a[i], j = i-1;                 j &gt;= 0 &amp;&amp; t &lt; a[j]; j--)<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 78.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">a[j+1] = t;<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 63pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">}<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">}<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">main()<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">{ int i, c[] = { 15,                 3, 8, 9, 6, 2};<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 47.25pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">s(c, 6);<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 47.25pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">for(i = 0; i &lt; 6;                 i++)<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 63pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">printf(″%4d\t″, c[i]);<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 63pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">printf(″\n″);<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 36.75pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">}<O:P> </O:P></SPAN></P>              <P class=MsoNormal><SPAN             style="mso-hansi-font-family: Times New Roman">程序1.3的输出结果是<U>(4)</U>                 ;函数<SPAN lang=EN-US>s(int a[], int n)的功能是<U>(5)</U> 。<O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">&nbsp;<O:P></SPAN><SPAN             style="mso-hansi-font-family: Times New Roman">试题 二<SPAN             lang=EN-US><O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN             style="mso-hansi-font-family: Times New Roman">阅读下列程序说明和C代码,将应填入<U>(<SPAN             lang=EN-US>n)</SPAN></U>处的字句写在答卷的对应栏内。<SPAN lang=EN-US><O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal><SPAN             style="mso-hansi-font-family: Times New Roman">【程序2.1说明】<SPAN             lang=EN-US><O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN             style="mso-hansi-font-family: Times New Roman">程序2.1求以下级数和的近似值,约定求和的精度为<SPAN             lang=EN-US>0.000001。<O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                 <SPAN             style="mso-text-raise: -6.0pt">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>x</SPAN><SPAN             lang=EN-US             style="FONT-SIZE: 7.5pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 10.0pt">3<SPAN             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                 &nbsp;</SPAN></SPAN><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman; mso-text-raise: -6.0pt">x</SPAN><SPAN             style="mso-hansi-font-family: Times New Roman; mso-bidi-font-size: 10.0pt">5<SPAN             lang=EN-US             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                 </SPAN></SPAN><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman; mso-text-raise: -6.0pt">x</SPAN><SPAN             lang=EN-US             style="mso-hansi-font-family: Times New Roman; mso-bidi-font-size: 10.0pt">7<SPAN             style="mso-text-raise: 5.0pt"><O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal             style="TEXT-INDENT: 21pt">                <!--[if gte vml 1]><O:WRAPBLOCK><V:LINE             id=_x0000_s1026             style="Z-INDEX: 1; LEFT: 0px; POSITION: absolute; TEXT-ALIGN: left; mso-position-horizontal-relative: text; mso-position-vertical-relative: page"             from="78.75pt,532.5pt" to="105pt,532.5pt" o:allowincell="f"><W:WRAP             type="topAndBottom" anchory="page"></V:LINE><V:LINE id=_x0000_s1028             style="Z-INDEX: 3; LEFT: 0px; POSITION: absolute; TEXT-ALIGN: left; mso-position-horizontal-relative: text; mso-position-vertical-relative: page"             from="173.25pt,532.5pt" to="199.5pt,532.5pt"             o:allowincell="f"><W:WRAP type="topAndBottom"             anchory="page"></V:LINE><V:LINE id=_x0000_s1027             style="Z-INDEX: 2; LEFT: 0px; POSITION: absolute; TEXT-ALIGN: left; mso-position-horizontal-relative: text; mso-position-vertical-relative: page"             from="126pt,532.5pt" to="152.25pt,532.5pt" o:allowincell="f"><W:WRAP             type="topAndBottom" anchory="page"></V:LINE><![endif]-->              </P>              <TABLE cellSpacing=0 cellPadding=0>                <TBODY>                 <TR>                   <TD width=104 height=0></TD>                  <TD width=38></TD>                  <TD width=25></TD>                  <TD width=38></TD>                  <TD width=25></TD>                  <TD width=38></TD>                </TR>                <TR>                   <TD height=3></TD>                  <TD vAlign=top align=left><IMG height=3 src="" width=38                   v:shapes="_x0000_s1026"></TD>                  <TD></TD>                  <TD vAlign=top align=left><IMG height=3 src="" width=38                   v:shapes="_x0000_s1027"></TD>                  <TD></TD>                  <TD vAlign=top align=left><IMG height=3 src="" width=38                   v:shapes="_x0000_s1028"></TD>                </TR>                </TBODY>              </TABLE>              <!--[if gte vml 1]></O:WRAPBLOCK><![endif]-->              <P><BR style="mso-ignore: vglayout" clear=all>                <SPAN             lang=EN-US>s</SPAN><SPAN lang=EN-US             style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'">(x)                 = x </SPAN><SPAN lang=EN-US             style="mso-ascii-font-family: 宋体">–</SPAN><SPAN lang=EN-US             style="FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'"><SPAN             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                 </SPAN>+ <SPAN             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>-<SPAN             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                 </SPAN>+ ……<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman; mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                 </SPAN><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">3*1!<SPAN             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>5*2!<SPAN             style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>7*3!<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal><SPAN             style="mso-hansi-font-family: Times New Roman">【程序2.1】<SPAN             lang=EN-US><O:P> </O:P></SPAN></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">#include &lt;stdio.h&gt;<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">#include &lt;math.h&gt;<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">#define Epsilon 0.000001<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">main()<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">{ int i; double s,                 x, t;<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 31.5pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">printf(″Enter x.\n″);                 scanf(″%1f″, &amp;x);<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 31.5pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">s = 0.0; t = x; i =                 0;<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 31.5pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">while (fabs(t) &gt;=                 Epsilon) {<O:P> </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 47.25pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">s =<U>(1)</U>; i++;<O:P>                 </O:P></SPAN></P>              <P class=MsoNormal style="TEXT-INDENT: 47.25pt"><SPAN lang=EN-US             style="mso-hansi-font-family: Times New Roman">t =<SPAN             style="mso-spacerun: yes">&nbsp; </SPAN>-t * x * x * <U>(2)</U> /((2 

⌨️ 快捷键说明

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