考试系统

题目

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>题目</title>
</head>
<body>
<form action="daan.jsp" method="post" name="form1">

    单选题<br>
    1.民族问题产生的基本原因是(  )(10)<br>
    <input type="radio" name="t1" value="A">A.民族矛盾<br>
    <input type="radio" name="t1" value="B">B.民族差异<br>
    <input type="radio" name="t1" value="C">C.民族的社会原因<br>
    <input type="radio" name="t1" value="D">D.民族交往<br>

    2.民族问题的长期性是由于(  )(10)<br>
    <input type="radio" name="t2" value="A">A、民族的自身特点和发展规律<br>
    <input type="radio" name="t2" value="B">B、民族问题太复杂<br>
    <input type="radio" name="t2" value="C">C、民族问题太复杂<br>
    <input type="radio" name="t2" value="D">D、社会主义初级阶段<br>

    3.我国解决民族问题的基本政策和基本制度是:(  )(10)<br>
    <input type="radio" name="t3" value="A">A、民族区域自治<br>
    <input type="radio" name="t3" value="B">B、联邦制<br>
    <input type="radio" name="t3" value="C">C、政治协商会议制度<br>
    <input type="radio" name="t3" value="D">D、人民代表大会制<br>

    多选题<br>
    4.民族不平等的表现形式有:(10)<br>
    <input type="checkbox" name="t4" value="A">A、经济上的剥削掠夺<br>
    <input type="checkbox" name="t4" value="B">B、政治上的压迫统治<br>
    <input type="checkbox" name="t4" value="C">C、民族间的发展差距<br>
    <input type="checkbox" name="t4" value="D">D、文化上的摧残限制<br>

    5.确定各自治地方行政区域的主要根据是(  )<br>
    <input type="checkbox" name="t5" value="A">A、民族分布<br>
    <input type="checkbox" name="t5" value="B">B、民族成份<br>
    <input type="checkbox" name="t5" value="C">C、民族关系<br>
    <input type="checkbox" name="t5" value="D">D、历史状况<br>

    6.《民族区域自治法》调整的对象是(  )(10)<br>
    <input type="checkbox" name="t6" value="A">A、统一与自治的关系<br>
    <input type="checkbox" name="t6" value="B">B、一般与特殊的关系<br>
    <input type="checkbox" name="t6" value="C">C、自治地方内部的民族关系<br>
    <input type="checkbox" name="t6" value="D">D、各自治地方之间的关系<br>

    判断题<br>
    7. 民族区域自治是我们党解决我国民族问题的基本政策,是符合我国国情的一项基本政治制度。(10)<br>
    <input type="radio" name="t7" value="true"><br>
    <input type="radio" name="t7" value="false"><br>

    8.我国民族自治地方分为自治区、自治州、自治县、民族乡四级。 (10)<br>
    <input type="radio" name="t8" value="true"><br>
    <input type="radio"  name="t8" value="false"><br>

    9.加快少数民族和民族地区的经济发展,为坚持和完善民族区域自治制度提供物质基础。(10)<br>
    <input type="radio" name="t9" value="true"><br>
    <input type="radio"  name="t9" value="false"><br>

    10. 国家在中西部地区开展的三线建设时间段是1962年到1980年。(10)<br>
    <input type="radio" name="t10" value="true"><br>
    <input type="radio"  name="t10" value="false"><br>


    <input type="submit" value="提交" name="submit">
    <input type="reset" 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("t1");

    String t2 = request.getParameter("t2");

    String t3 = request.getParameter("t3");

    String t4[] = request.getParameterValues("t4");

    String t5[] = request.getParameterValues("t5");

    String t6[] = request.getParameterValues("t6");

    String t7 = request.getParameter("t7");

    String t8 = request.getParameter("t8");

    String t9 = request.getParameter("t9");

    String t10 = request.getParameter("t10");

//单选1
    if (t1 == null) {

        out.println("<p style='color:red'>1.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为B</p>");
    } else if (t1.equals("B")) {

        sum = sum + 10;

        out.print("<p style='color:green'>1.B正确</p>");

    } else {
        out.print("<p style='color:red'>1.选项错误</p>" );
        out.print("<p style='color:blue'>正确答案为B</p>");
    }
%>
<%
    //单选2
    if (t2 == null) {

        out.println("<p style='color:red'>2.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为A</p>");

    } else if (t2.equals("A")) {

        sum = sum + 10;

        out.print("<p style='color:green'>2.A正确</p>");

    } else {
        out.print("<p style='color:red'>2.选项错误</p>" );
        out.print("<p style='color:blue'>正确答案为A</p>");
    }

%>
<%
    //单选3
    if (t3 == null) {

        out.println("<p style='color:red'>3.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为A</p>");

    } else if (t3.equals("A")) {

        sum = sum + 10;

        out.print("<p style='color:green'>3.A正确</p>");

    } else {

        out.print("<p style='color:red'>3.选项错误</p>" );
        out.print("<p style='color:blue'>正确答案为A</p>");
    }

%>
<%
    //多选4
    if (t4 == null) {

        out.println("<p style='color:red'>4.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为ABD</p>");

    }else {

        for (String s : t4) {

            out.print(s);

        }
        if (t4.length == 3) {

            if (t4[0].equals("A") && t4[1].equals("B") && t4[2].equals("D")) {

                sum = sum + 10;

                out.print("<p style='color:green'>4.ABD正确</p>");

            } else {

                out.print("<p style='color:red'>4.选项错误</p>" );
                out.print("<p style='color:blue'>正确答案为ABD</p>");

            }
        } else {

            out.print("<p style='color:red'>4.选项错误</p>" );
            out.print("<p style='color:blue'>正确答案为ABD</p>");

        }
    }

%>
<%
    //多选5
    if (t5 == null) {

        out.println("<p style='color:red'>5.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为ACD</p>");

    }else {

        for (String s : t5) {

            out.print(s);

        }
        if (t5.length == 1 || t5.length == 2 || t5.length == 4) {

            out.print("<p style='color:red'>5.选项错误</p>" );
            out.print("<p style='color:blue'>正确答案为ACD</p>");

        }
        else if (t5.length == 3) {

            if (t5[0].equals("A") && t5[1].equals("C") && t5[2].equals("D")) {

                sum = sum + 10;

                out.print("<p style='color:green'>5.ACD正确</p>");

            } else {

                out.print("<p style='color:red'>5.选项错误</p>" );
                out.print("<p style='color:blue'>正确答案为ACD</p>");

            }
        }
    }

%>
<%
    //多选6
    if (t6 == null) {

        out.println("<p style='color:red'>6.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为ABC</p>");

    }else {

        for (String s : t6) {

            out.print(s);

        }

        if (t6.length == 1 || t6.length == 2 || t6.length == 4) {

            out.print("<p style='color:red'>6.选项错误</p>" );
            out.print("<p style='color:blue'>正确答案为ABC</p>");

        } else if (t6.length == 3) {

            if (t6[0].equals("A") && t6[1].equals("B") && t6[2].equals("C")) {

                sum = sum + 10;

                out.print("<p style='color:green'>6.ABC正确</p>");

            } else {

                out.print("<p style='color:red'>6.选项错误</p>" );
                out.print("<p style='color:blue'>正确答案为ABC</p>");

            }
        }
    }

%>
<%
    //判断7
    if (t7 == null) {

        out.println("<p style='color:red'>7.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为:对</p>");

    } else if (t7.equals("true")) {

        sum = sum + 10;

        out.print("<p style='color:green'>7.A正确</p>");

    } else {

        out.print("<p style='color:red'>7.选项错误</p>" );
        out.print("<p style='color:blue'>正确答案为:对</p>");

    }

%>
<%
    //判断8
    if (t8 == null) {

        out.print("<p style='color:red'>8.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为:错</p>");

    } else if (t8.equals("false")) {

        sum = sum + 10;

        out.print("<p style='color:green'>8.A正确</p>");

    } else {

        out.print("<p style='color:red'>8.选项错误</p>" );
        out.print("<p style='color:blue'>正确答案为:错</p>");

    }

%>
<%
    //判断9
    if (t9 == null) {

        out.println("<p style='color:red'>9.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为:对</p>");

    } else if (t9.equals("true")) {

        sum = sum + 10;

        out.print("<p style='color:green'>9.正确</p>");

    } else {

        out.print("<p style='color:red'>9.选项错误</p>" );
        out.print("<p style='color:blue'>正确答案为:对</p>");

    }
%>
<%
    //判断10
    if (t10 == null) {

        out.println("<p style='color:red'>10.回答错误不得分</p>");
        out.print("<p style='color:blue'> 正确答案为:错</p>");

    } else if (t10.equals("false")) {

        sum = sum + 10;

        out.print("<p style='color:green'>10.正确</p>");

    } else {

        out.print("<p style='color:red'>10.选项错误</p>" );
        out.print("<p style='color:blue'>正确答案为:错</p>");

    }

    out.print("总分为" + sum);
%>
</body>
</html>

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值