201819102037 尹凤波
考试系统
<html>
<head>
<title>试题</title>
</head>
<body>
<form action="提交.jsp" method="get">
<h2>一、判断</h2><br>
<table>
<tr>
<td></td><td>正确</td><td>错误</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.CPU是由控制器和运算器组成的。</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>
<h2>二、单选题</h2><br>
<table>
<tr><td colspan="4"> 1.宋朝开国皇帝是?</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"> 2.道路交通违法行为应当在15日内到哪里接受处罚?</td></tr>
<tr><td><input type="radio" name="xz2"value="1"> A.人民检察院</td><td>
<input type="radio" name="xz2"value="2">B.人民法院</td>
<td><input type="radio" name="xz2"value="3">C. 公安交通管理部门</td><td>
<input type="radio" name="xz2"value="4">D.道路运输管理部门</td></tr>
<tr><td colspan="4"> 3.R1SE组合一共多少人?</td></tr>
<tr><td> <input type="radio" name="xz3"value="1">A、9</td><td>
<input type="radio" name="xz3"value="2">B、11</td>
<td><input type="radio" name="xz3"value="3"> C、10</td><td>
<input type="radio" name="xz3"value="4">D、12</td></tr>
<tr><td colspan="4"> 4.道路交通安全违法行为累积记分周期为?</td></tr>
<tr><td> <input type="radio" name="xz4"value="1">A、3个月</td><td>
<input type="radio" name="xz4"value="2">B、6个月</td>
<td><input type="radio" name="xz4"value="3"> C、12个月</td><td>
<input type="radio" name="xz4"value="4">D、24个月</td></tr>
<tr><td colspan="4"> 5.除重型、中型载货汽车、半挂车和载运集装箱车辆,其他载货的机动车载物,高度从地面起不得超过多少米?
</td></tr>
<tr><td> <input type="radio" name="xz5"value="1">2.5米
</td><td>
<input type="radio" name="xz5"value="2"> B.3.5米
</td>
<td><input type="radio" name="xz5"value="3"> C.4米</td><td>
<input type="radio" name="xz5"value="4">D.4.2米
</td></tr>
</table>
<h2>三、多选</h2><br>
1.我国四大名著有<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.JAVA编程技术<br>
<input type="checkbox" name="dx1"value="4">D.海的女儿<br>
2.组织行为学研究的层次有<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>
3.组织行为学的研究方法有<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>
4.组织行为的理论基础有<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>
5.特质论代表人物有<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>
<html>
<head>
<title>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.应选正确</p>");
}
else if(t1.equals("1"))
{
out.print("<p style='color:green'>1.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>1.错误,应选正确</p>");
if (t2==null)
{
out.print("<p style='color:blue'>2.应选正确</p>");
}
else if(t2.equals("1"))
{
out.print("<p style='color:green'>2.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>2.错误,应选正确</p>");
if (t3==null)
{
out.print("<p style='color:blue'>3.应选正确</p>");
}
else if(t3.equals("1"))
{
out.print("<p style='color:green'>3.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>3.错误,应选正确</p>");
if (t4==null)
{
out.print("<p style='color:blue'>4.应选正确</p>");
}
else if(t4.equals("1"))
{
out.print("<p style='color:green'>4.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>4.错误,应选正确</p>");
if (t5==null)
{
out.print("<p style='color:blue'>5.应选错误</p>");
}
else if(t5.equals("2"))
{
out.print("<p style='color:green'>5.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>5.错误,应选错误</p>");
if (t6==null)
{
out.print("<p style='color:blue'>6.应选B</p>");
}
else if(t6.equals("4"))
{
out.print("<p style='color:green'>6.错误</p>");
sum+=5;
}
else
out.print("<p style='color:red'>6.错误,应选B</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 size='100px;'>最后得分"+sum+"</font><p>");
%>
</body>
</html>