好文档 - 专业文书写作范文服务资料分享网站

《基于WEB程序设计》期末考试及答案

天下 分享 时间: 加入收藏 我要投稿 点赞

: 号 位座 密 : 号学 封 :业 专 :名 姓 线 : 心 中 习 学 《基于WEB程序设计》

期末考试试卷

考生注意:1.本试卷共有六道大题,满分100分。

2.考试时间90分钟。 3.卷面整洁,字迹工整。 4.填写内容不得超出密封线。 总分 题号 一 二 三 四 五 六 核分人 题分 10 10 20 10 30 20 复查人 得分 得分 评卷人 一、HTML代码分析(每小题5分,共10分) 1. 根据网页截图效果补充代码。(5分)

___1______ </ 2 > </ 3 > <body> </ 4 > </ 5 > </p><p>2. 根据网页截图效果补充代码。(5分) </p><p> </p><p> </p><p><table border=\ <tr> </p><p> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </p><p> </p><p> </tr> < 1 > </p><p> <td>row 2, cell 1</ 2 > < 3 >row 2, cell 2</td> </ 4 > </ 5 > 得分 评卷人 二、数据库基础代码分析 (每小题5分,共10分) 1.解释代码:请解释下述代码的含义。(5分) INSERT INTO article ( title, writer, content ) VALUES (‘实验’, ‘学生’, ‘插入数据’); </p><p>2.解释代码:请解释下述代码的含义。(5分) DELETE * FROM article WHERE 编号=1; 得分 评卷人 三、标准控件代码分析(每小题10分,共20分) 1. 解释代码:请解释下述代码的含义。(10分) ButtonEx.aspx : </p><p><%@ Page Language=\Inherits=\ </p><p><!DOCTYPE html PUBLIC \\ </p><p><html xmlns=\ <head runat=\ </p><p> <title>无标题页

-精品-


--------

ButtonEx.vb :

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

Response.Write(\通过按钮的Click事件触发后显示!\ End Sub

Protected Sub Button1_Command(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Button1.Command Label1.Text = Label1.Text + \ End Sub End Class

2. 解释代码:请解释下述代码的含义。(10分) CalendarEx.aspx :

<%@ Page Language=\Inherits=\

无标题页

BorderWidth=\Height=\

NextPrevFormat=\

Font-Size=\

--------

CalendarEx.vb :

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged

Label1.Text = Calendar1.SelectedDate.ToShortDateString() End Sub End Class 得分 评卷人 四、网络基础名词解释(每小题5分,共10分) 1. 请解释如图所示模型的含义。(5分) SQL client server

database2. 请解释如图所示模型的含义。(5分)

-精品-

密 封 线 HTTPSQLdatabasebrowserweb server

得分 评卷人 五、站点开发控件代码分析(每小题10分,共30分)

1. 解释代码:请解释下述代码的含义。(10分) CompareValidatorEx.aspx :

<%@ Page Language=\ Inherits=\

无标题页

ControlToValidate=\ Operator=\

Type=\结束时间必需大于开始时间
--------

CompareValidatorEx.vb :

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

CompareValidator1.Validate()

If (CompareValidator1.IsValid = True) Then Response.Write(\通过检验\ End If End Sub End Class

2. 解释代码:请解释下述代码的含义。(10分) CustomValidatorEx.aspx :

<%@ Page Language=\Inherits=\

无标题页

ErrorMessage=\不是偶数

--------

CustomValidatorEx.vb :

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub CustomValidator1_ServerValidate(ByVal source As Object, ByVal args As

-精品-

System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate Dim i As Integer

i = Integer.Parse(args.Value)

If i Mod 2 = 0 Then args.IsValid = True Else

args.IsValid = False

End If

End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

CustomValidator1.Validate()

If (CustomValidator1.IsValid = True) Then Response.Write(\通过检验\ End If End Sub End Class

3. 解释代码:请解释下述代码的含义。(10分) LoginEx.aspx :

<%@ Page Language=\Inherits=\

无标题页

 

--------

LoginEx.vb :

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub Login1_Authenticate(ByVal sender As Object, ByVal e As

System.Web.UI.WebControls.AuthenticateEventArgs) Handles Login1.Authenticate

End Sub End Class

得分 评卷人 六、内建组建对象代码分析(每小题10分,共20分)

1. 解释代码:请解释下述代码的含义。(10分) Application.aspx :

<%@ Page Language=\Inherits=\

无标题页

--------

Application.vb :

Partial Class _Default

Inherits System.Web.UI.Page

-精品-

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Application(\

Response.Write(\访问时间为:\ End Sub End Class

2. 解释代码:请解释下述代码的含义。(10分) HttpBrowser.aspx :

<%@ Page Language=\Inherits=\

无标题页

--------

HttpBrowser.vb :

Partial Class _Default

Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim bc As HttpBrowserCapabilities = Request.Browser

Response.Write(\您好,您正在使用 \你的运行平台是 \ End Sub End Class

《基于WEB程序设计》期末考试答案

HTML代码分析(10分)

1. 根据网页截图效果补充代码。(5分) 我的网页

2. 根据网页截图效果补充代码。(5分)

row 1, cell 1 row 1, cell 2
row 2, cell 1 row 2, cell 2

数据库基础代码分析 (10分)

1. 解释代码:请解释下述代码的含义。(5分) INSERT INTO article ( title, writer, content ) VALUES (‘实验’, ‘学生’, ‘插入数据’); 答案要点:加入一条记录。

2. 解释代码:请解释下述代码的含义。(5分) DELETE * FROM article

WHERE 编号=1;

-精品-

《基于WEB程序设计》期末考试及答案

:号位座密:号学封:业专:名姓线:心中习学《基于WEB程序设计》
推荐度:
点击下载文档文档为doc格式

精选图文

热门排序

推荐文章

热门标签

02t7l7fajz721et5ixox47ty70kclt0052h
领取福利

微信扫码领取福利

微信扫码分享