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