201819102036张祺作业三

<form action="1.jsp" method="post">
    <h1>.判断题</h1>
    <table>
        <tr>
            <td></td><td>正确</td><td>错误</td>
        </tr>
        <tr>
            <td> 人有地域和信仰的不同,报效祖国之心就有所不同。</td>
            <td><imput type="radio" name="pd1" value="1"></imput></td>
            <td><imput type="radio" name="pd1" value="2"></imput></td>
        </tr>
        <tr>
            <td>天空那么大,放点烟气不算什么;江河这么多,排点污水不算什么;天地这么广阔,有点噪音不算什么。 </td>
            <td><imput type="radio" name="pd2" value="1"></imput></td>
            <td><imput type="radio" name="pd2" value="2"></imput></td>
        </tr>
        <tr>
            <td>法定婚龄是法律规定必须结婚的年龄。 </td>
            <td><imput type="radio" name="pd3" value="1"></imput></td>
            <td><imput type="radio" name="pd3" value="2"></imput></td>
        </tr>
        <tr>
            <td>思想道德修养与法律基础课对于促进大学生德智体美全面发展具有重要意义。 </td>
            <td><imput type="radio" name="pd4" value="1"></imput></td>
            <td><imput type="radio" name="pd4" value="2"></imput></td>
        </tr>
        <tr>
            <td>过失犯罪不需要承担刑事责任。 </td>
            <td><imput type="radio" name="pd4" value="1"></imput></td>
            <td><imput type="radio" name="pd4" value="2"></imput></td>
        </tr>
    </table>
    <h2>.单选题</h2><br>
    <table>
    <tr>
        <td colspan="4"> 1.根据我国的刑罚制度,可以独立适用,又可以附加适用的刑种是</td>
    </tr>
    <tr>
        <td><input type="radio" name="dx1"value="1">A.管制 </td>
        <td><input type="radio" name="dx1"value="2">B.拘役 </td>
        <td><input type="radio" name="dx1"value="3">C.罚金</td>
        <td><input type="radio" name="dx1"value="4">D.死刑</td>
    </tr>
    <tr>
        <td colspan="4"> 2.我国清末法学家沈家本说:“法立而不行,与无法等。”这句话强调了</td>
    </tr>
    <tr>
        <td><input type="radio" name="dx2"value="1">A.立法的重要性 </td>
        <td><input type="radio" name="dx2"value="2">B.学法的重要性 </td>
        <td><input type="radio" name="dx2"value="3">C.守法的重要性</td>
        <td><input type="radio" name="dx2"value="4">D.护法的重要性</td>
    </tr>
    <tr>
        <td colspan="4">3. 在经济全球化条件下,民族存在的最高组织形式和国际社会活动的独立主体是</td>
    </tr>
    <tr>
        <td><input type="radio" name="dx3"value="1">A.国际组织 </td>
        <td><input type="radio" name="dx3"value="2">B.国家  </td>
        <td><input type="radio" name="dx3"value="3">C.企业集团</td>
        <td><input type="radio" name="dx3"value="4"> D.国家联盟</td>
    </tr>
    <tr>
        <td colspan="4">4. 维护宪法和法律权威的首要表现是</td>
    </tr>
    <tr>
        <td><input type="radio" name="dx4"value="1">A.学法 </td>
        <td><input type="radio" name="dx4"value="2">B.守法 </td>
        <td><input type="radio" name="dx4"value="3">C.用法</td>
        <td><input type="radio" name="dx4"value="4">D.制定法</td>
    </tr>
    <tr>
        <td colspan="4">5.权利人对其文学、艺术和科学作品依法享有的人身权和财产权,称为</td>
    </tr>
    <tr>
        <td><input type="radio" name="dx5"value="1">A.所有权 </td>
        <td><input type="radio" name="dx5"value="2">B.专利权 </td>
        <td><input type="radio" name="dx5"value="3">C.著作权</td>
        <td><input type="radio" name="dx5"value="4">D.商标权</td>
    </tr>
    </table>
    <h2>三、多选题</h2><br>
    1.为了保障人民当家作主的各项权力实现,必须推动社会主义民主的制度化、规范化、程序化,依法保障人民的<br>
    <input type="checkbox" name="x1" value="1">A. 知情权<br>
    <input type="checkbox" name="x1"value="2">B. 参与权<br>
    <input type="checkbox" name="x1"value="3">C. 表达权<br>
    <input type="checkbox" name="x1"value="4">D. 监督权<br>
    2.当前我国的就业压力较大,造成这种局面的原因有<br>
    <input type="checkbox" name="x2"value="1">A.我国人口基数较大,需要就业的人员多,就业高峰持续时间长<br>
    <input type="checkbox" name="x2"value="2">B.就业机制有待完善<br>
    <input type="checkbox" name="x2"value="3">C.就业观念有待更新<br>
    <input type="checkbox" name="x2"value="4">D.劳动者整体素质较差<br>
    3.学习“思想道德修养与法律基础”课程的方法是<br>
    <input type="checkbox" name="x3"value="1">A.注重学习科学理论<br>
    <input type="checkbox" name="x3"value="2">B.注重学习和掌握思想道德和法律修养的基本知识<br>
    <input type="checkbox" name="x3"value="3">C.注重联系实际<br>
    <input type="checkbox" name="x3"value="4">D.注重知行统一<br>
    4.下列使用网络的行为中,构成犯罪的,依照刑法有关规定将受到刑事追究的有<br>
    <input type="checkbox" name="x4"value="1">A.利用互联网损坏他人商业信誉和商品声誉<br>
    <input type="checkbox" name="x4"value="2">B.利用互联网窃取、泄露国家秘密、情报或者军事秘密<br>
    <input type="checkbox" name="x4"value="3">C.利用互联网煽动民族仇恨、民族歧视,破坏民族团结<br>
    <input type="checkbox" name="x4"value="4">D.利用互联网销售伪劣产品或者对商品、服务作虚假宣传<br>
    5.我国监督宪法实施的机关是<br>
    <input type="checkbox" name="x5"value="1">全国人大<br>
    <input type="checkbox" name="x5"value="2">全国人大内务司法委员会<br>
    <input type="checkbox" name="x5"value="3">最高人民法院<br>
    <input type="checkbox" name="x5"value="4">全国人大常委会<br>
    <input type="submit" value="提交">

    </form>

在这里插入图片描述
在这里插入图片描述

<%  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("dx1");
    String t7=request.getParameter("dx2");
    String t8=request.getParameter("dx3");
    String t9=request.getParameter("dx4");
    String t10=request.getParameter("dx5");

    String t11[]=request.getParameterValues("x1");
    String t12[]=request.getParameterValues("x2");
    String t13[]=request.getParameterValues("x3");
    String t14[]=request.getParameterValues("x4");
    String t15[]=request.getParameterValues("x5");

    if (t1==null)
    {
        out.print("<p style='color:blue'>1.应选正确</p>");
    }
    else if(t1.equals("2"))
    {
        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("2"))
    {
        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("2"))
    {
        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.应选C</p>");
    }
    else    if(t6.equals("3"))
    {
        out.print("<p style='color:green'>6.正确</p>");
        sum+=5;
    }
    else
        out.print("<p style='color:red'>6.错误,应选C</p>");
    if (t7==null)
    {
        out.print("<p style='color:blue'>7.应选D</p>");
    }
    else
    if(t7.equals("4"))
    {
        out.print("<p style='color:green'>7.正确</p>");
        sum+=5;
    }
    else
        out.print("<p style='color:red'>7.错误,应选D</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.应选A</p>");
    }
    else
    if(t9.equals("1"))
    {
        out.print("<p style='color:green'>9.正确</p>");
        sum+=5;
    }
    else
        out.print("<p style='color:red'>9.错误,应选A</p>");
    if (t10==null)
    {
        out.print("<p style='color:blue'>10.应选C</p>");
    }
    else
    if(t10.equals("2"))
    {
        out.print("<p style='color:green'>10.正确</p>");
        sum+=5;
    }
    else
        out.print("<p style='color:red'>3.错误,应选C</p>");
    if (t11==null||t11.length<4)
    {
        out.print("<p style='color:blue'>11.应选A.B.C.D</p>");
    }
    else

    if(t11[0].equals("1")&t11[1].equals("2")&t11[2].equals("3")&t11[3].equals("4"))
    {
        out.print("<p style='color:green'>11.正确</p>");
        sum+=10;
    }
    else
        out.print("<p style='color:red'>11.错误,应选A.B.C.D</p>");
    if (t12==null||t12.length<3)
    {
        out.print("<p style='color:blue'>12.应选A.B.C</p>");
    }
    else
    if(t12[0].equals("1")&t12[1].equals("2")&t12[2].equals("3"))
    {
        out.print("<p style='color:green'>12.正确</p>");
        sum+=10;
    }
    else
        out.print("<p style='color:red'>12.错误,应选A.B.C</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.C.D</p>");
    }
    else
    if(t14[0].equals("1")&t14[1].equals("2")&t14[2].equals("3")&t14[3].equals("4"))
    {
        out.print("<p style='color:green'>14.正确</p>");
        sum+=10;
    }
    else
        out.print("<p style='color:red'>14.错误,应选A.B.C.D</p>");
    if (t15==null||t15.length<3)
    {
        out.print("<p style='color:blue'>15.应选A.D</p>");
    }
    else
    if(t15[0].equals("1")&t15[2].equals("4"))
    {
        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>");
    %>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值