<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<html>
<head>
<title>考试系统(郑妍)</title>
</head>
<body>
<%
%>
<form action="考试.jsp" method="get">
<h3>一、判断题</h3><br>
<table>
<tr>
<td></td><td>T</td><td>F</td>
</tr>
<tr>
<td>1.民主是解放思想的重要条件。</td><td> <input type="radio" name="pd1" id="pd1" value="1"></td><td><input type="radio" name="pd1" id="pd2"value="2"></td>
</tr>
<tr>
<td>2.发展是硬道理。</td><td> <input type="radio" name="pd2"value="1"></td><td><input type="radio" name="pd2"value="2"></td>
</tr>
<tr>
<td>3.治国必先治党,治党务必从严。</td><td> <input type="radio" name="pd3"value="1"></td><td><input type="radio" name="pd3"value="2"></td>
</tr>
<tr>
<td>4.“解放思想,实事求是”是邓小平理论的精髓;</td><td> <input type="radio" name="pd4"value="1"></td><td><input type="radio" name="pd4"value="2"></td>
</tr>
<tr>
<td>5.中共十一大实现了全党工作重心的转移。</td><td> <input type="radio" name="pd5"value="1"></td><td><input type="radio" name="pd5"value="2"></td>
</tr>
</table>
<h3>二、单项选择</h3><br>
<table>
<tr><td colspan="4"> 6.西汉文学成就中,最为突出的是()</td></tr>
<tr><td><input type="radio" name="xz1"value="1">A、散文、诗歌</td><td><input type="radio" name="xz1"value="2">B、小传、传奇</td>
<td><input type="radio" name="xz1"value="3">C、戏剧、传记</td><td><input type="radio" name="xz1"value="4">D、赋和乐府诗</td></tr>
<tr><td colspan="4"> 7.北京故宫始建于()</td></tr>
<tr><td><input type="radio" name="xz2"value="1">A、1406</td><td><input type="radio" name="xz2"value="2">B、1506</td>
<td><input type="radio" name="xz2"value="3"> C、1426</td><td><input type="radio" name="xz2"value="4">D、1416</td></tr>
<tr><td colspan="4"> 8.我国现存最大的皇家园林()</td></tr>
<tr><td> <input type="radio" name="xz3"value="1">A、北海公园</td><td><input type="radio" name="xz3"value="2">B、苏州园林</td>
<td><input type="radio" name="xz3"value="3"> C、颐和园</td><td><input type="radio" name="xz3"value="4">D、承德避暑山庄</td></tr>
<tr><td colspan="4"> 9.我国现存历史悠久而规模很大的皇家园林()</td></tr>
<tr><td> <input type="radio" name="xz4"value="1">A、北海公园</td><td><input type="radio" name="xz4"value="2">B、苏州园林</td>
<td><input type="radio" name="xz4"value="3"> C、颐和园</td><td><input type="radio" name="xz4"value="4">D、承德避暑山庄</td></tr>
<tr><td colspan="4"> 10.我国现有大型皇家园林中,最为完整、最典型的是()</td></tr>
<tr><td> <input type="radio" name="xz5"value="1">A、北海公园</td><td><input type="radio" name="xz5"value="2">B、苏州园林</td>
<td><input type="radio" name="xz5"value="3"> C、颐和园</td><td><input type="radio" name="xz5"value="4">D、承德避暑山庄</td></tr>
</table>
<h3>三、多选</h3><br>
11.列入世界遗产名录的我国自然遗产有( )<br>
<input type="checkbox" name="dx1" value="1">A、黄山<br>
<input type="checkbox" name="dx1"value="2">B、武陵源<br>
<input type="checkbox" name="dx1"value="3">C、峨眉山<br>
<input type="checkbox" name="dx1"value="4">D、黄龙<br>
12.由地壳运动产生断裂凹陷形成的湖泊是<br>
<input type="checkbox" name="dx2"value="1">A、滇池<br>
<input type="checkbox" name="dx2"value="2">B、洱海<br>
<input type="checkbox" name="dx2"value="3">C、长白山天池<br>
<input type="checkbox" name="dx2"value="4">D、五大连池<br>
<input type="checkbox" name="dx2"value="5">E、查干尔湖<br>
13.我国已被列入世界遗产名录的古城有 ( )<br>
<input type="checkbox" name="dx3"value="1">A、西安<br>
<input type="checkbox" name="dx3"value="2">B、苏州<br>
<input type="checkbox" name="dx3"value="3">C、平遥<br>
<input type="checkbox" name="dx3"value="4">D、丽江<br>
14.中国传统屋顶中()为级别最高的。<br>
<input type="checkbox" name="dx4"value="1">A、重檐庑殿顶<br>
<input type="checkbox" name="dx4"value="2">B、重檐歇山顶<br>
<input type="checkbox" name="dx4"value="3">C、单檐庑殿顶<br>
<input type="checkbox" name="dx4"value="4">D、单檐歇山顶<br>
15.伊斯兰教在中国的传播路线包括( )<br>
<input type="checkbox" name="dx5"value="1">A、丝绸之路(海路)<br>
<input type="checkbox" name="dx5"value="2">B、香料之路(海路)<br>
<input type="checkbox" name="dx5"value="3">C、丝绸之路(陆路)<br>
<input type="checkbox" name="dx5"value="4">D、香料之路(陆路)<br>
<input type="submit" value="提交">
</form>
</body>
</html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>成绩查询(郑妍)</title>
</head>
<body>
<% int sum=0;
String t1=request.getParameter("pd1");
String t2=request.getParameter("pd2");
String t3=request.getParameter("pd3");
String t4=request.getParameter("pd4");
String t5=request.getParameter("pd5");
String t6=request.getParameter("xz1");
String t7=request.getParameter("xz2");
String t8=request.getParameter("xz3");
String t9=request.getParameter("xz4");
String t10=request.getParameter("xz5");
String t11[]=request.getParameterValues("dx1");
String t12[]=request.getParameterValues("dx2");
String t13[]=request.getParameterValues("dx3");
String t14[]=request.getParameterValues("dx4");
String t15[]=request.getParameterValues("dx5");
if(t1==null)
{
}
if (t1==null)
{
out.print("<p style='color:blue'>1.应选T</p>");
}
else if(t1.equals("1"))
{
out.print("<p style='color:green'>1.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>1.错误,应选T</p>");
if (t2==null)
{
out.print("<p style='color:blue'>2.应选T</p>");
}
else if(t2.equals("1"))
{
out.print("<p style='color:green'>2.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>2.错误,应选T</p>");
if (t3==null)
{
out.print("<p style='color:blue'>3.应选T</p>");
}
else if(t3.equals("1"))
{
out.print("<p style='color:green'>3.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>3.错误,应选T</p>");
if (t4==null)
{
out.print("<p style='color:blue'>4.应选T</p>");
}
else if(t4.equals("1"))
{
out.print("<p style='color:green'>4.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>4.错误,应选T</p>");
if (t5==null)
{
out.print("<p style='color:blue'>5.应选F</p>");
}
else if(t5.equals("2"))
{
out.print("<p style='color:green'>5.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>5.错误,应选F</p>");
if (t6==null)
{
out.print("<p style='color:blue'>6.应选D</p>");
}
else if(t6.equals("4"))
{
out.print("<p style='color:green'>6.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>6.错误,应选D</p>");
if (t7==null)
{
out.print("<p style='color:blue'>7.应选C</p>");
}
else
if(t7.equals("3"))
{
out.print("<p style='color:green'>7.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>7.错误,应选C</p>");
if (t8==null)
{
out.print("<p style='color:blue'>8.应选B</p>");
}
else
if(t8.equals("2"))
{
out.print("<p style='color:green'>8.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>8.错误,应选B</p>");
if (t9==null)
{
out.print("<p style='color:blue'>9.应选D</p>");
}
else
if(t9.equals("4"))
{
out.print("<p style='color:green'>9.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>9.错误,应选D</p>");
if (t10==null)
{
out.print("<p style='color:blue'>10.应选B</p>");
}
else
if(t10.equals("2"))
{
out.print("<p style='color:green'>10.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>3.错误,应选B</p>");
if (t11==null||t11.length<2)
{
out.print("<p style='color:blue'>11.应选A和D</p>");
}
else
if(t11[0].equals("1")&t11[1].equals("4"))
{
out.print("<p style='color:green'>11.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>11.错误,应选A和D</p>");
if (t12==null||t12.length<3)
{
out.print("<p style='color:blue'>12.应选B、C、E</p>");
}
else
if(t12[0].equals("2")&t12[1].equals("3")&t12[2].equals("5"))
{
out.print("<p style='color:green'>12.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>12.错误,应选B、C、E</p>");
if (t13==null||t13.length<4)
{
out.print("<p style='color:blue'>13.应选A、B、C、D</p>");
}
else
if(t13[0].equals("1")&t13[1].equals("2")&t13[2].equals("3")&t13[3].equals("4"))
{
out.print("<p style='color:green'>13.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>13.错误,应选A、B、C、D</p>");
if (t14==null||t14.length<3)
{
out.print("<p style='color:blue'>14.应选A、B、D</p>");
}
else
if(t14[0].equals("1")&t14[1].equals("2")&t14[2].equals("4"))
{
out.print("<p style='color:green'>14.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>14.错误,应选A、B、D</p>");
if (t15==null||t15.length<3)
{
out.print("<p style='color:blue'>15.应选A、B、D</p>");
}
else
if(t15[0].equals("1")&t15[1].equals("2")&t15[2].equals("4"))
{
out.print("<p style='color:green'>15.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>15.错误,应选A、B、D</p>");
out.print("<p style='color:red;'><font>最后得分"+sum+"</font><p>");
%>
</body>
</html>