導航:首頁 > 編程語言 > java組卷

java組卷

發布時間:2022-06-04 03:44:21

① 誰有基於java語言的自動組卷系統源代碼,

不用想了,除非你運氣好剛好能遇到有的,我花200財富值求個遺傳演算法在自動組卷中應用都沒有人能回答到,現在我都打算用個random隨機組組算了

② 求一個java智能試卷生成系統,基於web形式的,做畢業設計

這個簡單呀,你先把試題存到資料庫中,然後再讀取出來,生成web頁面,如果你想生成的每一份試題都不一樣,也可以添加一些演算法,這樣生成的試卷每個都不一樣。。思路就這樣。。。

③ 用java開發基於web的試卷自動生成系統,要可以導出word文檔

你盡管放心,不會有大俠為你提供的,你這叫定製開發,得付費的!哈哈!

④ 如何用Java實現隨機出題

import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import oracle.jdbc.driver.OracleDriver;

public class GenPaperServlet extends HttpServlet
{

Connection conn;
Statement stmt;
ResultSet rs;
int total_question_num;
int total_question_in_paper;
int total_paper_num;
String curr_classid;

public GenPaperServlet()
{
conn = null;
stmt = null;
rs = null;
total_question_num = 0;
total_question_in_paper = 0;
total_paper_num = 0;
curr_classid = "";
}

public void doGet(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
throws ServletException, IOException
{
httpservletresponse.setContentType("text/html;charset=GBK");
PrintWriter printwriter = httpservletresponse.getWriter();
printwriter.println("<html><head></head><body><center>");
printwriter.println("請以POST方式提交");
printwriter.println("</center></body></html>");
printwriter.close();
}

public void doPost(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
throws ServletException, IOException
{
httpservletresponse.setContentType("text/html;charset=GBK");
PrintWriter printwriter = httpservletresponse.getWriter();
String s = httpservletrequest.getParameter("classid"); //"20"
String s1 = httpservletrequest.getParameter("paper_num"); //"1"
if(s == null || s1 == null)
{
printwriter.println("<center>");
printwriter.println("請按照正常方式提交數據<br>");
printwriter.println("<a href=/test/admin/genpaper.jsp>單擊這里設置生成試卷的參數</a>");
printwriter.println("</center>");
}
total_paper_num = Integer.parseInt(s1);
curr_classid = s;
int i = 0;
if(!open_db(curr_classid))
{
printwriter.println("打開資料庫錯誤!");
return;
}
if(!setParams(curr_classid))
{
System.out.println("設置系統參數錯誤!");
return;
}
if(!verify_QuertionLib())
{
printwriter.println("試題庫中試卷不足,請增加新的試題!");
printwriter.println("班級代號:" + curr_classid);
printwriter.println("該班級一套試卷中的試題數:" + total_question_in_paper);
printwriter.println("目前題庫中該班級的試題總數:" + total_question_num);
return;
}
i = genPaper(total_paper_num, curr_classid);
if(i == 0)
{
printwriter.println("生成試卷操作失敗!");
return;
}
if(!updateOtherTable(i, curr_classid))
{
printwriter.println("更新相關表操作失敗!");
return;
} else
{
printwriter.println("<center>");
printwriter.println("動態組捲成功!<br>");
printwriter.println("共生成了 " + i + " 套試卷<br>");
printwriter.println("<a href=/test/admin/genpaper.jsp>單擊這里設置生成試卷的參數</a>");
printwriter.println("</center>");
return;
}
}

public boolean open_db(String s)
{
try
{
new OracleDriver();
conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ora9", "scott", "tiger");
stmt = conn.createStatement();
}
catch(Exception exception)
{
return false;
}
return true;
}

public boolean setParams(String s)
{
String s1 = "";
try
{
String s2 = "select count(questionid) as countquestionid from test_question_lib ";
s2 = s2 + "where classid='" + s + "'";
rs = stmt.executeQuery(s2);
rs.next();
total_question_num = rs.getInt("countquestionid");
s2 = "select totalques from test_classinfo ";
s2 = s2 + "where classid='" + s + "'";
rs = stmt.executeQuery(s2);
rs.next();
total_question_in_paper = rs.getInt("totalques");
}
catch(Exception exception)
{
return false;
}
return true;
}

public boolean verify_QuertionLib()
{
return total_question_num >= total_question_in_paper;
}

public boolean updateOtherTable(int i, String s)
{
int j = 0;
String s1 = "update test_classinfo set totalpaper=totalpaper+";
s1 = s1 + i + " where classid='" + s + "'";
try
{
j = stmt.executeUpdate(s1);
}
catch(Exception exception)
{
return false;
}
return j == 1;
}

public int genPaper(int i, String s)
{
boolean flag = false;
boolean flag1 = false;
boolean flag2 = false;
boolean flag3 = false;
String s1 = "";
try
{
int ai[] = new int[total_question_num];
int i1 = 0;
boolean flag4 = false;
String s2 = "select max(paper_id) as max_paper_id from test_paper_lib";
rs = stmt.executeQuery(s2);
rs.next();
int j = rs.getInt("max_paper_id") + 1;
s2 = "select questionid from test_question_lib where classid='" + s + "'";

for(rs = stmt.executeQuery(s2); rs.next();)
ai[i1++] = rs.getInt("questionid");

for(int k1 = 0; k1 < i; k1++)
{
int k = ai.length; //8
for(int l1 = 0; l1 < total_question_in_paper; l1++)
{
// int ai[] ={1 ,3 , 5 ,9 , 56,30 96 ,25};
int j1 = (int)Math.floor(Math.random() * (double)k); // 4
String s3 = "insert into test_paper_lib values(";
s3 = s3 + "test_seq_paper.nextval," + j + "," + ai[j1] + ")";
stmt.executeUpdate(s3);

int l = ai[k - 1];
ai[k - 1] = ai[j1];
ai[j1] = l;
k--;
}

j++;
}

}
catch(Exception exception)
{
return 0;
}
return i;
}
}

⑤ 有什麼好用的在線考試系統嗎Java的。

好用的在線考試系統,可以參考如下:
一、系統穩定:
在線講課過程中最怕的就是系統卡頓或掉線,考試系統穩定,安全可靠,能同時容納超大規模成員在線考試。
二、功能齊全
擁有強大的後台管理功能:
多種成員錄入方式,無限級組織架構助力分類管理;靈活分配管理許可權,多個子管理員各司其職;獨有的簽到管理功能,讓線下活動與網課直播的參與情況有據可查。教師可以對學生進行統一管理,包括信息發送、數據分析等。
教學功能豐富:
1、支持多埠多平台在線考試,與釘釘、微信、QQ、飛書等平台無縫對接;
2、人臉識別、音頻視頻監控、禁止切屏等智能防作弊技術,保障每場考試的公平;
3、強大的判卷分析功能,多維度多方面數據分析設置,一鍵生成分析結果;
三、操作簡單
操作簡單是考試系統的最大優勢。以輕速雲考試系統為例,導題、組卷、發布三步驟即可實現考試。
其官網免費提供大量考試題庫,也支持創建專屬題庫,為用戶提供Word及Excel模板,利用模板即可將想要進行考核的試題一鍵快速批量導題建立題庫,多種組卷方式只需滑鼠點點就能輕松組卷。
導題:支持選擇、判斷、多選等多達6種題型導入。上傳文檔、批量導入、在線編輯,三種錄題方式自由選擇;
組卷:一張試卷同時支持固定試題和隨機試題兩種模式。
發布:組卷完成即可發布考試,隨時隨地實現答題考試。

⑥ 高分 java 遺傳演算法 組卷 一條染色體在變異後 影響 其他都變異 怎麼辦在線等!急急急!

我是搞j2ee開發的,現在在深圳科技園上班。我看你的代碼,不是很難,但是不太懂你的業務邏輯。你不要著急,如果方便,你詳細說下你的業務邏輯和,希望我能幫到你。

⑦ 跪求java實現B/S考試系統的思路(最好有源代碼)

做這個題庫系統需要按照mvc設計一下, 最近我也實現一個類似的, 下面說下我的設計

⑧ java實現組卷功能

組卷一般分兩種模式
一種是固定試卷 你直接在你題庫選擇題目 拼成了試卷 生成你直接拼接字元串生成一個html文件就可以了
一種是隨機試卷,你設計好 選擇題幾個 問答題幾個 。。。類似 然後一鍵生成 根據你設定的參數去隨機取題目 然後 按一定的規律拼接就可以了 比如3個選擇 2個填空 1個問答 剩下那些拼接都是布局的問題了

閱讀全文

與java組卷相關的資料

熱點內容
程序員編碼是指什麼 瀏覽:525
在雲伺服器上安裝軟體 瀏覽:270
什麼app可以免費聽周董的歌 瀏覽:364
netmvcpdf 瀏覽:209
arp伺服器回送的是什麼地址 瀏覽:103
生物學pdf百度雲 瀏覽:963
markdown源碼包怎麼下載 瀏覽:598
餐飲app開發公司哪個好 瀏覽:637
解壓盒子2無廣告 瀏覽:623
華為鴻蒙系統怎麼放大單個文件夾 瀏覽:587
phpwin864 瀏覽:913
boll優化源碼公式 瀏覽:905
連接伺服器埠號是如何確定的 瀏覽:14
gsm源碼 瀏覽:475
單片機點陣滾動 瀏覽:407
加密資產平台 瀏覽:721
二級建築師pdf教材 瀏覽:324
單片機i和e系列 瀏覽:320
peb是什麼伺服器 瀏覽:389
天正建造散水命令 瀏覽:220