更新时间: 试题数量: 购买人数: 提供作者:

有效期: 个月

章节介绍: 共有个章节

收藏
搜索
题库预览
某公司为推广洗涤新产品,需要进行用户体检调查。图4—1为调查表填写页面,表4—1所示为利用Microsoft Access创建的数据库,它将记录被调查用户的姓名、性别、年龄、了解产品方式和评价等信息。


(含图)

【问题1】以下是图4—1所示

页面的部分代码,请仔细阅读该段代码,将(1)~(6)的空缺代码补齐。<body><p><strong>为了让更多的人对我们的产品使用放心,请填写下表</strong></p><form id="form"method="POST"action=""><table width="350"border="1" cellpading="0" cellspacing="0”><tr><td width="100">姓名</td><td><input type="text" name=" (1) "value=""></td></tr><tr><td>性别</td><td><input name="sex"

type="radio" id="radio" value="true"checked="(2)"/>男<input name="sex"type="radio" id="radio2" value="(3)"/>女</td></tr>.....<tr><td colspan="(4)"><input type="(5) "name="sub" id="sub"value="提交"/><input type="reset"name="reset"id="reset"value="重置”/></td></tr>< /table><(6)></body>(1)~(6)备选答案:A.submit B.user C.false D.2 E.checked F./form

【问题2】用户填写调查问卷后,将转到统计页面,如图4—2所示。统计页面将显示目前所参与调查的人数、按性别统计与占比、按年龄统计与占比等信息。下面是统计页面的部分代码,请将代码补充完整。


(含图)

<%......sql="SELECT sex,count(sex)as sexNum FROM (7) group by (8) ORDER BY sex desc”注释:按照性别统计Rs1.open (9),conn While Not Rs1.eof If Rs1 ("sex") ="(10)"Then sexNum_1=Rs1("sexNum") End If If Rs1("sex")="false" Then sexNum_2=Rs1("(11)") End If Rs1.movenext Wend countNum=sexNum_1+sexNum_2.....%><body><p><strong>此 次活动已经有<%=(12)%>人参加,其中</strong></p><table width="350"border="1" cellpading="0" cellspacing="0"><tr><td width="350"colspan="2”>性别</td></tr><tr><td width="100">男</td><td> <%=sexNum_1%>人,占<%=FormatPercent((13)/countNum)%></td></tr><tr><td width="100">女< /td><td><%=(14)%>人,占<%=FormatPercent(sexNum_2/countNum)%></td></tr>.....</table>< %(15)%>(7)~(15)备选答案:A.true B.Rs1.close C.sexNum_1 D.sexNum_2 E.invest F.sexNum G.sex H.countNum l.sql

某公司用ASP+Access数据库开发了学生管理系统,用户登录界面如图4—1所示: 

(含图)

【问题1】下面是该系统用户登录界面login.asp的部分代码,其中验证码使用verycode.asp 文件生成。请根据题目说明,补充完成。 

(5) true;


}


......//省略验证码检测部分代码


-->


</script> 


</head>


 <body>


<table cellSpacing=1 cellPadding=5 width=460 border=0> 


<FORM action="check.asp? action=login"method=(6) on Submit="return chk(this)">


···省略···


 <tr>


<td align=right width=60 height=30>用户名:</td> 


<td height=30><input type= (7) name=user_name></td></tr>


<tr>


<td align=right height=30>密&nbsp;&nbsp;码:</td>


<td height=30x<input type= (8) name=use_pwd></td></tr> 


<tr>


<td align=righ>t验证码:</td>


<td><input maxlength (9) name=veri_code<img src="vericode.asp" border='0'onClick="this.src='(10)""alt=点击刷新'/></td></tr> 


<tr align=middle>


<td colSpan=2 height=40><input type=(11) value="登录"> 


<html xmins="http://www.w3.org/1999/xhtml>


(1)


<title学生信息管理系统</title> 


<script language="JavaScript"> 


<!--


function chk(theForm) 


{


if(theForm.(2)value="") 


{


alert(“请输入用户名!”);


the Form.user_name.focus(); 


return((3));


}


if(theForm.(4).value==) 


{


alert("请输入密码!");


theForm.user_pwd.focus(); 


return(false); 


}


></td>


··省略··· 


</body>


 </html>


【问题2】下面是登录系统中check.asp文件的部分代码,请根据login.asp 代码将其补充完整。<%username=trim(request("user_name"))password=trim(request("user_pwd"))set


rs=server.createobject("adodb.recordset")sql="select*from admin where username=""&username&”" andpassword=""&md5(password)&"" (12).open sql,conn,1,3if rs.eof thenResponse.write"<center>"&username&”用户名或密码错误,请重新输入!"else...省略...


session("user_name")=request("usre_name")response. (13)"index.asp"end if...省略...%>

1