华中科技大学硕士学位论文
Java在线考试
系统的
设计与实现:万宇翔申请学位级别:硕士专业:
软件工程指导教师:薛志东20081031
华中科技大学硕士学位论文
摘
要
随着
计算机应用的迅猛发展,
网络应用不断扩大,以及传统的考试方式已经不能适应现代考试的需要,在线考试特别是基于Web的在线考试系统近年来受到越来越多的人青睐。在线考试系统就是基于Web的面向Java
课程的专一性考试平台。JavaJava在线考试系统实现了在线考试的目的,以减轻教师的
工作负担及提高工作效率,并能激发学生的
学习兴趣。系统采用浏览器/服务器模式开发,包括身份登录、新用户
注册、用户管理、在线考试、代码执行及比较等功能模块。系统不仅完成了常规考试系统所能完成的出题和判卷功能,而且提供代码上传、编译、运行和代码相似度比较的功能。代码相似度计算为老师判断学生的代码是否抄袭提供了一个依据。代码相似度计算主要用到属性计数技术和结构度量技术来进行设计。属性计数技术是对单一操作符的数量、单一操作数的数量、所有操作符的总数、所有操作数的总数这四个基本属性来对代码进行相似度计算的;结构度量技术根据
程序的结构来度量两个程序之间的相似度,它需要对程序的内部结构,如控制流、嵌套深度等进行分析。Java在线考试系统的代码相似度计算就是结合这两种方法,对Java代码进行分析和比较,得出代码相似度的值。各个模块使用UML技术进行了较为详细的设计,使用
JSP(Java服务器页面)技术和MySQL数据库以及DREAMWEAVER开发工具进行开发与实现。经过后,针对系统的各个功能进行测试,对代码相似度计算还用实际例子进行测试和分析。关键词:Java在线考试系统浏览器/服务器模式Java服务器页面相似度计算
IV
华中科技大学硕士学位论文
Abstract
Withtherapiddevelopmentofcomputerapplications,networkingapplicationscontinuingtoexpand,aswellasthetraditionaltestmethodscannotadapttotheneedsofmodernexaminations,theon-lineWeb-basedexaminationismoreandmorepopularinrecentyears.TheJavaonlineexaminationsyste
misoneoftheseWeb-basedon-lineexaminationsystems.TheJavaonlineexaminationsystemachievesthepurposeoftheon-lineexamination,reducesteachers’workl
oad,improvesproductivityandstimulatesstudents’interestinlearning.Systemsusesthebrowser/servertodevelop.Itincludeslog,newuserregistration,usermanagement,on-lineexamination,comparisonandimplementationofthecode,andotherfunctionalmodules.Thesystemnotonlycompletestheconventionalexamination,butalsoprovidecodeuploading,compiling,runningandthecalculationofthecodesimilaritycomparison.Thecalculationofthecodesimilarityisabasisforteacherstojudgewhetherthecodeisplagiarism.Codesimilarityusedthecalculationofthemainattributesoftechnologyandcountingtechniquesofmeasuringthestructureofthedesign.Themainattributesoftechnologyincludesfourbasicattributes,thenumberofoperatingasingle-digitnumber,thetotalnumberofalloperators,alloperatorsofthetotalnumber;structureofthemeasureanalysistheinnerstructureofprograme,suchasflowcontrol.Accordingtothestructureofprograme,itneedstheanalysisofthestructureoftheprogram,suchasflowcontrol,nestedin-depth.Javacodeon-lineexaminationsystemcombinesthesetwocalculationmethods,analysistheJavacodeandcalculatesthevalueofsimilarity.VariousmodulesuseUMLtechnologytodesign,itusesJSP(JavaServerPages)technologyandMySQLdatabaseDREAMWEAVERdevelopmenttoolstorealizethesyatem.Afterthedesignandrealization,allofthefunctionsofthesystemaretested,andthecalculationofthecodesimilarityusesactualexamplestotestandanalysis.Key
words:JavaOn-lineExaminationSystemJavaServerPageBrowse/ServerModel