题目详情

阅读以下说明,回答问题1至问题2,将解答填入答题纸对应的解答栏内。

【说明】

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

初级网络管理员,章节练习,综合练习

【问题1】(6分)

以下是图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】(9分)

用户填写调查问卷后,将转到统计页面,如图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 I.sql

正确答案及解析

正确答案
解析

【问题一】(6分)

1、B

2、E

3、C

4、D

5、A

6、F

【问题二】(9分)

7、E

8、G

9、I

10、A

11、F

12、H

13、C

14、D

15、B

【解析】

这是每年必考的HTNL+ASP题型。根据题意可知,第一问主要考查的是HTML中表格table和表单form的基本用法,这个是多次要求必须掌握的。基本表格标记中的<tr>定义行,<td>定义单元格,由图4-1和表4-1可以看出,表格中第一行有两个单元格,第一个为姓名,第二个为文本输入框(用户名),所以type为text,name应该为user。第二行中的默认性别是男,因此checked=checked就是默认选择,value的值就应该是true,女对应的value就是false;

从图4-1中的提交/重置按钮可以得到对应type的值为submit和reset。而从表中对应的行里使用的跨列(2列),因此colspan=2。

第二问主要是考查考生对form表单提交的数据到后台处理程序处理并写入数据库这一部分的处理过程。结合图4-2统计页面的内容可知,这些数据是从数据库的invest表中整理出来的信息,通过将男女分类,并按照性别的降序进行排序。因此需要连接数据库,并从数据库表中将男女统计信息统计出来。其中男对应的sex=true,对应的数量是sexNum_1,女生的sex对应false,数量对应sexNum_2,而总人数为countNum。

你可能感兴趣的试题

单选题

Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.

  • A.Artificial Intelligence
  • B.Cloud Computing
  • C.Internet of Things
  • D.Big Data
查看答案
单选题

In project human resource management , ( )is not a source of power for the project manager.

  • A.referent power
  • B.expert power
  • C.reward power
  • D.audit power
查看答案
单选题

At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.

  • A.detail feasibility analysis
  • B.opportunity analysis
  • C.economic feasibility analysis
  • D.risk analysis
查看答案
单选题

( )is a grid that shows the project resources assigned to each work package.

  • A.Stakeholder engagement assessment matrix
  • B.Requirements traceability matrix
  • C.Probability and impact matrix
  • D.Responsibility assignment matrix
查看答案
单选题

Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.

  • A.digital
  • B.networking
  • C.intelligentize
  • D.informatization
查看答案

相关题库更多 +