zorro 发表于 2006-8-17 10:30:00

各位XDJM帮忙做下VB题啊,感激不尽

<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: Arial; mso-bidi-font-size: 9.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA;"><shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" opreferrelative="t" ospt="75" coordsize="21600,21600">&nbsp;<h1 align="center" style="MARGIN: 17pt 0cm 16.5pt; TEXT-ALIGN: center;"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">程序设计语言</span><span lang="EN-US"><font face="Times New Roman">VB</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">试题</span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 13.5pt; COLOR: black; LINE-HEIGHT: 240%; FONT-FAMILY: Arial; LETTER-SPACING: 0pt;"><p></p></span></span></h1><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; tab-stops: list 21.0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span style="FONT-SIZE: 13.5pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-family: Arial;">一、选择题</span></span><span lang="EN-US" style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">(</span><span style="COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">每题<span lang="EN-US">2</span>分,共<span lang="EN-US">10</span>分<span lang="EN-US">)</span></span><span lang="EN-US" style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">
                                        <span style="COLOR: red;"><span style="mso-spacerun: yes;">&nbsp;</span></span><p></p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><font face="Times New Roman">1. </font></span><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">表达式</span><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><font face="Times New Roman">4+5\6*7/8 Mod 9</font></span><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">的值是</span><u><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span>B<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span></font></span></u><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">。</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><p></p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; TEXT-INDENT: 24pt; mso-line-height-alt: 0pt; mso-layout-grid-align: none; mso-char-indent-count: 2.0;"><font face="Times New Roman"><span lang="EN-US" style="FONT-SIZE: 12pt; mso-bidi-font-size: 9.0pt;">A) 4<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>B) 5<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>C) 6<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>D) 7</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><p></p></span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">2. </span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">程序运行时复选框如果选中,其<span lang="EN-US">Value</span>值</span><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">是</span><u><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>C<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></font></span></u><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">。</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><p></p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; TEXT-INDENT: 24pt; mso-line-height-alt: 0pt; mso-layout-grid-align: none; mso-char-indent-count: 2.0;"><span lang="EN-US" style="FONT-SIZE: 12pt; mso-bidi-font-size: 9.0pt;"><font face="Times New Roman">A) 0 <span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="mso-spacerun: yes;">&nbsp;&nbsp;</span>B) 1<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>C) True<span style="mso-spacerun: yes;">&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;</span><span style="mso-spacerun: yes;">&nbsp;</span>D) False<p></p></font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><font face="Times New Roman">3. </font></span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">双击窗体中的对象后,<span lang="EN-US">Visual Basic</span>将显示的窗口是</span><u><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>D<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></font></span></u><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">。</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><br/></span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"> <span lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span>A</span>)项目(工程)窗口 <span lang="EN-US"> B</span>)工具箱 <span lang="EN-US"> C</span>)属性窗口 <span lang="EN-US"> D</span>)代码窗口</span><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><p></p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">4. </span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">以下选项中,不属于单选按钮属性的是</span><u><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><span style="mso-spacerun: yes;"><font face="Times New Roman">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></span></span></u><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">。</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><br/></span><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"> <span lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span>A</span>)<span lang="EN-US">Enabled</span>  <span lang="EN-US">B)&nbsp;&nbsp;Caption</span> <span lang="EN-US"> C</span>)<span lang="EN-US">Name</span> <span lang="EN-US"> D</span>)<span lang="EN-US">Min<br/>5. </span>当拖动滚动条中的滚动块时,</span><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">将触发滚动条的事件是</span><u><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>C<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></font></span></u><span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">。</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><p></p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; TEXT-INDENT: 21pt; mso-line-height-alt: 0pt; tab-stops: list 36.0pt; mso-layout-grid-align: none; mso-char-indent-count: 2.0;"><font face="Times New Roman"><span lang="EN-US" style="mso-bidi-font-size: 9.0pt;">A)&nbsp;Move<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>B)&nbsp;&nbsp;SetFocus<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>C)&nbsp;Scroll<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>D) Change</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><p></p></span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;"><p>&nbsp;</p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 9.0pt; mso-bidi-font-family: Arial;">二、简述下图程序界面的设计步骤(包括添加控件、设置属性和编程,<span lang="EN-US">20</span>分)<span lang="EN-US"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 13.5pt; COLOR: black; FONT-FAMILY: Arial; LETTER-SPACING: 0pt;"><p>&nbsp;</p></span></span></p><p class="MsoNormal" align="center" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; TEXT-ALIGN: center; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 9.0pt;"><shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" opreferrelative="t" ospt="75" coordsize="21600,21600"><stroke joinstyle="miter"></stroke><formulas><f eqn="if lineDrawn pixelLineWidth 0"></f><f eqn="sum @0 1 0"></f><f eqn="sum 0 0 @1"></f><f eqn="prod @2 1 2"></f><f eqn="prod @3 21600 pixelWidth"></f><f eqn="prod @3 21600 pixelHeight"></f><f eqn="sum @0 0 1"></f><f eqn="prod @6 1 2"></f><f eqn="prod @7 21600 pixelWidth"></f><f eqn="sum @8 21600 0"></f><f eqn="prod @7 21600 pixelHeight"></f><f eqn="sum @10 21600 0"></f></formulas><path oconnecttype="rect" gradientshapeok="t" oextrusionok="f"></path><lock aspectratio="t" vext="edit"></lock></shapetype><shape id="_x0000_i1025" type="#_x0000_t75" style="WIDTH: 189pt; HEIGHT: 102.75pt;"><imagedata otitle="test1" src="file:///C:\DOCUME~1\zhuge\LOCALS~1\Temp\msohtml1\03\clip_image001.jpg"></imagedata></shape><span style="mso-spacerun: yes;">&nbsp; </span><p></p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span lang="EN-US" style="FONT-FAMILY: Arial; mso-bidi-font-size: 9.0pt;"><p>&nbsp;</p></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">三、说明下列程序的运行结果或回答问题</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 13.5pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt;">(</span></span><span class="zhengwen21"><span style="FONT-SIZE: 13.5pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt;">每题<span lang="EN-US">10</span>分,共<span lang="EN-US">20</span>分<span lang="EN-US">)</span></span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">
                                                <p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">1. </span></span><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">以下程序的输出结果是<u><span lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></u>。</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Private Sub Command1_Click()<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Dim a(9) As Integer, p(3) As Integer<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">k = 3<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">For i = 1 To 9<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">a(i) = i<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Next i<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">For i = 1 To 3<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">p(i) = a(i * i)<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Next i<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 20pt; mso-line-height-rule: exactly;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">For i = 1 To 3<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><b><span style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">第</span></b><b><u><span lang="EN-US" style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt;"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp; </span>2<span style="mso-spacerun: yes;">&nbsp; </span></font></span></u></b><b><span style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">页,共</span></b><b><u><span lang="EN-US" style="FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt;"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp; </span>2<span style="mso-spacerun: yes;">&nbsp; </span></font></span></u></b><b><span style="FONT-SIZE: 11pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">页</span></b><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">k = k + p(i) * 2<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Next i<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Print k<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">End Sub<p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;"><p>&nbsp;</p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">2. </span></span><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">在窗体上画一个命令按钮(其<span lang="EN-US">Name</span>属性为<span lang="EN-US">Command1</span>),然后编写如下事件过程:<span lang="EN-US"><p></p></span></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Private Sub Command1_Click( )</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Dim a</span></span><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">(<span lang="EN-US">4,4</span>)</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">For i=1 To 3</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">For j=1 to 3</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">a(i,j)=(i-1)*2+j</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Next j</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Next i</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">For i=1 To 3</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">For j=1 to 3</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Print a(i,j);</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Next j</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">Next i</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">End Sub</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;">程序运行后,单击命令按钮,其输出结果为<u><span lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></u>。</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p>&nbsp;</p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">四、编写程序</span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 13.5pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt;">(</span></span><span class="zhengwen21"><span style="FONT-SIZE: 13.5pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt;">前<span lang="EN-US">3</span>小题每题<span lang="EN-US">10</span>分,<span lang="EN-US">4</span>小题<span lang="EN-US">20</span>分,共<span lang="EN-US">50</span>分<span lang="EN-US">)</span></span></span><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;"><p></p></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">1. </span></span><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">设计在一框架中包含三个单选框,只有当其<span lang="EN-US">3</span>选中时,才在<span lang="EN-US">Text2</span>中显示<span lang="EN-US">"Good"</span>字符。<span lang="EN-US"><p></p></span></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">2. </span></span><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">从文本框输入你的<span lang="EN-US">3</span>位号码,如果是<span lang="EN-US">"358"</span>,在标签框输出一等奖信息;如果前两位是<span lang="EN-US">"35"</span>,输出二等奖信息;如果前一位是<span lang="EN-US">"3"</span>,输出三等奖信息;其余则输出谢谢参与信息。<span lang="EN-US"><p></p></span></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">3. </span></span><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">机票优惠,某航空公司规定在<span lang="EN-US">7-9</span>月份,如果订票数超过<span lang="EN-US">20</span>张,则票价优惠<span lang="EN-US">15%</span>;如果超过<span lang="EN-US">10</span>张,则票价优惠<span lang="EN-US">5%</span>;在<span lang="EN-US">1-5</span>月份和<span lang="EN-US">11</span>月份,如果订票数超过<span lang="EN-US">20</span>张,则票价优惠<span lang="EN-US">25%</span>,如果超过<span lang="EN-US">10</span>张,则票价优惠<span lang="EN-US">15%</span>。从输入对话框中输入票价、订票数及月份,用文本框显示出所需金额。<span lang="EN-US"><p></p></span></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">4. </span></span><span class="zhengwen21"><span style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt;">输入<span lang="EN-US">6</span>个学生的数学成绩,按不及格、<span lang="EN-US">60-70</span>、<span lang="EN-US">71-99</span>、<span lang="EN-US">100</span>统计各个分数段的人数。<span lang="EN-US"><p></p></span></span></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; LAYOUT-GRID-MODE: char; mso-line-height-alt: 0pt; mso-layout-grid-align: none;"><span class="zhengwen21"><span lang="EN-US" style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt; mso-bidi-font-size: 13.5pt; mso-bidi-font-family: Arial;"><p>&nbsp;</p></span></span></p></shapetype></span>

ZZ! 发表于 2006-8-17 10:30:00

哦哟,一道啊不懂

草草の马甲 发表于 2006-8-17 10:33:00

<p>袄要 </p><p>傻子袄扫册来</p><p></p>

ZZ! 发表于 2006-8-17 11:03:00

哦要 召唤VB小王子

猴子很忙 发表于 2006-8-17 11:20:00

<p></p><p>飘过....</p><p></p>

七色玲珑石 发表于 2006-8-17 11:35:00

.....

中西瓜 发表于 2006-8-17 13:29:00

- -+ 简单......................

熟悉的路 发表于 2006-8-17 13:30:00

晕&nbsp; 做了那是教坏你....我不会....当年VB考试女生给的答案

刘建明 发表于 2006-8-17 13:44:00

<p>我上学期VB差点挂掉.....赶快闪....</p>有心理阴影

专属的幸福 发表于 2006-8-17 13:45:00

全忘了

熟悉的路 发表于 2006-8-17 13:47:00

<p>当年考试 女生给的答案...感谢那位女生~</p>

漂泊Θ 发表于 2006-8-22 15:14:00

急!!!!!!!!

<p>有没人知道啊...迫切需要答案...</p>
页: [1]
查看完整版本: 各位XDJM帮忙做下VB题啊,感激不尽