当前位置:文档之家› Web程序设计 期末 试卷

Web程序设计 期末 试卷

一、填空题(每空1分,共20分):1. HTTP协议的工作模式是基于________、_________。

2. Web全称是____________,Web是一种体系结构,通过它可以访问分布于Internet主机上的通过_________联接在一起的链接文档。

3. JavaScript是由Netscape开发的一种_______语言,可以直接插入到_______文档中。

4. IP地址中一个C类地址最高三位是110,接下来21位是________,其余___位是主机地址。

5. DHTML中的D指的是_______。

6. DOM,即__________________,是由W3C提出的,从_______对象模型技术发展而来。

它将文档作为一个______结构,其中的每个节点表现为一个HTML标记或者HTML标记内的文本项。

7. ASP运行于________端,是Microsoft公司在1996年底推出的一种取代______的Web应用程序开发技术。

8. ASP通过后缀名为____的文件来实现,一个ASP文件相当于一个_______文件。

9. ________技术是一种良好的Web数据库访问解决方案,通过一组对象的______和方法来完成相应的数据库访问的目的。

10. 可以直接在Internet Explorer浏览器中打开XML文档,更多的是通过________和_________方式来显示XML文档。

二、选择题(每题2分,共20分):1.相对比较早出现的服务器端技术是:A.ASPB.CGIC.JSPD.JavaScript2. Web的工作模式是:A. 客户端/服务器端B. 浏览器/服务器C. 浏览器/浏览器D. 浏览器/客户端3.<br>表示:A.分段 B.产生空格C.强制换段D.强制换行4.一组选项中可以选择多项的表单元素是:A.Checkbox B.RadioC.TextD.Textarea5. 在DHTML中把整个文件的各个元素作为对象处理的技术是:A.HTMLB.CSSC.DOMD.Script6. 下面那种语言是解释执行的:A.C++B.DelphiC.JavaScriptD.Java7. ASP文件所有的Script程序代码均须放在下列符号之间:A./* */B.<!-- -?C.<pre> </pre>D. <% %>8.<%Response.Write "您来访的时间是:" & Year(date()) & "年" & Month(date()) & "月" & Day(date()) & "日" %>如果浏览者打开这个ASP页面的日期是2006年5月20日,以上代码运行后,转化成标准HTML代码为:A.您来访的时间是:2006年5月20日B. Response.Write "您来访的时间是:" & Year(date()) & "年" & Month(date()) & "月" & Day(date()) & "日"C. <%您来访的时间是:2006年5月20日%>D.您来访的时间是:" & Year(date()) & "年" & Month(date()) & "月" & Day(date()) & "日"9.SQL语句中创建数据表的语句是:A.Create TableB.Produce TableC.Alter TableD.Drop Table10.Response.Redirect "login.asp"表示:A.覆盖login.aspB.关闭login.aspC. 在一个新窗口中打开login.aspD. 重定向到login.asp三、简答题(每题6分,共30分)1.简述标记<p>同<B>的区别2. Java和Javascript之间的关系是怎样的3. ASP的特点4. DHTML技术的组成5. ADO中的独立对象类有哪些四、程序题(每题10分,共30分)1.用JavaScript写一个函数isAlpha()检查一个表单元素是否只含有字母(即“a”到“z”以及“A”到“Z”)。

2.有如下XML文档,写出验证该文档有效性的DTD<?xml version="1.0"?><!DOCTYPE cookbook SYSTEM "./recipe.dtd"><cookbook><category type="loaf"><recipe><name>The basic loaf</name><ingredient><qty amount="825" unit="ml"/><item>Warm water</item></ingredient><ingredient><qty amount="20" unit="g"/><item>Granulated dried yeast</item></ingredient><ingredient><qty amount="20"/><item>Sugar</item></ingredient><ingredient><qty amount="450"/><item>Stoneground wholemeal flour</item></ingredient><ingredient><qty amount="900"/><item>Strong white bread flour</item></ingredient><ingredient><qty amount="20"/><item>Salt</item></ingredient><ingredient><qty amount="55"/><item>Fresh lard</item></ingredient><cooking><time>15</time><gas>8</gas><electric>230c</electric></cooking><cooking><time unit="minutes">30</time><gas>6</gas><electric>200c</electric></cooking><serves /><instruction><ins>Add the yeast and sugar to the warm water and leave to activate</ins></instruction><instruction><ins>Sieve the flour and salt into a large bowl</ins> </instruction><instruction><ins>Crumble the lard into the flour until it has a "breadcrumb" texture</ins></instruction><instruction><ins>Mix the liquid into the flour</ins></instruction><instruction><ins>turn onto floured surface and knead for 300strokes</ins></instruction><instruction><ins>Form into a ball, place in a warm place untildoubled in size</ins></instruction><instruction><ins>Knead for another 100 strokes</ins></instruction><instruction><ins>Form into a ball, place in a warm place untildoubled in size</ins></instruction><instruction><ins>Form into five loaves and leave to rise for 30minutes</ins></instruction><instruction><ins>Bake!</ins></instruction></recipe></category></cookbook>3.在你的个人主页上添加时间显示信息,显示当天的日期、时间及星期几。

相关主题