| l | ||
|---|---|---|
| < (6) name="body" cols="60" rows="5"> | ||
| ||
试题二(15分)
阅读下列说明,回答问题 1 至问题3,将解答填入答题纸的对应栏内。
【说明】
某电子商务网站主页如图 2-1 所示:

【问题1】(5 分)
以下是该网站主页部分的 html 代码,请根据图2-1 将(1)~(5)的空缺代码补齐:
<html>
(1) 非凡商务网站首页 (2)
<!-- (3) file="include/header.asp"-->
<table width="784" >
<tr >
……
<form. …… >
<td width="45%">
<input type="text" size="15" maxlength="15" (4) ="关键字" >
<select name="action" >
<option value="1" (5) >商品名称</option>
<option value="2">商品类别</option>
<option value="3">商品简介</option>
<option value="4">详细说明</option>
</select>
<input type="submit" value="立即查询" >
<input type="button" value="高级查询" nClick="location.href='search.asp'">
</td>
</form>
</tr>
</table>
</html>
【问题2】(5 分)
1.该网站所有页面都包含导航栏,为方便网站维护,建设网站时将导航栏置于文件
header.asp 中,这样做的优点是什么?(2 分)
2.该网站用到了层叠样式表(CSS),其样式表文件在网站根目录下的include 文件夹下,
名字叫做example.css。某网页文件在网站根目录下的admin 目录中,下面是该页面的部分代码,
其作用是导入外部样式表文件。请为下列(6)~(8)处选择合适的答案。(3 分)
<meta. http-equiv="Content-Type" content="text/html; charset=gb2312">
< (6) href=" (7) " rel="stylesheet" (8) ="text/css">
(6)备选答案
A. a B. link C.css D.open
(7)备选答案
A.../include/example.css B. ../admin/include/example.css
C. ../admin/example.css D. ../example.css
(8)备选答案
A.type B.include C.link D.content
【问题3】(5 分)
下面是用户登陆页面的部分代码,基本功能是检测用户是否填写用户名,如果没有填写,
跳出窗口提示错误,否则提交用户信息。请为下列(9)~(13)处选择合适的答案。
……
<form. name=loginfo method=post (9) ="chkuser.asp">
<input type=submit value="登录" nClick="return checkuu();">
</form>
……
<SCRIPT. language="JavaScript">
<!--
(10) checkuu()
{
if(checkspace(document.loginfo.username. (11) )) {
document.loginfo.username.focus();
(12) ("用户名不能为空!");
(13) false;
}
……
}
//-->
</script>
(9)~(13)备选答案
A.run B.action C.value D.return
E.a href F.alert G.submit H.function
第1题:
请根据网页显示的效果图和网页中的元素说明,将HTML文本中 (n) 处的解答填入答题纸对应的解答栏内。
说明
在Ⅲ浏览器中输入常春藤大学招生办公室主页的网址并回车后,网页显示的效果如图5-1所示。

HTML文本
<html>
<head>
<title>2004 年研究生入学考试成绩查询</title>
(1)
<body bgcolor="white">
<p align="center"> (2) </p>
<p align="center">2004 年入学考试成绩查询</p>
<p align="center">
<IMG nClick=over(this) title=放大 border="0" sre="nyc.jpg" width="77" height="83">
</p>
<div align="center" style="width: 679; height: 101">
<table border="1" width="63%'' height="17">
<tr>
<rd width="23%" height=-"1">
<p align="right"><font face="宋体" size="2">请输入准考证号 : </font></p>
</td>
<td width="46%" height="1">
(3)
<p>
<input type="text'' name="T 1" size="20">
<input type="submit" value="开始查找" name="Bl"></p>
</form>
<ltd>
</tr>
<tr>
<rd width="23%" height=-" 17">
<p align="right"Xfont size="2 ">考生类别: </font></p>
</td>
<rd width="38%'' height=19>
(4)
</td>
</tr>
<tr>
<td width="23%" height=-" 1">
<p align="right"xfont size="2">报考系: </font></p>
<ltd>
<td width="46%'' height=-'' 1 ">
<p align="le~"><select size=" 1" name="D 1">
<option selected>计算机科学系</option>
<option>机械工程系</option>
<option> 中文系</option>
</select></p>
</td>
</tr>
</table></div><p align="center"><font size="2">如有疑问,速与招生办公室联系!
(5)
<a href=-"mailto:vipmail@cqt, edu.cn">zsb@cqt.edu.cn</a></font></p><p align="center"><font size="2">下载2005年招生
简章:</font>
(6)
<font size="2" color="Red">>>立即下载</font></a></P></html>
第2题:
阅读下列说明,回答问题1至问题3。
【说明】
某电子商务网站主页如图6-2所示:

以下是该网站主页部分的HTML代码,请根据图6-2将(1)~(5)的空缺代码补齐。
<html>
(1)非凡商务网站首页(2)
<!--(3)file="include/header.asp”-->
<table width="784" >
<tr >
.
.
.
<for…>
<td width="45%">
<input type="text" size="15" maxlength="15"(4)="关键字“ >
<select name="action" >
<option value="1"(5)>商品名称</option>
<option value="2 ">商品类别< / option>
<option value="3" >商品简介</option>
<option value=" 4 ">详细说明< / option>
</select>
<input type="submit" value="立即查询" >
<input type="button" value="高级查询" nClick="location.href=' search.
asp ' ">
</rd>
</form>
</tr>
</table>
</html>
第3题:
阅读下列说明,回答问题1至问题2,将解答填入答题纸的对应栏内。
[说明]
如图10-4所示是电子商务系统平台结构示意图。

请把空缺的地方填写完整。
第4题:
请认真阅读以下网站建设的技术说明,结合网页显示的效果图,根据要求回答问题1~问题4。
【说明】
某出版社图书搜索网页使用ASP语言实现,文件名为“index2.asp”。用Ⅲ浏览器打开该网页后的部分显示效果如图1-18所示。

【index2.asp文件的内容】
<html>
(1) 飞思--出版.专业.权威.智育(计算机原理.技术.应用/数码.艺术/设计/少儿/动漫) (2)
<!-- (3) file="include/header, asp"-->
<table width="784">
<tr>
...
<form. ... >
<td width="45%">
<select name="action">
<option value="1"(4)>书名</option>
<option value"2">作者</option>
<option value="3">ISBN 号</option>
<option value="4">出版日期</option>
</select>
<input type="text" size="15" maxlength="15" (5)="关键字">
<input type="(6)"value="Go!" >
<input type="(7)"value="高级检索" nClick="location.href='search.asp'">
</td>
</form>
</tr>
</table>
</html>
根据图1-18网页的显示效果图,请将index2.asp文件中(1)~(7)空缺处的内容填写完整。
第5题:
阅读下列说明,回答问题1至问题3,将解答填入答题纸的对应栏内。
[说明]
下图是一个完整的供应链结构图,如图7-1所示。

图7-2是管进与电子商务的整全图。

请把图7-1空缺的部分补充完整。
第6题:
阅读下列说明,回答问题1至问题2,将解答填入答题纸的对应栏内。
【说明】
某学生信息管理系统的网站后台管理主页如图4-1所示。

【问题1】(7分) 以下是该管理系统后台管理主页部分的html代码,请根据图4-1,从以下备选答案内为程序中(1)~(7)处空缺部分选择正确答案 <html> <head> <title> (1) <title> </head> <% if (2) ("admin")="" then (3) .Redirect ("login.asp") (4) %> <frameset (5) ="71,*" framespacing="0" border="O" frameborder="O"> <frame (6) ="heaD.asp" scrolling="no" name="head" noresize> <frameset (7) ="152,*"> <frame src="menu.asp"> <frame src="main.asp" name="main" scrolling="yes" noresize> </frameset> </frameset> …… </html> (1)~(7)的备选答案: A.cols B.else C.Rows n D.response E. Src F. session G. 设为首页 H. 后台管理 【问题2】(8分) 以下是该管理系统学生信息录入页面部分的html代码,请根据图4-1,从以下备选答案内为程序中(8)~(15)处空缺部分选择正确答案。 <html> …… <script language="JavaScript"> (8) check() { if(formA. (9) .value=="") { alert("请输入学生姓名!"); formA.name_xs.focus(); retum (10) ; } …… retum (11) ; } </script> …… <form action=" " method="post" (12) ="return check();"> <table"> <tr> <td heigh=21" colspan="2">[<strong>添加学生信息</strong>] <font color="OOOOFF"></font></td> </tr> <tr> <td width="19%" height="20">学生姓名:</td> <td width="81%"><input name="name_xs" type=" (13) "id="name_cnxdb" onkeydown="next()"></td> </tr> …… <tr align="center"> <td><input type=" (14) " value="增加"> <input type=" (15) "value="重写"></td> …… <html> (8)~(15)的备选答案: A.false B.Function C.name_xs D.onsubmit E. true F. reset G. submit H. text
第7题:
阅读下列说明,回答问题l和问题2,将解答填入答题纸的对应栏内。
【说明】
某系统在线讨论区栗用ASP+Access开发,其主页如图4-1所示。
0;" >

【问题1】(8分)
以下是该网站主页部分的html代码,请根据图4一1将(1)~(8)的空缺代码补齐
< 1 -- (1) file="conn.asp-->
<html >
.....
<div id=&39; content " class=" layout &39; >
<div class=" right_body &39; >
< 2 ) name=" gues tbook" ( 3)= post " (4) = " guestbook_add. asp&39; >
<table clas s= " table">
<tr>
<th width="&39; 6 0 " > </th>
<td><label></label></td>
</tr>
<tr>
<th width=60&39;> </th>
<td><input name="title type=".(5 )" size=."50&39; /></td>
</tr>
<tr>
<th> </th>
<td><( 6) name="&39;body " cols= 60 " rows=" 5 &39; ></textarea></td>
</tr>
<tr>
<td colspan="2&39;><p class="tj &39;>
<input name="tj" type="(7) " (8) "&39;提交吧! " />
</p></td>
</tr>
</table>
</form>
</div>
.....
</html>
(1)~(8)的各选答案:
A.submit B.Fonn C. Text D . textarea
E.include F action G. Method H. value
【问题2】(7分)
该网站在主页上设置了分页显示,每页显示10条留言,以下是该网站页面分页显
示部分代码,请阅读程序代码,并将(9)~(15)的空缺代码补齐。


第8题:
试题五(15分)
阅读下列说明,回答问题1至问题3,将解答填入答题纸的对应栏内。
【说明】
某网站采用ASP+SQL Server开发,系统的数据库名为gldb,数据库服务器IP地址为202.12.34.1。打开该网站主页,如图5-1所示:

【问题1】(8分,每空1分)
以下是该网站主页部分的html代码,请根据图5-1将(1)~(8)的空缺代码补齐。
<html>
……
<!-- (1) file="include/header.asp"-->
<table width="784" >
<tr>
……
<form……>
<td width="45%">
<input type=" (2) "size="15" maxlength="15" (3) ="关键字">
< (4) name="action">
<option value="l">商品简介</option>
<option value="2">商品类别</option>
<option value="3" (5) >商品名称</option>
<option value="4">详细说明</option>
(6)
<input type=" (7) "value="立即查询" >
<input type=" (8) "value="高级查询"onClick="location.href='search.asp'">
</td>
</form>
</tr>
</table>
……
</html>
【问题2】(2分,每空1分)
该网站采用ASP编写程序代码,在ASP内置对象中,application对象和session对象可以创建存储空间用来存放变量和对象的引用。
如果在页面中设置访客计数器,应采用上述的 (9) 对象:如果编写购物车组件,应采用上述的 (10) 对象。
【问题3】(5分,每空1分)
以下是该网站进行数据库连接的代码conn.asp,请根据题目说明完成该程序,将答案填写在答题纸的对应位置。
<%
set conn= (ll) .createobject("adodb.connection")
( 12) .provider="sqloledb"
provstr"server= (13) ;database= (14) ;uid= xtgl;pwd=xtg1123"
conn. (15) provstr
%>
第9题:

第10题:


第11题:
第12题:
第13题:
请根据网页显示的效果图(见图6-3)和网页中的元素说明回答问题。

以下是网页部分源代码,请填写______ 处的空格。
<html>
<head>
(1)
<meta. http-equiv="Content-Type" content="text/html; charset=gb2312">
<link hrel="./inc/style.css" rel="stylesheet" type="text/css">
<style. type="text/css"><!-- body { margin-left: Opx; margin-top: Opx; margin-right: Opx; margin-bottom: Opx;}
.style1 { font-family: Arial, Helvetica, sans-serif; color: FFFFFF; }
.style2 {color: FFFFFF}
--></style>
</head>
<body>
<br>
<table width="700" height="420" border="0" align="center" cellpadding="0"cellspacing="1" bgoolor="dddddd">
<tr>
<td valign="top"><table width="700" height="420" border="0" cellpading="0" cellspacing="0" bgcolor="ffff">
<tr>
<td valign="top"><table width="700" border="0" cellpadding="5" cellspacing="0" bgcolor="f1f1f1">
<tr><td>欢迎使用员工管理系统</td></tr>
</table>
<table width="700" height="80" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><(2)="./images/logotitle. gif" width="700" height="80"></td>
</tr>
</table>
<table width="700" height="38" border="0" cellpadding="0" cellspacing="0" background="./images/bg_link.gif">
<tr><td> </td></tr>
</table>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="280"><IMG height="80" src="./images/logo. gif" width="389"></td>
<td valigr="bottom">
<form. method="post" name="Form. 1"(3)="login. asp">
<table width="300" border="0" cellspacing ="0" cellpadding="3">
<tr>
<td>用户名称: </td>
<td><input name="uid" maxlength="14" size="14" ></td>
<td>&nisp;</td>
<td> </td>
</tr>
<tr>
<td>用户密码: </td>
<td><input type="(4)"name="pwd" maxlength="6" size="14"></td>
<td> </td>
<td><input type="(5)"border="0" height="20" src="./images/login.gif" width:"54"></td>
</tr>
(6)

第14题:
试题二(共15分 )
阅读以下说明,回答问题1至问题4,将解答填入答题纸对应的解答栏内。
【 说明】
某公司欲采用 Windows Server 2003 操作系统构建一个企业网站,要求用户输入HTTPS://www.abc.com/product/index.html或HTTPS://211.102.38.18
/product /index.html均可访问该网站。index.html 文件存放在服务器 D:\software 目录中。在完成 IIS6.0 的安装后,网站的属性窗口“主目录”选项卡和“目录安全性”选项卡分别如图2-1和2-2所示。

【问题1】(4分)
在图2-1中,“本地路径”中内容为(1)。应至少勾选(2)来保障客户端对网站的访问。
(2)备选答案:
A. 脚本资源访问
B. 读取
C. 写入
D. 目录浏览
第15题:
阅读下列说明,回答问题1至问题2,将解答填入答题纸的对应栏内。
[说明]
电子商务系统的外部社会环境如图10-5所示。

请把空缺的地方填写完整。
第16题:
阅读以下说明,回答问题,将解答填入答题纸的对应栏内。
[说明]
某电子商务网站采用ASP+SQL Server开发的电子商务网站系统,提供了商品查询、网上购物车、订单管理、后台商品管理和支付等功能。其后台修改商品页面如图6-12所示。

通常,客户端浏览器不能执行(1)。
(1) A.HTML代码 B.VBScript代码 C.JavaScript代码 D.ASP内置对象代码
第17题:
阅读一下说明,回答问题1至问题3,将解答填入答题纸的对应栏内。 【说明】 某留言板采用ASP+Access开发,其后台管理登录页面如图4-1所示,留言板页面如图4-2所示。

【问题1】(8分) 以下是该留言板后台管理登录页面的部分html代码,请根据图4-1将(1)-(8)的空缺代码补充完整。 <html> ….. <hera> <title>留言板管理登录</title> </head> <body topmargin=”0”marginheight=”0”> <br> <form method=”post” ______(1)____=”chklogin.asp”> <table border =”0” width=”750” align=center cellspacing=”2” cellpadding=”6”> <tr> …….. <td align=”center”>用户名; <input type=” _____(3)____ ”name=”UserName” size=”20”> </td> </tr> <tr> <td alige=”center”>密 码; <input type=”___(4)___” name=”Password”> </td> </tr> <tr> <td align=”center”>验证码; <%dim num1,num2 Randomize DO White Len(num2)<4 Num1=CStr(Chr(57-48)*rnd+48) (5)=num2&num1 (6) (7)(”verifycode”)=num2 %> <input type=”text” name=”Verifycode”><b><span><%=session(”verifycode”)%></span> </b> </td> </tr> <tr> <td align=”center’> <p> <input type=”(8)”name=”Submit’ value=”登录”> </P> …… </html> (1)-(8)的备选答案: A.submit B.action C.text D.</td> E.session F.loop G.num2 H.password 【问题2】(3分) 该留言板数据库采用Access,其数据库名为datA.mdb,留言内容表为content。 请根据留言板要求,在表4-1中给出合适的数据类型。
(9)-(11)的备选答案: A.文本 B.备注 C.自动编号 D.日期/时间 【问题3】(4分) 以下是该留言板页面部分代码,请根据题目说明完成该程序,将答案填写在答题纸的对应位置。 <!--include file=conn.asp--> …… <% Set rs2=server.CreateObject(“adodB.recordset”) Rs2.open”select*from__( 12 )____ ” I=0 Do while not rs2.eof I=I+1 Response.Write(“<tr><td><hr><hr><font color=”red“><b>”&__( 13 )____ &“</b>楼 游客 IP:”&rs2(“ip”)& “留言时间:”& rs2(“time”)& ”留言内容↓</font><hr></td></tr></tr><tr> <td align=cener><textarea>“& rs2(” __( 14 )____ ”)& ”</textarea></td></tr>”) Rs2.movenext Loop Rs2. __( 15 )____ 验证码生成 ……. %> <tr valign=middle> <td ”><hr/>我要留言:</td> </tr> ……. ( 12 ) ~ ( 15 ) 的备选答案: A.cont B. close C.content D.I
第18题:
阅读以下说明,回答问题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.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><font size=5>你是第”&(12)&位登记者</font></center>”)%> …… //省略页面显示部分代码 <% 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
第19题:
阅读下列说明,回答问题1至问题3,将解答填入答题纸的对应栏内。
【说明】
某论坛采用ASP+Access开发,该网站域名为www.bbstd.cn,其主页如图4-1所示:

图4-1
【问题1】(8分)
以下是该网站主页部分的html代码,请根据图4-1将(1)~(8)的空缺代码补齐。
<html>
……
<tr>
<td><a href=“this” nClick=“this.style.behavior=‘url(defaulthomepage)’;
This.sethomepage(‘http://www.bbstd.cn’);return false;“>(1)</a></td>
<td><a href=“javascript:window.external.AddFavorite(location.href,document.title)”>
(2)</a></td></tr>
…….
<formmethod=“POST”(3)=“new.asp”>
<tr><td>请选择身份:</td><td> ;<select name=“sf”><option value=“0”
<selected>请选择身份</option>
<option value=‘1’>会员</option><optionvalue=‘2’>vip</option><optionvalue=‘3’>游客</option>(4)</td></tr>
<tr><td>发帖者姓名:</td><td> ;<input type=“(5)”name=“autor”size=“21”maxlength=“8” value=“游客”><font color=“FF0000”>*</font></td></tr>
………
<tr><td>帖子内容:</td><td> ;<textarea rows=“6”name=“message”cols=“72”>(6)<font color=“FF0000”>*</font></td></tr>
<tr><td colspan=“2”align=“center”><input type=“(7)” value=“确认发表” name=“B1”>
<inputtype=“(8)”value=“取消发送” name=“B2”></td></tr>
</form>
……
</html>
(1)~(8)的备选答案:
A.submit B.reset C.text D.</select>
E.</textarea> F.action G.设为首页 H.添加收藏
【问题2】(3分)
该网站数据库采用Access,其数据库名为data.mdb,表为post。Post表设计如表4-1所示。
表4-1
字段名称
说明
数据类型
Id
留言编号
(9)
Sf
留言者身份
文本
autor
留言者姓名
文本
title
留言标题
文本
views
留言点击数
数字
replies
留言回复数
数字
message
留言内容
备注
flag
显示标记
数字
lastdate
最后更新日期
(10)
1.请根据网站要求,在表4-1中给出合适的数据类型。
(9)~(10)的备选答案:
A.文本 B.数字 C.自动编号 D.日期/时间
2.根据数据库可以判断,该表中(11)字段适合作主键。
【问题3】(4分)
以下是该网站部分数据库代码,请根据题目说明完成该程序,将答案填写在答题纸的对应位置。
set db=Server.CreateObject(“ADODB.Connection”)
connect=“Driver={MicrosoftAccessDriver(*.mdb)}”;DBQ=“&server.mappath(“(12)”) db.Open (13)”
sql=“select*from (14) where flag=0 (15) by views desc”
set rs=db.Execute(sql)
(12)~(15)的备选答案:
A.data.mdb B.post C.connect D.order
第20题:
阅读以下关于网页制作和网页编程的说明,回答问题1至问题4。
某公司电子商务网站首页如下图所示。网页制作使用了CSS技术,CSS文件style.css位于发布目录c:\website下的css目录中。

下面给出首页的部分代码。
<html>
< (1) >
<title>找东东网—找我喜欢!</title>
<link (2)=”stylesheet”(3)=”text/css” href=”(4)”/>
</head>
<body>
<form. name=searchinfo method=post nclick=”chkuser.asp”>
<input name=”textfield” type=”(5)”(6)=”请输入搜索项目” size=”70”
maxlength=”50”/>
<input type=”submit” name=”submit” value=”搜索” />
</form>
<form>
<input name=”mobile” type=”radio” value=”移动”(7)/>移动<input name=
“unicom” type=”radio” value=”联通” />联通<input name=”smart” type=”radio”
value=”小灵通”/>小灵通
</form>
……省略部分代码
</body>
</html>
请将上述HTML代码中空缺的部分补充完整。
第21题:


第22题:
| l | ||
|---|---|---|
| < (6) name="body" cols="60" rows="5"> | ||
| ||
第23题: