<form action="1.jsp" method="get">
一.判断题<br>
1.唐传奇是唐代流行的文言散文<br>
请选择:<input type="radio" name="yw1" value="yw11" >对<br>
<input type="radio" name="yw1" value="yw11">错<br>
2.鲁迅是现代杂文的开拓者+<br>
请选择:<input type="radio" name="yw2" value="yw22" >对
<input type="radio" name="yw2" value="yw22">错<br>
3.顶真也叫连珠、蝉联。<br>
请选择:<input type="radio" name="yw3" value="yw33" >对
<input type="radio" name="pd3" value="pd3b">错<br>
4.聚沙成塔和细水长流的意思一样<br>
请选择:<input type="radio" name="yw4" value="yw44" >对
<input type="radio" name="pd4" value="pd44">错<br>
5.范仲淹是北宋初年杰出的政治家<br>
请选择:<input type="radio" name="yw5" value="yw55" >对
<input type="radio" name="yw5" value="yw55">错<br><br><br>
二.单选题<br>
1.- eat leaves.<br>
请选择:<br><input type="radio" name="yy1" value="yy1a">A.Monkeys<br>
<input type="radio" name="yy1" value="yy1b">B.Giraffes<br>
<input type="radio" name="yy1" value="yy1c">C.Tigers<br>
2A lion has a <br>
请选择:<br><input type="radio" name="yy2" value="yy2a">A.mane<br>
<input type="radio" name="yy2" value="yy2b">B.pouch<br>
<input type="radio" name="yy2" value="yy2c">C.stripe<br>
3.It's time bed<br>
请选择:<br><input type="radio" name="yy3" value="yy3a">A.on<br>
<input type="radio" name="yy3" value="yy3b">B.of<br>
<input type="radio" name="yy3" value="yy3c">C.for<br>
4. elephant has a trunk<br>
请选择:<br><input type="radio" name="yy4" value="yy4a">A.an<br>
<input type="radio" name="yy4" value="yy4b">B.An<br>
<input type="radio" name="yy4" value="yy4c">C.A<br>
5.What do you want <br>
请选择:<br><input type="radio" name="yy5" value="yy5a">A.to do<br>
<input type="radio" name="yy5" value="yy5b">B.do to<br>
<input type="radio" name="yy5" value="yy5c">C.dong<br>
三.多选题
1.以下小于10的数有<br>
请选择:<br>
<input type="checkbox" name="sx1" value="sx1a">A.3<br>
<input type="checkbox" name="sx1" value="sx1b">B.14<br>
<input type="checkbox" name="sx1" value="sx1c">C.5<br>
<input type="checkbox" name="sx1" value="sx1d">D.16<br>
2.3的倍数有<br>
请选择:<br>
<input type="checkbox" name="sx2" value="sx2a">A.2<br>
<input type="checkbox" name="sx2" value="sx2b">B.8<br>
<input type="checkbox" name="sx2" value="sx2c">C.12<br>
<input type="checkbox" name="sx2" value="sx2d">D.6<br>
3.三角形可分为<br>
请选择:<br>
<input type="checkbox" name="sx3" value="sx3a">A.梯形<br>
<input type="checkbox" name="sx3" value="sx3b">B.直角三角形<br>
<input type="checkbox" name="sx3" value="sx3c">C.钝角三角形<br>
<input type="checkbox" name="sx3" value="sx3d">D.锐角三角形<br>
4.满足勾股定理的数有哪些<br>
请选择:<br>
<input type="checkbox" name="sx4" value="sx4a">A.5、12、13<br>
<input type="checkbox" name="sx4" value="sx4b">B.3、4、5<br>
<input type="checkbox" name="sx4" value="sx4c">C.5、6、7<br>
<input type="checkbox" name="sx4" value="sx4d">D.6、8、10<br>
5.数学图形有<br>
请选择:<br>
<input type="checkbox" name="sx5" value="sx5a">A.正方形<br>
<input type="checkbox" name="sx5" value="sx5b">B.长方形<br>
<input type="checkbox" name="sx5" value="sx5c">C.三角形<br>
<input type="checkbox" name="sx5" value="sx5d">D.五角星<br><br><br>
<input type="submit" value="提交">
</form>
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/e62ffede874bde10f3298ad3b7ef46ac.png#pic_center)
<% int sum=0;
String w1=request.getParameter("yw1");
String w2=request.getParameter("yw2");
String w3=request.getParameter("yw3");
String w4=request.getParameter("yw4");
String w5=request.getParameter("yw5");
String w6=request.getParameter("yy1");
String w7=request.getParameter("yy2");
String w8=request.getParameter("yy3");
String w9=request.getParameter("yy4");
String w10=request.getParameter("yy5");
String w11[]=request.getParameterValues("sx1");
String w12[]=request.getParameterValues("sx2");
String w13[]=request.getParameterValues("sx3");
String w14[]=request.getParameterValues("sx4");
String w15[]=request.getParameterValues("sx5");
if (w1==null)
{
out.print("<p style='color:blue'>1.应选错误</p>");
}
else if(w1.equals("yw11"))
{
out.print("<p style='color:green'>1.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>1.错误,应选错误</p>");
if (w2==null)
{
out.print("<p style='color:blue'>2.应选正确</p>");
}
else if(w2.equals("yw22"))
{
out.print("<p style='color:green'>2.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>2.错误,应选正确</p>");
if (w3==null)
{
out.print("<p style='color:blue'>3.应选错误</p>");
}
else if(w3.equals("yw33"))
{
out.print("<p style='color:green'>3.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>3.错误,应选错误</p>");
if (w4==null)
{
out.print("<p style='color:blue'>4.应选错误</p>");
}
else if(w4.equals("yw44"))
{
out.print("<p style='color:green'>4.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>4.错误,应选错误</p>");
if (w5==null)
{
out.print("<p style='color:blue'>5.应选正确</p>");
}
else if(w5.equals("yw55"))
{
out.print("<p style='color:green'>5.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>5.错误,应选正确</p>");
if (w6==null)
{
out.print("<p style='color:blue'>6.应选B</p>");
}
else if(w6.equals("yyy1a"))
{
out.print("<p style='color:green'>6.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>6.错误,应选B</p>");
if (w7==null)
{
out.print("<p style='color:blue'>7.应选A</p>");
}
else
if(w7.equals("yy2a"))
{
out.print("<p style='color:green'>7.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>7.错误,应选A</p>");
if (w8==null)
{
out.print("<p style='color:blue'>8.应选D</p>");
}
else
if(w8.equals("yy3a"))
{
out.print("<p style='color:green'>8.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>8.错误,应选D</p>");
if (w9==null)
{
out.print("<p style='color:blue'>9.应选A</p>");
}
else
if(w9.equals("yy4a"))
{
out.print("<p style='color:green'>9.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>9.错误,应选B</p>");
if (w10==null)
{
out.print("<p style='color:blue'>10.应选D</p>");
}
else
if(w10.equals("yy5a"))
{
out.print("<p style='color:green'>10.正确</p>");
sum+=5;
}
else
out.print("<p style='color:red'>3.错误,应选D</p>");
if (w11==null||w11.length<2)
{
out.print("<p style='color:blue'>11.应选ABC</p>");
}
else
if(w11[0].equals("sx1a")&w11[1].equals("sx3a"))
{
out.print("<p style='color:green'>11.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>11.错误,应选ACD</p>");
if (w12==null||w12.length<3)
{
out.print("<p style='color:blue'>12.应选ACD</p>");
}
else
if(w12[0].equals("1")&w12[1].equals("3")&w12[2].equals("4"))
{
out.print("<p style='color:green'>12.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>12.错误,应选BCD</p>");
if (w13==null||w13.length<4)
{
out.print("<p style='color:blue'>13.应选B、C、D</p>");
}
else
if(w13[0].equals("sx3b")&w13[1].equals("sx3c")&w13[2].equals("sx3d"))
{
out.print("<p style='color:green'>13.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>13.错误,应选A、B、C、D</p>");
if (w14==null||w14.length<3)
{
out.print("<p style='color:blue'>14.应选BCD</p>");
}
else
if(w14[0].equals("sx4b")&w14[1].equals("sx4c")&w14[2].equals("sx4d"))
{
out.print("<p style='color:green'>14.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>14.错误,应选ABC</p>");
if (w15==null||w15.length<3)
{
out.print("<p style='color:blue'>15.应选ABC</p>");
}
else
if(w15[0].equals("sx5a")&w15[1].equals("sx5b")&w15[2].equals("sx5c"))
{
out.print("<p style='color:green'>15.正确</p>");
sum+=10;
}
else
out.print("<p style='color:red'>15.错误,应选A、D</p>");
out.print("<p style='color:red;'><font size='100px;'>最后得分"+sum+"</font><p>");
%>
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/688dae76d428d0228f6c9b0b7bb02f3e.png#pic_center)