题目:[问题2](7分)
下列是根据班级查询某班级所有学生的各科目平均成绩,平均分小数点后保留2位。图4-2为执行查询后的页面截图。请仔细阅读该段代码,将(9)一(5)的空缺代码补齐。
图4-2
StuExamview.asp代码片段:
<!--#includefile="( 9)”-->,引入数据库连接定义
……
<%
Classid=request.form(”Classid");
sql="select classid, round(avg_chinese),(10) as avg_chinse,round(avg(maths);2)as avg_ maths;round(avg(english),2) as avg_english from stuexam where classid=' "&classid&"’group by(11)“
rs .open sql,Conn
Chinese=0
Maths=0
English=0
Total=0
if Not rs.eof Then
Chinese=rs(”avg_Chinese”)
maths=rs(”avg_maths”)
english=rs(”(12)”)
End if
total=Chinese+english+english
rs .close
%>
…
<table width=”80%” border=”1” align=”center” cellpadding=”0”cellspacing=”0”>
<tr>
<td colspan=”(13)”height="30"align="center">查询结果</td>
</tr>
<tr>
<td width=“20%” height="30">班级</td>
<td width=“20%” height="30">语文平均分</td>
<td width=“20%” height="30">数学平均分</td>
<td width=“20%” height="30">英语平均分</td>
<td width=“20%” height="30">总平均分</td>
</tr>
<tr>
<td width=“20%” height="30"><% =classid%></td>
<td width=“20%” height="30"><% =chinese%></td>
<td width=“20%” height="30"><% =(14)%></td>
<td width=“20%” height="30"><% =english%></td>
<td width=“20%” height="30"><% =(15)%></td>
</tr>
</table>
(9)一(15)备选答案:
A .classid B. totalC. 5 D.2
E.avg_english F. conn.asp G. mathsH .avg_maths