欢迎来到天天文库
浏览记录
ID:1716197
大小:773.50 KB
页数:19页
时间:2017-11-13
《在线考试系统报告》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、在线考试系统报告摘要随着计算机应用的迅猛发展,网络应用不断扩大,如远程教育和虚拟大学的出现等等,且这些应用正逐步深入到千家万户。人们迫切要求利用这些技术来进行在线考试,以减轻教师的工作负担及提高工作效率,与此同时也提高了考试的质量,从而使考试更趋于公证!客观!更加激发学生的学习兴趣。在线考试系统是为了方面学生考试、老师阅卷、提高考试的公正性、公平。一、项目名称1.1在线考试系统二、项目目标2.1使用Gridview进行数据的添加、删除、更新2.2运用Javascript来进行考试倒计时三、项目中的具体任务3.1学生在线考试3.2后台
2、编辑试题3.3当场评卷四、工具与设备5.1软件VisualStudio2005和SQL2005五、流程图分析4.1数据库的组织结构A、这是SQL2005的表B、数据库的流程图学生和管理员(Users)选择考试科目(Course)试卷的类型(Paper)分数(Score)填空题(FillBlankProblem)判断题(JudgeProblem)多选题(MultiProblem)单选题(SingleProblem)试卷的题目类型(PaperDetail)4.2前台结构A、前台登录B、准备考试C、卷面计时代码:3、ge="javascript">编写卷面的后台代码:usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebCo5、ntrols.WebParts;usingSystem.Web.UI.HtmlControls;usingMyOnLineExam.DataAccessLayer;usingSystem.Data.SqlClient;usingMyOnLineExam.BusinessLogicLayer;publicpartialclassWeb_UserTest:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){if(!IsPostBack){lblPaperN6、ame.Text=Session["PaperName"].ToString();InitData();}}//初始化试卷,从数据库中将试题取出protectedvoidInitData(){//Response.Write(Session["PaperID"].ToString());//Response.End();SqlParameter[]Params1=newSqlParameter[2];DataBaseDB=newDataBase();intpaperID=int.Parse(Session["PaperID"].To7、String());Params1[0]=DB.MakeInParam("@PaperID",SqlDbType.Int,4,paperID);//试卷编号Params1[1]=DB.MakeInParam("@Type",SqlDbType.VarChar,10,"单选题");//题目类型DataSetds1=DB.GetDataSet("Proc_PaperDetail",Params1);GridView1.DataSource=ds1;GridView1.DataBind();((Label)GridView1.Header8、Row.FindControl("Label27")).Text=((Label)GridView1.Rows[0].FindControl("Label4")).Text;SqlParameter[]Params2=newSqlPa
3、ge="javascript">编写卷面的后台代码:usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebCo
5、ntrols.WebParts;usingSystem.Web.UI.HtmlControls;usingMyOnLineExam.DataAccessLayer;usingSystem.Data.SqlClient;usingMyOnLineExam.BusinessLogicLayer;publicpartialclassWeb_UserTest:System.Web.UI.Page{protectedvoidPage_Load(objectsender,EventArgse){if(!IsPostBack){lblPaperN
6、ame.Text=Session["PaperName"].ToString();InitData();}}//初始化试卷,从数据库中将试题取出protectedvoidInitData(){//Response.Write(Session["PaperID"].ToString());//Response.End();SqlParameter[]Params1=newSqlParameter[2];DataBaseDB=newDataBase();intpaperID=int.Parse(Session["PaperID"].To
7、String());Params1[0]=DB.MakeInParam("@PaperID",SqlDbType.Int,4,paperID);//试卷编号Params1[1]=DB.MakeInParam("@Type",SqlDbType.VarChar,10,"单选题");//题目类型DataSetds1=DB.GetDataSet("Proc_PaperDetail",Params1);GridView1.DataSource=ds1;GridView1.DataBind();((Label)GridView1.Header
8、Row.FindControl("Label27")).Text=((Label)GridView1.Rows[0].FindControl("Label4")).Text;SqlParameter[]Params2=newSqlPa
此文档下载收益归作者所有