阅读以下说明,回答问题1至问题2,将解答填入答题纸对应的解答栏内。 【说明】

练习题库2022-08-02  32

问题 阅读以下说明,回答问题1至问题2,将解答填入答题纸对应的解答栏内。【说明】某学校新生入学后进行信息登记,其登记页面和登记后信息显示页面分别如图4-1和4-2所示。【问题1】(9分)以下是图4-1所示的index.asp页面的部分代码,请仔细阅读该段代码,将(1)~(9)的的空缺代码补齐。 <title>学生档案</title><body><div aljgn="(1)”><h1><strong>学生档案</strong><h1></div><form id="form1" name="form1” method=”(2)”action=show.asp”>  <table width="485" border="1" align="center">    <tr>      <td>姓名</td >      <td><label for="name"></label>      <input type="(3)”name=”name” id=”name”/></td>   </tr>   <tr>     <td>性别</td>   <td><input type=”(4)" name="sex" id="radio" value="男 " />   <label for="sex”>男    <input type="radio" name="sex" id="radio2" value=”女" />    女</label></td>  </tr>  <tr>   <td>城市</td><td><label for="city"></label> <(5) name="city" id="city"><option  value="北京"  selected="(6)”>北京</option>    <option value=”上海”>上海</option>    <option value="广州">广州</option></select></td></tr><tl><td>班级</td><td><label for"class"></label><input type="text" name="class" id="class"/></td></tr><tr>  <td>爱好</td>  <td><label for="favorite"></label>    < (7)name="favorite" id="favorite" cols="45" rows= "5”></textarea></td></tr><tr><td> </td>    <td><input type=”(8)” name="button" id="button" value="提交" /><input type=”(9)" name="button2" id="button2" value=”重新填写”/></td>    </tr>    </table>  </form>  </body>  </html>(1)~(9)备选答案:A.submit    B.selected   C.post      D.reset        E.radioF.text          G.center       H.textarea   I.select【问题2】(6分)学生输入信息并提交后,系统将回显学生信息,并显示登记位次。下面是显示学生登记位次的部分代码,请根据图4-2将下面代码补充完整。<%Whichfile=server. mappath ("register.txt")set fs=server.(10)("Scripting.FileSystemObject")set thisfile=fs. opentexfile (whichfile)visitors= (11) .readlinethisfile.closeresponse.Write("<center><font size=5>你是第”&(12)&位登记者</font></center>”)%>…… //省略页面显示部分代码<%visitors=visitors+1set out=fs.(13)(whichfile)(14).writeLine (visitors)out.closeset fs=(15)%>(10)~(15)备选答案:A.thisfile                    B.visitors           C.nothingD.CreateObject          E.out                  F.createtextfile

选项

答案

解析 【问题1】(9分)(1)G(2)C(3)F(4)E(5)I(6)B(7)H(8)A(9)D【问题2】(5分)(10)D(11)A(12)B(13)F(14)E(15)C 对应图文信息,align表示水平对齐方式,应为居中center。接着是相应表单由用户输入信息后提交到服务器的内容,表单内容以post方式传送。并采用表格的形式,收集相应的信息。名字输入的是一串字符,type=text、性别是单选项,type=radio、城市是下拉列表,可进行选择可选项有北京、上海、广州、默认为selected为北京。爱好可用一段文字描述,submit提交按钮,Reset,重置按钮。
转载请注明原文地址:https://tihaiku.com/congyezige/2430929.html

最新回复(0)