【文章內容簡介】
問答題庫信息表存放問答題的基本信息。與填空題不同的是,問答題的答案往往字數(shù)較多,故將其定義為支持較長文本的類型。表結構如表28所示。表28 EssayQuestion表字段名稱字段說明字段類型字段大小備注QuestionID題目編號數(shù)字長整型主關鍵字Question題目內容文本250B不能為空Answer參考答案備注Score題目分值數(shù)字單精度小數(shù)位數(shù)一位,不能為空TeacherID出題教師編號數(shù)字長整型不能為空QuesDifficult難度系數(shù)數(shù)字字節(jié)1:易,2:中,3:難 三.命名規(guī)范 :本系統(tǒng)將試卷信息定義為一個名為QuestionPaper的類,QuestionPaper類的對象實例Qpaper將提供對試卷創(chuàng)建、試卷修改、答題、評閱等主要功能的支持。QuestionPaper類方法及說明如表31所示。表31 QuestionPaper類方法及說明方法名稱功能說明方法名稱功能說明AddQuestion向試卷添加題目GetQID獲取隨即問題號,私有方法Check評閱試卷GetQuestion獲取題目內容Create創(chuàng)建試卷GetQuestionID獲取問題編號DelQuestion刪除試卷中的一個題目GetType獲取試題類型GetChoice獲取選擇題的各選項GetUserAnswer獲取用戶答案GetDBRS獲取題庫數(shù)據(jù)集,私有方法ReportToFile輸出試卷到文件GetQAnswer獲取問題參考答案SetAnswer回答試卷GetQSerial獲取第n條試題的編號四.數(shù)據(jù)庫表結構的SQL建表語句用戶表id 密碼 權限 科室create table users (id varchar(20) not null,upwd varchar(20) not null,uright int,uroom varchar(20) not null,uname varchar(8) not null,constraint PK_user primary key (id))。用戶組表組ID 組名create table ugroup (ugid int not null,15name varchar(20) not null,constraint PK_ugroup primary key (ugid))。組權限表組ID 菜單tag 權限create table gright (ugid int not null,menu_tag varchar(20) not null,mright int,constraint PK_gright primary key (ugid))。學生表id 密碼姓名性別年級專業(yè)班級create table students (stu_id varchar(20) not null,pwd varchar(20) not null,nam