1. 程式人生 > >網上答題及其自動評測系統

網上答題及其自動評測系統

action text1 title rip div radi key pre selected

例 3-16

代碼

<%@page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>簡單的網上試題自動評測————試題</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->

  </head>
  
  <body>
    <form action="ch03_17_show.jsp" method="post">
        一、 2+3=?<br>
        <input type="radio" name="r1" value="2" checked="checked">2&nbsp;
        <input type="radio" name="r1" value="3" >3&nbsp;&nbsp;
        <input type="radio" name="r1" value="4" >4&nbsp;
        <input type="radio" name="r1" value="5" >5<br>
        二、下列哪些是偶數?<br>&nbsp;&nbsp;
        <input type="radio" name="c1" value="2">2&nbsp;
        <input type="radio" name="c1" value="3">3&nbsp;
        <input type="radio" name="c1" value="4">4&nbsp;
        <input type="radio" name="c1" value="5">5<br>
        
        三、下列哪些是動態網頁?<br>&nbsp;&nbsp;
        <select size="4" name="list1" multiple="multiple">
            <option value="asp">ASP</option>
            <option value="php">PHP</option>
            <option value="htm">HTML</option>
            <option value="jsp">JSP</option>
            <option value="xyz"selected="select">xyz</option>
        </select><br>
        
        四、下列組件哪個是服務器端的?<br>&nbsp;&nbsp;
        <select size="1" name="list5">
            <option value="jsp">JSP</option>
            <option value="servlet">SERVLET</option>
            <option value="java">JAVA</option>
            <option value="jdbc">JDBC</option>
        </select><br>
        
        五、在服務器端用來接受用戶請求的對象是:<br>&nbsp;&nbsp;
        
        <input type="text" name="text1"><br>
        <div align="left">
            <blockquote>
                <input type="submit" value="提交" name="button1">
                <input type="reset" value="取消"  name="button2">
            </blockquote>
        </div>
    </form>
  </body>
</html>

網上答題及其自動評測系統