第 24卷
V01.24
第 3期
N0.3
重 庆 理 工 大 学 学报(自然科学)
Joumal 0f Ch0ngqing Unive玛ity of T_echn0logy(N矗turaI Science)
2010年 3月
Mar.20lO
基于 JAVA的考试 系统 中题库设计及组卷算法
陈泽琳 ,张庆彪
(华南理工 大学 软件学院 ,广州 51o006)
摘 要 :设计 了基于 JAVA的考试 系统 中的题库子 系统。系统采用拆分设计方案,组卷部分
采用了2种组卷算法,即抽取组卷算法和基 于洗牌算法的组卷算法。论述 了题库的设计方案和
抽取选题的组卷算法的设计过程,并给 出相应的代码。该 系统具有较强的通用性与可推广性。
关 键 词:JAVA;网络考试 系统 ;题库设计
中图分 类号:TP3ll 文献标识码 :A 文章编 号 :1674—8425(2010)03—0048—08
Test—bank Design and Algorithm 0f Test System Based 0n JAVA
CHEN Ze一“n,ZHANG Qing-biao
(School 0f Computer Software,South China University 0f Techn0Jogy,Guangzhou 510o06,China)
Abstract: IIhis paper designs a subsystem 0f test—bank in the testing system based on JAVA.The
subsystem employs split design scheme whi1e its test p印er generating section adopts two alg0 thms:
ext1.action alg0rithm and an algorithm based 0n shufne alg0rithm. This p印 er also discusses the test—
bank design plan and the design pr0cess of test paper generati0n alg0rithm based 0n extracti0n of ques—
ti0ns,and pI.esents con sponding codes.The system has a str0ng veI atility and I.eplicability.
Key words:JAVA;netw0rk test system;test—bank design;alg0rithm
随着 Intemet的普及和发展 ,网络教 学越来越
流行。网络教学具有信息量大 ,内容丰富 、生动 ,
教与学不受时间 、地域 的限制等诸 多优点。网络
考试系统是 网络教学系统的重要组成部分 ,其开
发 目的是在共享教师、学生 、管理员 、课程、学期及
其关系数据等信息的基础上实现考试网络化 。
网络题库设计 以及试卷的组织则是网络考试的基
础。本文 中设计了基于 JAVA的考试系统中题库
子系统。该系统采用拆分设计方案 ,增强了系统
的灵活性 ,提高 了效率。系统组卷部分采用 了 2
种组卷算 法 :一种是用 来 生 成 试卷的抽 取 组 卷算
法 ;另一种是为了打乱试卷 中试题 的顺序确保每
个考生的试题顺序不同,防止相互抄袭的基于洗
牌算法的组卷算法。
1 题库 的拆分设计方案
题库设计是网络考试系统数据库设计 中最重
要和最复杂的部分。首先 ,题 目有多种属性 (如课
程代码 、考点、难度系数 、选中频度 、题干、答案、出
收稿 日期 :2009—12一O8
项目基金 :广东省南沙区中学生网络教学考试系统设计项 目()(2rj—d8090l10)
作者简介 :陈泽琳(1962~),女 ,广东广州人,博士,副教授 ,主要从事计算机应用技术 以及办公 自动化研究。