考试
2020-01-04 11:21:56

2575阅读以下说明,回答问题1至问题2,将解答填入答题纸对

题目描述

阅读以下说明,回答问题1至问题2,将解答填入答题纸对应的解答栏内。 【说明】 某学校新生入学后进行信息登记,其登记页面和登记后信息显示页面分别如图4-1和4-2所示。 【问题1】(9分) 以下是图4-1所示的index.asp页面的部分代码,请仔细阅读该段代码,将(1)~(9)的 的空缺代码补齐。 <title>学生档案</title> <body> <div aljgn="(1)”> <$amp;>amp;$lt;strong>学生档案</strong$amp;>amp;$lt;> </div> <form id="form1" name="form1” method=”(2)”action=show.asp”> <table width="485" border="1" align="center"> <tr> <td>姓名</td > <td$amp;>amp;$lt;label for="name"$amp;>amp;$lt;/label> <input type="(3)”name=”name” id=”name”/$amp;>amp;$lt;/td> </tr> <tr> <td>性别</td> <td$amp;>amp;$lt;input type=”(4)" name="sex" id="radio" value="男 " /> <label for="sex”>男 <input type="radio" name="sex" id="radio2" value=”女" /> 女</label$amp;>amp;$lt;/td> </tr> <tr> <td>城市</td> <td$amp;>amp;$lt;label for="city"$amp;>amp;$lt;/label> <(5) name="city" id="city"> <option value="北京" selected="(6)”>北京</option> <option value=”上海”>上海</option> <option value="广州">广州</option> </select$amp;>amp;$lt;/td> </tr> <tl> <td>班级</td> <td$amp;>amp;$lt;label for"class"$amp;>amp;$lt;/label> <input type="text" name="class" id="class"/$amp;>amp;$lt;/td> </tr> <tr> <td>爱好</td> <td$amp;>amp;$lt;label for="favorite"$amp;>amp;$lt;/label> < (7)name="favorite" id="favorite" cols="45" rows= "5”$amp;>amp;$lt;/textarea$amp;>amp;$lt;/td> </tr> <tr> <td$amp;>amp;$amp;nbsp;</td> <td$amp;>amp;$lt;input type=”(8)” name="button" id="button" value="提交" /> <input type=”(9)" name="button2" id="button2" value=”重新填写”/$amp;>amp;$lt;/td> </tr> </table> </form> </body> </html> (1)~(9)备选答案: A.submit B.selected C.post D.reset E.radio F.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) .readline thisfile.close response.Write("<center$amp;>amp;$lt;font size=5>你是第”&(12)&位登记者</font$amp;>amp;$lt;/center$amp;>amp;$rdquo;)%> …… //省略页面显示部分代码 <% visitors=visitors+1 set out=fs.(13)(whichfile) (14).writeLine (visitors) out.close set fs=(15) %> (10)~(15)备选答案: A.thisfile B.visitors C.nothing D.CreateObject E.out F.createtextfile 请帮忙给出正确答案和分析,谢谢!

答案解析

A.thisfile B.visitors C.

加载中...
AI正在思考中,请稍候...